Lets discuss how to write a JS file in Open UI on application level means it will work for all applets or any view or screens.
Now first question arise in someones mind is why we need such a JS file as we can already implement applet level PM-PR files..?
Well in my case I need to implement accordion effect on 3 applets of a view. Instant solution is to write a View PR but unfortunately its only possible after patchset 3 (will have a post in detail) and I don’y have. So, I need a JS file which is available on application level to implement this requirement.
[su_heading size=”20″]How to Register application level PR:[/su_heading]
[su_list icon=”icon: check”]
- Go to Manifest Administration,
- Query for TYPE=”Application”
- Result will be 2 entries, copy Platform Independent
- And register your general JS file in this object
[/su_list]
[su_lightbox type=”image” src=”http://askmesiebel.com/wp-content/uploads/2014/04/manifest.jpg”]
[/su_lightbox]
[su_heading size=”20″]How to call methods defined in this file:[/su_heading]
We have to call these methods from postload.js file. So, here is the sample how postload.js looks like.
[su_lightbox type=”image” src=”http://askmesiebel.com/wp-content/uploads/2014/04/postload.jpg”]