Tuesday, October 29, 2024

How To make the entire grid non-editable in Dynamics 365 for Finance and Operations (D365 F&O) using X++

Total Grid Non-Editable:-

FormGridControl grid = element.design().controlName(formControlStr(YNV_InternalPuchaseRequisitionForm, YNV_InternalPurchaseRequisitionGrid));


            grid.allowEdit(NoYes::No);

============================================================

Only one record is editable at the grid level.

In datasource's  init() method after super() simply call:


allowEditFieldsOnFormDS_W(CustInvoiceJour_ds, false);

CustInvoiceJour_ds.object(fieldNum(CustInvoiceJour, PrintedOrginal)).allowEdit(true);



No comments:

Post a Comment

Resource Hard Booking Multithreading