Solved

Cannot get upload icon to show on grid

  • 10 June 2022
  • 7 replies
  • 56 views

Userlevel 4

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?  

icon

Best answer by Leonardo Justiniano 10 June 2022, 23:35

View original

7 replies

Userlevel 4
Badge

Hi @joe21 

 

You need to set also the mode of the grid:

 

Userlevel 4

Thanks @Leonardo Justiniano !!!!

Worked like a charm.

Userlevel 2
Badge

Hi Joe,

Please specify [PXImport(typeof(ICAllocationAccounts))]

Userlevel 4

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

 

Userlevel 2
Badge

Try explicitly enabling the following property:

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

Userlevel 4
Badge

@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”

Userlevel 4

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;

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2022  Acumatica, Inc. All rights reserved