Solved

Visible Expression for string inside of InventoryID

  • 7 November 2023
  • 2 replies
  • 51 views

Userlevel 5
Badge

Hi all,

 

I need a VisibleExpr that flips visibility based on a string inside of our InventoryID -- if an InventoryID contains “-STRING-”, then flip this text on.

 

=iif(([AMProdItem.InventoryID]='-STRING-'),false,true)

 

Unfortunately, I don’t know how to write the query so I’m asking if it CONTAINS, not EQUALS.

How do I craft the query to see if the InventoryID contains ‘-STRING-’?

icon

Best answer by jinin 7 November 2023, 18:07

View original

2 replies

Userlevel 5
Badge

Hi all,

 

I need a VisibleExpr that flips visibility based on a string inside of our InventoryID -- if an InventoryID contains “-STRING-”, then flip this text on.

 

=iif(([AMProdItem.InventoryID]='-STRING-'),false,true)

 

Unfortunately, I don’t know how to write the query so I’m asking if it CONTAINS, not EQUALS.

How do I craft the query to see if the InventoryID contains ‘-STRING-’?

Perfect Jini, thank you! I’m not familiar with C# but InStr makes sense now… thank you!

Userlevel 7
Badge +11

Hi @swartzfeger ,

 

Could you try like the below,

IIf(InStr([AMProdItem.Descr], '-STRING-') > 0, True, False)

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