Skip to main content
Answer

Cannot get upload icon to show on grid

  • June 10, 2022
  • 7 replies
  • 284 views

Joe Schmucker
Captain II
Forum|alt.badge.img+3

I’m trying to get the upload icon to show for a grid on a custom screen and custom DAC

I found a blog post from Sergey and I put the following in my graph:

        [PXImport]
        public PXSelect<ICAllocationAccounts> ICAllocationAccounts;

I think that is all that was required.  The icon did not show.  So I added the following changes to the screen in the editor under Action Bar - Actions - Upload:

 

Still no love from Acumatica.

Any ideas?  

Best answer by Leonardo Justiniano

Hi @joe21 

 

You need to set also the mode of the grid:

 

7 replies

Leonardo Justiniano
Jr Varsity II
Forum|alt.badge.img+4

Hi @joe21 

 

You need to set also the mode of the grid:

 


Joe Schmucker
Captain II
Forum|alt.badge.img+3
  • Author
  • Captain II
  • June 10, 2022

Thanks @Leonardo Justiniano !!!!

Worked like a charm.


Forum|alt.badge.img

Hi Joe,

Please specify [PXImport(typeof(ICAllocationAccounts))]


Joe Schmucker
Captain II
Forum|alt.badge.img+3
  • Author
  • Captain II
  • June 10, 2022

OK...button shows but it is grayed out.  Can my graph be doing something that would cause it to be disabled?

 


Forum|alt.badge.img

Try explicitly enabling the following property:

Grid > Base Properties > Action Bar > Actions > Upload > Enabled - True


Leonardo Justiniano
Jr Varsity II
Forum|alt.badge.img+4

@joe21 

So far you have:

  • Grid > Base Properties > Action Bar > Actions > Upload > Enabled = True (first screenshot /@Raj Gopinathan)
  • Mode > AllowUpdate = true
  • [PXImport] on the view 

That should be sufficient. The only thing sometimes affects is the SkinID. Try setting it to “Details”


Joe Schmucker
Captain II
Forum|alt.badge.img+3
  • Author
  • Captain II
  • June 10, 2022

I’m an IDIOT!  :-)

I had actually created a new view (see The way I had it)

When @Leonardo Justiniano  said “[PXImport] on the view, I realized I had created a totally new view and by putting the PXImport above the actual view for the Grid, it works.  

The way I had it:
public SelectFrom<ICAllocationAccounts>. Where<ICAllocationAccounts.allocationID.IsEqual<ICAllocationCode.allocationID.FromCurrent>>.View AllocationAccounts;

[PXImport(typeof(ICAllocationAccounts))]
public PXSelect<ICAllocationAccounts> ICAllocationAccounts;


The way it should be:
[PXImport(typeof(ICAllocationAccounts))]
public SelectFrom<ICAllocationAccounts>. Where<ICAllocationAccounts.allocationID.IsEqual<ICAllocationCode.allocationID.FromCurrent>>.View AllocationAccounts;