Hi,
I have a grid that displays data from two different tables, I'm using the args class to pass the data to another form and it works for just one table but I can't get the other data table, I tired to use select statements but just keep getting me the same value
thanks
I'll try it
thank you a lot
it's big help
The best option may be using relatedTable() method. You can see an example in CustTable.name().
You can pass only one table buffer via args.record().
But if you pass SalesAgreementLine, you always know how to fetch SalesAgreementTable, right?
Or, if you pass SalesAgreementTable, you can iterate all lines in code.
But, you can also user args.caller() to get the whole FormRun object of the caller form. Via FormRun you can access any object on the caller form. Including active records in all data sources.
Hi André ,
I have a grid in FormA it has data from SalesAgreement table and AgreementLine table, when I select line and press buttonOpenFormB I need to have the data in the record from both table, but I only managed to get the data from SalesAgreement table using args class, I couldn't get AgreementLine table data in FormB.. I managed to get the data using select statement between AgreementLine and SalesAgreement, I don't know if you can do it through args class or I'm just dreaming :D
thank anyway
Hi Kareem,
Can you provide more information? What exact tables are used on the first form and what should be the result when you start the second form?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 665 User Group Leader
Martin Dráb 595 Most Valuable Professional
Yng Lih 558