Hi,
Orig() is to get the last saved values. This method is used to compare the new values with last saved values.
if(purchTable.orig().DlvTerm != purchTable.DlvTerm)
{
//element.updateDlvTerm();
//Your custom code
}
Regards,
The purpose of this blog is for knowledge sharing and connect the relevant audience who are all into Microsoft Dynamics world.
Hi,
Orig() is to get the last saved values. This method is used to compare the new values with last saved values.
Regards,
Hi,
Overlayer of standard code to execute your methods is not possible literally, whereas there are several other ways to override.
Procedure.
1. Class to register the override you created.
2. Call the registered call on the eventHander.
Registering Override method.
Calling the Registered methods.
Regards,
Hi,
Using an event handler, we cannot call the custom methods created in another later / model/ ISV object.
On calling formRun.CreateDeliveryNote() throws the error ‘FormRun doesn't have the method CreateDeliveryNote.
FormDataSource purchTable_ds = sender.datasource();
FormRun formRun = purchTable_ds.formRun();
formRun.CreateDeliveryNote() ;
Conclusion is to use only COC not eventhandler
[ExtensionOf(formDataFieldStr(PurchTable, PurchTable, DeliveryDate))]
final class PurchTableDeliveryDateField_Extension
{
public void modified()
{
next modified();
element.CreateDeliveryNote(); // Custom method from Other Later / Model
}
}
Regards
Hi,
To know the ISV objects implications.
[ExtensionOf(classStr(ClassToExtend))] - class
[ExtensionOf(formstr(FormToExtend))] - Forms and its methods
[ExtensionOf(formdatasourcestr(FormToExtend, DataSource1))] - Form Datasource and its methods
[ExtensionOf(formdatafieldstr(FormToExtend, DataSource1, Field1))] - Form Datasource fileds and its methods
[ExtensionOf(formControlStr(FormToExtend, Button1))] - Form Object and its methods
[ExtensionOf(tablestr(TableToExtend))] - Table methods
[ExtensionOf(tableStr(DataEntityToExtend))] - Entity methods
Hi,
Regards,
Hi, update companyimage set companyimage.Image = companyimageA.Image from ( select Image from companyimage where dataAreaid = 'USF...