AL icon indicating copy to clipboard operation
AL copied to clipboard

OnInit Trigger for Page Extensions

Open megel opened this issue 7 years ago • 5 comments

Is it possible to add OnInit trigger for a Page-Extensions?

megel avatar Apr 09 '18 11:04 megel

Do you have any requirements around this potential trigger? Should it run after the base page OnInit, in which case this would be OnAfterInit? In any case we will discuss internally and see how we can accommodate your suggestion.

StanislawStempin avatar Apr 16 '18 19:04 StanislawStempin

My requirement is to use this trigger for:

  • initial checks
  • initialization
  • change the behavior of the page (visibility / user specific rights)

I believe OnOpenPage will be too late in some cases.

The OnAfterInit would be fine.

megel avatar Apr 23 '18 13:04 megel

Yes, I also think the trigger would be very useful and I don't see any reasons for not providing it.

JSheeper avatar Jul 24 '18 22:07 JSheeper

We have run into this too. OnAfterInit would be fine.

XVII avatar Jul 25 '18 04:07 XVII

We also need to add some code in trigger OnInit of the pageextension, so OnAfterInit would be very useful, indeed. Thank you Damjan

dzakojc avatar Jan 05 '22 10:01 dzakojc