Skip to main content
Answer

Add Control to Disable Request Item Description

  • April 26, 2022
  • 6 replies
  • 105 views

Forum|alt.badge.img

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.

 

Best answer by jinin

Hi @rmontana,

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

Example:

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

 

6 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • April 26, 2022

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>>>))]

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • April 26, 2022

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.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • April 26, 2022

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


Forum|alt.badge.img
  • Author
  • Freshman I
  • April 26, 2022

Please see below .

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • June 8, 2022

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


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • Answer
  • June 8, 2022

Hi @rmontana,

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

Example:

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