[Control("Button")] class BtnMarkAsReserved { /// <summary> /// /// </summary> public void clicked() { //Declare dialog variables Dialog dialog; DialogField fieldfMemo; Notes notes; ; dialog = new Dialog("Comment"); //define fields to show on the dialog fieldfMemo = dialog.addField(extendedTypeStr(Notes)); dialog.run(); if (dialog.closedOk()) { //get values from the dialog fields notes = fieldfMemo.value(); ActivityLogDetails_DIS logDetails; MultiSelectionHelper helper = MultiSelectionHelper::construct(); helper.parmDatasource(ActivityLogDetails_DS); logDetails= helper.getFirst(); while (logDetails.RecId != 0) { info(logDetails.ItemID); logDetails= helper.getNext(); } } super(); } }
This blog is contains coding reference related to Microsoft AX 2012 and D365 finance and operations and Power platform
Monday, January 23, 2023
Simple dialog with with field in D365FO
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment