Generic Inquiry List of Items (Is In) Trick

  • 20 May 2021
  • 2 replies
  • 675 views

Userlevel 3
Badge

Introduction:
I wanted to pull a specific list of inventory items from a generic inquiry. 

 

Problem: 
I tried to use "Is In" operator for a condition. However, it does not seem to work as expected. (I tried various combination while profiling and could not get the SQL to translate to [column] in ('test123', 'test456', 'test789')) 

If there is a way to use the "Is In" operator, please share.

 

Solution:
Add a parameter to enter the list of items. (Set the Schema Field to InventoryItem.Body for maximum characters) 

In Result Tab, add a column that utilizes "InStr()" to search for the InventoryCD in the parameter field. (Convert to CDec() for better filtering)

Paste a list of item numbers and filter the formula column “greater than” zero.

 

I hope this helps.


2 replies

Userlevel 3
Badge

Pretty nifty trick, thanks for sharing!

Userlevel 1

This is a nice trick but I can only get it to work for one item.  If I paste a list of items, I get no results.

I tried separating items with commas, semicolons, etc.   What is the trick to be able to paste multiple items?

 

Thanks

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