Friday, 8 February 2019

MODIFIED METHODS IN D365 FORM FIELD MODIFIED EVENT HANDLER FormDataFieldEventType::Modified

MODIFIED METHOD IN D365 ENVENT HANDLER CODE

WRITE THE BELOW CODE IN NEW CLASS OR ANY OTHER CLASS.
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);
           
        }
    }




Thanks,
Vikas Mehta

3 comments:

  1. It was a great information. Thanks for sharing.
    MS Dynamics Trade and Logistics Online Training

    ReplyDelete
  2. 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

AZURE INTERVIEW QUESTIONS AND ANSWERS

AZURE INTERVIEW QUESTIONS AND ANSWERES 2021 2. What is cloud computing? Explanation:  It is the use of servers on the internet to “store...