[DataSource] class ActivityLogDetails { /// <summary> /// /// </summary> public void init() { super(); if (element.args() && element.args().caller() && element.args().record()) { this.query().dataSourceTable(tableNum(ActivityLogDetails)).clearDynalinks(); helper= MultiSelectionHelper::createFromCaller(element.args().caller()); helper.createQueryRanges(this.query().dataSourceTable(tablenum(ActivityLogDetails)),fieldstr(ActivityLogDetails, RecId)); if (element.args().menuItemName() == menuItemDisplayStr(MarkSalesActivityLogReserved)) { activityLogStatus = ActivityLogStatus::Reserved; } else if (element.args().menuItemName() == menuItemDisplayStr(MarkSalesActivityLogRejected)) { activityLogStatus = ActivityLogStatus::Rejected; } else { throw error("@SYS22996"); } } else { throw error(Error::missingRecord(tableId2PName(tableNum(ActivityLogDetails)))); } Ok.enabled(false); } }
This blog is contains coding reference related to Microsoft AX 2012 and D365 finance and operations and Power platform
Monday, January 23, 2023
pass marked records to another form in D365FO
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment