Hello Community,
I have a requirement where the user enters data in a custom form and selects one of two actions — Insert or Update. Based on this action, the items related to a particular price group must be grouped and filled into the Trade Agreement Journal lines.
Here is what I have implemented so far:
JournalNum
init()
Args.parm()
Thank you for your valuable responses.
I was able to resolve the issue by retrieving the JournalNum from PriceDiscAdmTable with the following query:
select firstOnly priceDiscAdmTable where priceDiscAdmTable.JournalNum == line.JournalNum;
This worked as expected. Since PriceDiscAdmTrans (line) records are always linked to a PriceDiscAdmTable (header) through the JournalNum field, querying the header with the same JournalNum allowed me to get the required data.
Hopefully, this helps anyone else who runs into a similar situation.
SourceTable ltable; public void initvalue() { super(); if (element.args().record().tableId == tableNum(customTable)) { ltable = element.args().record(); customTable.field1 = ltable.field1; } }
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