Announcements
fieldSetMap.insert(fieldStr(CustVendPDCRegister, Comments), any2Str('hello'));
FormDataSource dataSource = FormDataUtil::getFormDataSource(args.record()); Contract contract = this.getDataContractObject(); MultiSelectionHelper selectionHelper = MultiSelectionHelper::construct(); TableX tableX; QueryBuildDataSource qbds; QuerybuildRange qbr; selectionHelper.parmDataSource(dataSource); tableX = selectionHelper.getFirst(); Query query = contract.getQuery(); while (tableX) { qbds = query.dataSourceTable(tableNum(TableX)); qbr = qbds.addRange(fieldNum(TableX, RecId)); qbr.value(queryvalue(TableX.RecId)); tableX= selectionHelper.getNext(); } contract.setQuery(query);
public class Service extends SysOperationServiceBase { public void process(Contract _contract) { TableX tableX; System.Exception ex; Map updateFieldMapping = new Map(Types::String, Types::String); Query query = _contract.getQuery(); updateFieldMapping.insert(fieldStr(TableX, Comment), 'Hello'); try { ttsbegin; Query::update_recordset(updateFieldMapping, query); // you can assign true to other variables in this method ttscommit; } catch(ex) { throw error(ex.Message); } } }
public void updateComments(FormDataSource ds) { CustVendPDCRegister pdcRegister; Container conRecords; pdcRegister = ds.gerFirst(1); while (pdcRegister) { conRecords += int642Str(pdcRegister.RecId); pdcRegister = ds.getNext(); } //rest of the code... }
CustVendPDCRegister pdcRegister = _registerDs.cursor(); qbds.addRange(fieldNum(CustVendPDCRegister, RecId)).value(queryValue(pdcRegister.RecId));
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 community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 265 Most Valuable Professional
André Arnaud de Cal... 261 Super User 2026 Season 2
Subra 229 Super User 2026 Season 2