public void modifyQueryFromArgs(Args _args)
{
CustTable custTable = _args.record();
if (custTable)
{
MyContact contract = this.getDataContractObject(); // Todo: change contract type to your own.
if (contract)
{
Query query = contract.getQuery();
if (query)
{
QueryBuildDataSource custTable_ds = query.dataSourceTable(tableNum(CustTable));
SysQuery::findOrCreateRange(custTable_ds, fieldNum(CustTable, AccountNum)).value(
queryValue(custTable.AccountNum));
contract.setQuery(query); // Replace query in contract with modified query.
}
}
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,532 Super User 2024 Season 2
Martin Dráb 228,501 Most Valuable Professional
nmaenpaa 101,148