Announcements
[ExtensionOf(tableStr(PurchTable))] final class PurchTablePOtotalValue_Extension { display PurchLineAmount GetPOtotalValue() { PurchTable purchTable; PurchLine purchLine; PurchLineAmount POtotalValue; select sum(LineAmount) from purchline group by PurchId where purchLine.PurchId == purchTable.PurchId; POtotalValue = purchLine.LineAmount; return POtotalValue; } }
[ExtensionOf(tableStr(PurchTable))] final class PurchTablePOtotalValue_Extension { [SysClientCacheDataMethod] display PurchLineAmount getPoTotalValue() { PurchLine purchLine; select sum(LineAmount) from purchLine where purchLine.PurchId == this.PurchId; return purchLine.LineAmount; } }
public void executeQuery() { QueryBuildDataSource purchTableQueryRunQbds = purchTable_ds.queryRunQueryBuildDataSource(); QueryBuildRange purchIdRange = purchTableQueryRunQbds != null ? purchTableQueryRunQbds.findRange(fieldNum(PurchTable, PurchId)) : null; // If there is specific purchase order id filter on the query run, we don't need the exist join with ProjTmpPurchListTable if (purchIdRange != null) { QueryRun queryRun = purchTable_ds.queryRun(); if (queryRun != null && queryRun.query() != null) { QueryBuildDataSource tmpQbds = queryRun.query().dataSourceTable(tableNum(ProjTmpPurchListTable)); if (tmpQbds != null) { tmpQbds.enabled(false); } } } logisticsPostalAddressHeader_ds.validTimeStateUpdate(ValidTimeStateUpdate::Correction); logisticsPostalAddressHeader_ds.query().validTimeStateDateTimeRange(DateTimeUtil::minValue(), DateTimeUtil::maxValue()); super(); }
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 587
Abhilash Warrier 552 Super User 2026 Season 1
André Arnaud de Cal... 542 Super User 2026 Season 1