AL icon indicating copy to clipboard operation
AL copied to clipboard

Page Extension existing field triggers

Open bachii1010 opened this issue 9 years ago • 1 comments

Hi,

Is there a way in extensions 2.0 to access the onvalidate and onlookup of the existing fields in pageextension.al file?

We can see that we can access this triggers when we add new field in the Page Extensions

Thanks, Varun Reddy

bachii1010 avatar Apr 04 '17 13:04 bachii1010

If by accessing them, you mean changing the original OnValidate/OnLookup code the answer is no. You can add both OnBeforeValidate and OnAfterValidate triggers to existing table-fields and page-fields.

The triggers that can be used in extensions corresponds to the events supported in 2017. You can see that list here

https://msdn.microsoft.com/en-us/library/mt299406(v=nav.90).aspx#PageEvents

The new trigger syntax in extensions is an easier way to subscribe to the existing triggers.

esbenk avatar Apr 04 '17 14:04 esbenk