Skip to main content
Solved

2024r1 Using GI's in Code Customisations (Instead of SQL View)

  • February 10, 2025
  • 1 reply
  • 58 views

Forum|alt.badge.img

Over here in Australia, Acumatica goes under the brand of MYOB Advanced. As a developer we’ve been told that MYOB are wanting to remove support for SQL Views in lieu of the new features in 2024r1 whereby GI’s can now use other GI’s as input tables. This is very useful and will go a long way to removing the need for SQL Views however…

 

I have multiple (reasonably compex) SQL Views with corresponding DAC’s and several sub-tables. I then use the result to display data on the sales order screen. Similar to:

[PXUIField(DisplayName="Auto Build Available", Enabled = false)]
[PXDBScalar(typeof(Search<AutoKitAssembly.KitAssy.qtyAvail,
Where<AutoKitAssembly.KitAssy.builtItemID, Equal<SOLine.inventoryID>,
And<AutoKitAssembly.KitAssy.siteId, Equal<SOLine.siteID>>>>))]

 

Where ‘AutoKitAssembly.KitAssy.qtyAvail’ is a field from a SQL View or custom table. I can now re-create the complex SQL View using the new and improved 2024 GI’s however how do I reference this GI table from within my SOExt?

Note it is not possible to convert the SQL View to a Projection DAC in BQL due to the table nesting and I dont like BQL at all..

 

Best answer by darylbowman

I don’t think this is “possible”. I saw your other post which loads GI results from code. You may be able to get it to work, but this is not a supported Acumatica function. I would submit a support request to MYOB and ask their advice. If they are removing the ability, they hopefully have considered all use-cases.

1 reply

darylbowman
Captain II
Forum|alt.badge.img+15
  • Answer
  • February 10, 2025

I don’t think this is “possible”. I saw your other post which loads GI results from code. You may be able to get it to work, but this is not a supported Acumatica function. I would submit a support request to MYOB and ask their advice. If they are removing the ability, they hopefully have considered all use-cases.