Menu

iTop 3.1 Interfaces - no $oPage on stimulus form

Nico
2023-10-13
2023-10-13
  • Nico

    Nico - 2023-10-13

    Hi,
    in iTop 2.7 I used the interface "OnDisplayProperties" to inject HTML/JS code to the form on a stimulus action. E.g. when a UserRequest is to be resolved I added some comments to that form via Javascript.
    In iTop 3.1 this interface not called anymore on stimulus actions.
    Only when an object is displayed I can still use this to inject code using $oPage->add_ready_script().
    With the new events API I can only manipulate object on database level as I understand, not how objects are displayed on the page.
    Is it somehow still possible in iTop 3.1 to inject code to that stimulus forms?
    Regards,
    Nico

     
  • Guillaume Lajarige

    Hello Nico,

    Take a look at the iBackofficeXXXExtension interfaces, they should do what you need.

    Whit iTop 3.0 we deprecated the direct access to the $oPage element as it allowed developer to do anything on it, which was to complicated for us to maintain and guarantee over time.

    Hope this helps,
    Guillaume

     
    • Nico

      Nico - 2023-10-13

      Hi,
      thanks for that hint. I can understand the purpose of that change.
      It seems I can use that interfaces for my customizations.
      Great Tool :-)

      Cheers,
      Nico

       
      ❤️
      1
    • Guillaume Lajarige

      Thanks! 🙏

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.