Skip to main content
Question

Combine Parameters in GI


we currently work on creating a GI and have the following question. It has the VendorCD as one of the filter parameters.

 

For technical reasons (bug in acumatica when opening the GI via another screen with parameters), we need to define a second hidden filter field that takes the internal integral BACcountID of the vendor. 

When opening the GI from another screen the BAccountID will be passed (and not the VendorCD) and the results in the GI are all correct.

However it looks confusing for the user as the regular VendorCD filter remains empty. 

 

Is there is a way to combine two GI parameter fields by some formula?

 

Thanks a lot!

9 replies

dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • 643 replies
  • March 27, 2025

@LaurenceGiraud36 How are you opening a GI from the other screen using an Action and passing the parameter in the action?

I would have thought it was as simple as having both fields the CD and ID on the Results of the GI and then the Action passed the Navigation parameter based on the ID and you can have a normal parameter to define the CD when run on its own (allow it to be blank)


  • Freshman I
  • 3 replies
  • March 27, 2025

Hi Dermot, 

we open the GI via an action throwing an PXRedirectToGIRequiredException where we pass all parameters in the exception. That’s not the problem we want to address here though.

We had to add two filters, one with the CD when using the GI directly. And the other one with the internal ID when redirecting from the other screen.

Our question here now is, whether there is a way to define a formula in the CD parameter that somehow takes the internal id from the other parameter and converts it to the CD? ​@Neil Cantral mentioned something like that in a GI webinar yesterday.

See also screenshot:
 

 


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

Can you pass the VendorCD in the parameter even if it isn’t actually what’s causing it to filter correctly? It sounds like you’re just wanting it to look good. Is that right?


dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • 643 replies
  • March 27, 2025

@Krischan Ok follow you now I dont think this is possible but i may be wrong


Ok, we’ll have to find another way. Txs for your feedback


WillH
Varsity II
Forum|alt.badge.img+1
  • Varsity II
  • 54 replies
  • March 27, 2025

If ​@darylbowman ‘s method works, you could maybe extend the condition so that the visible condition is used if present, but otherwise the hidden param ID is used if it’s empty?


  • Freshman I
  • 3 replies
  • March 28, 2025

@darylbowman, no we can’t do that because of the bug I mentioned. The bug occurs when the parameter value contains non-English characters, like German umlauts. So even if we didn’t use the parameter value in the GI for any filtering, just passing a vendor cd like “Müller und Söhne”, would cause the GI to not be opened with the correct parameters.


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

Pardon my continued suggestions, as I’m not familiar with this bug, not being German 😏 Is the end result that the GI doesn’t open, or that it breaks the filtering? Because like ​@WillH suggested, if you could circumvent the VendorCD when BAccountID is used, if the GI actually opens, that might work?


  • Freshman I
  • 3 replies
  • March 31, 2025

Hi Daryl, it depends. Using characters > ASCII 127, like German umlauts, the GI would still open but with wrong parameters and hence with rows in the GI grid which don’t match what the user expected.

For characters like & which have a special meaning in URLs the GI would not even open when using BACcountID instead of VendorCD. E.g. opening the GI with a vendor like “H&M” would just result in a nasty asp.net error page.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings