Forum Stats

  • 3,814,525 Users
  • 2,258,880 Discussions
  • 7,892,766 Comments

Discussions

HOW TO : Initialize / On Load of a BPM Object Presentation

720713
720713 Member Posts: 27
Hi,

We have a BPM Object Presentation. On Load of the same, we need to enable/disable a UI field basing on data of one of the BPM Object attributes.

If we put it in constructor, it is not allowing to enable/disable the Presentation UI Component as it is a 'client side' operation.

Wanted to know where we can put the code to 'initialize' of a presentation or do something 'on load' of the presentation form.

Regards,
user8702013
Tagged:

Best Answer

  • 715039
    715039 Member Posts: 32
    Answer ✓
    Hello,

    You can create a method which can be called on the initialization of the screen.

    To map the method with the presentation, you need to click on the presentation(be careful not to select one of the components). You will then see the properties of the entire presentation in the right hand side pane.

    Change the initialization method from <None> to the method you want to call on the loading of the presentation.

    This method will get executed every time the presentation is called.

    If you are making any DB calls or want to interact with some other external resources in this method then change the Server side property of this method to Yes.

    In case of queries revert back.

    HTH.

    Regards,
    Jaydev Doshi

Answers

  • 677481
    677481 Member Posts: 238
    Create a new method client side and associate to the load of the presentation.
    If you need to call a server side method call it from the create it and call it from the client side method created before.
    HTH
    677481
  • 715039
    715039 Member Posts: 32
    Answer ✓
    Hello,

    You can create a method which can be called on the initialization of the screen.

    To map the method with the presentation, you need to click on the presentation(be careful not to select one of the components). You will then see the properties of the entire presentation in the right hand side pane.

    Change the initialization method from <None> to the method you want to call on the loading of the presentation.

    This method will get executed every time the presentation is called.

    If you are making any DB calls or want to interact with some other external resources in this method then change the Server side property of this method to Yes.

    In case of queries revert back.

    HTH.

    Regards,
    Jaydev Doshi
This discussion has been closed.