Solved

Add Control to Disable Request Item Description

  • 26 April 2022
  • 6 replies
  • 88 views

Userlevel 1
Badge

I already add control to disable request item description in Purchase Request but I want to disable only Stock Items . How can I do this ? Below is my current code.

 

icon

Best answer by jinin 8 June 2022, 19:20

View original

6 replies

Userlevel 7
Badge +18

Hi, @rmontana  Here is an example, you can try and verify.

  

       [PXUIEnabled(typeof(Search2<POLine.tranDesc, InnerJoin<InventoryItem, 
On<InventoryItem.inventoryID,Equal<POLine.inventoryID>>>,
Where<InventoryItem.stkItem,Equal<True>>>))]

 

Userlevel 1
Badge

Hello @Naveen Boga Thank you for this But how can i add the GetSetupValue attribute to your code ? 

I got errors when i try to add it.

Userlevel 7
Badge +18

Hi @rmontana  Can you please share the code for GetSetupValue()

Userlevel 1
Badge

Please see below .

 

Userlevel 7
Badge

Hi @rmontana were you ever able to resolve your issue? Thank you!

Userlevel 7
Badge +11

Hi @rmontana,

Use the namespace “PX.Objects.Common;”  You will not get the error.

Example:

 [PXUIEnabled(typeof(GetSetupValue<SOOrder.customerID>))]

 

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 — 2024  Acumatica, Inc. All rights reserved