web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Liquid error: Value cannot be null. Parameter name: key  Profile Picture Liquid error: Value cannot be null. Parameter name: key Community member

Comments

*This post is locked for comments

  • Muneeb Umer Profile Picture Muneeb Umer 70
    Posted at

    HI,

    Is there any way to extend init method of form.Because extension is not working at all for init.

    please help.

    ExtensionOf(formstr(PCRuntimeConfigurator))]

    final class PCRuntimeConfigurator_Extension

    {

       ///

       ///

       ///

       ///

       [PostHandlerFor(formStr(PCRuntimeConfigurator), formMethodStr(PCRuntimeConfigurator, init))]

       public static void PCRuntimeConfigurator_Post_init(XppPrePostArgs args)

       {

       }

  • Gustavo Bagno Profile Picture Gustavo Bagno
    Posted at

    What if I wanted to "skip" some method?

    For instance, in the INIT of a form, the out of the box code is calling "this.dosomething()".

    What if I wanted to not call this, or call this method based on a condition? With overlayering that would be easy. How would you do that with extensions?

  • Marija Todorovic Profile Picture Marija Todorovic 70
    Posted at

    Hi,

    Is there a way to add implements [interface_name] on form extension?

    Thanks

  • Lauras U Profile Picture Lauras U 955
    Posted at

    As I understand this works for FormEventHandlers/FormControlEventHandler/FormDataSourceEventHandler and etc. not with PostHanlder for and PreHandlerFor

    For example this didn't work without static modifier:

       [PostHandlerFor(formStr(PurchEditLines), formMethodStr(PurchEditLines, run))]

       public void PurchEditLines_Post_run(XppPrePostArgs args)

  • RobAXtension Profile Picture RobAXtension 10
    Posted at

    Hi Robert,

    Can you confirm if this should work for registerOverride and resolveReference?

    Kind regards,

    Rob Cilissen

  • Community Member Profile Picture Community Member
    Posted at

    Thanks! I was afraid I would have to write something myself (based on your information from Yammer :)). When looking at Update 2 without any information, I didn't figure out what you meant by "code behind". I'm used to WPF and expected something similar to code behind there, while in AX the experience is very different (at least for now).