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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Hello Nico,
Take a look at the
iBackofficeXXXExtensioninterfaces, they should do what you need.Whit iTop 3.0 we deprecated the direct access to the
$oPageelement 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
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
Thanks! 🙏