Skip to main content
Answer

Is there a function similar to Vlookup on Generic Inquiries?

  • November 15, 2023
  • 7 replies
  • 178 views

Forum|alt.badge.img

We have a GI that provides PO Receipt Information. We would like the GI to exclude Returns and associated PO lines (hide them). Is there a function similar to VLookup that can be used? Below screen shot is one of the examples we are using. 

 

We tried the below formula but that is not working. 

 

 

I have attached a xml file of the GI. Any suggestions would be helpful, thank you!

Best answer by Robert Sternberg

Yes that's correct.  Here are the steps explained, I also attached the working Generic Inquiry. 

 

Add Table POReceiptLine Aliased as POReceiptLineReturn
Add your relations so POReceiptLineReturn provides return details of a POReceiptLine
Set a condition to exclude any Receipts with Returns
You can check the results by disabling the condition above and enabling visibility for the ACUCOMMUNITY_ReturnReceiptNbr Field

 

Hope this helps!

7 replies

Robert Sternberg
Captain II
Forum|alt.badge.img+7

How about adding the condition OrigReceiptNbr IS EMPTY?  Would this accomplish your goal, if not could you elaborate on the issue you are trying to solve. 

 

Thanks!

 

 


darylbowman
Captain II
Forum|alt.badge.img+15

If I’m understanding correctly, you need to add a filter condition on the Conditions tab of the GI like this:

POReceiptLine.OrigReceiptNbr   Does Not Equal   POReceiptLine.ReceiptNbr

(assuming this is accurate logic; the main thing is using the Conditions tab, not the Results tab)


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 16, 2023

Hi @darylbowman and @Robert Sternberg, thank you for sharing your ideas. However that is not what we are looking for. 

Below is an example: 

If the return contains the original receipt nbr and if the line nbr is the same - we would like to exclude the receipt line completely. 
That is if concatenation of (OriginalReceiptNbr, LineNbr) is the same as Concatenation of (ReceiptNbr,Linebr) then exclude. (In this case it needs to exclude the highlighted line in green)

Which is why we wanted to know if there is a function similar to Vlookup in acumatica GI. Can this be done in acumatica GIs? Thank you!


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Not sure if I have an answer for you yet but I would like to read back your question and see if I understand correctly now. 

 

Goal: Exclude receipt lines that were returned. 

Use Case: This GI will display ‘receipts without returns’ and ‘returns’. (excluding ‘receipts with returns’)

 

Does this sound accurate for what you are trying to achieve? If so, we can probably use an aliased table to gather the required information. 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 17, 2023

Hi @Robert Sternberg, yes you understood it correctly. Are you recommending adding another POReceiptLine table with a different alias? 


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Yes that's correct.  Here are the steps explained, I also attached the working Generic Inquiry. 

 

Add Table POReceiptLine Aliased as POReceiptLineReturn
Add your relations so POReceiptLineReturn provides return details of a POReceiptLine
Set a condition to exclude any Receipts with Returns
You can check the results by disabling the condition above and enabling visibility for the ACUCOMMUNITY_ReturnReceiptNbr Field

 

Hope this helps!


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 17, 2023

Hi @Robert Sternberg, I appreciate you working on replicating this! I will review and get back to you, thank you again!