FormDataSourceEventHandler - Song Nghia - Technical Consultant

Dynamic 365 FO Dynamic 365 Retail

Thứ Tư, 13 tháng 3, 2019

FormDataSourceEventHandler

    [FormDataSourceEventHandler(formDataSourceStr(InventItemBarcode, InventItemBarcode), FormDataSourceEventType::Initialized)]
    public static void InventItemBarcode_OnInit(FormDataSource sender, FormDataSourceEventArgs e)
    {
        FormRun             element      = sender.formRun();
        FormDataSource      InventItemBarcode_ds = element.dataSource(formDataSourceStr(InventItemBarcode, InventItemBarcode)) as FormDataSource;
        InventItemBarcode_ds.object(fieldNum(InventItemBarcode, itemBarCode)).allowEdit(false);
    }