MODIFIED METHOD IN D365 ENVENT HANDLER CODE
MAKE SURE THAT YOU USE THE METHOD SIGNATURE PROPERLY.
EXAMPLE
[FormDataFieldEventHandler(formDataFieldStr(InventJournalName, InventJournalName, JournalType), FormDataFieldEventType::Modified)]
public static void JournalType_OnModified(FormDataObject sender, FormDataFieldEventArgs e)
{
FormDataSource inventJournalName_ds = sender.datasource();
FormRun formRun = sender.datasource().formRun();
//FORMRUN
InventJournalName inventJournalName = inventJournalName_ds.cursor();
FormTabPageControl TabFinancialDimensions = formRun.design(0).controlName("TabFinancialDimensions");
inventJournalName_ds.object(fieldNum(InventJournalName, LocationDimensionLink)).visible(true);
}
}
public static void JournalType_OnModified(FormDataObject sender, FormDataFieldEventArgs e)
{
FormDataSource inventJournalName_ds = sender.datasource();
FormRun formRun = sender.datasource().formRun();
//FORMRUN
InventJournalName inventJournalName = inventJournalName_ds.cursor();
FormTabPageControl TabFinancialDimensions = formRun.design(0).controlName("TabFinancialDimensions");
inventJournalName_ds.object(fieldNum(InventJournalName, LocationDimensionLink)).visible(true);
}
}
Thanks,
Vikas Mehta
It was a great information. Thanks for sharing.
ReplyDeleteMS Dynamics Trade and Logistics Online Training
Thanks for sharing the valuable information. Keep on sharing.
ReplyDeleteD365 Finance and Operations Training
D365 Finance Training
D365 Operations Training
Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a bit, but other than that, this is excellent blog. A fantastic read. I’ll definitely be back small business website
ReplyDelete