Open UI - Change Button properties based on record selected in List Applet
I have created an applet PR which inserts a custom button on my Activity List Applet in Siebel IP16. (I added script to inject button through PR myApplet.prototype.ShowUI .)
1. At a high-level, what do I need to do to conditionally hide\show the button based on data (e.g. the Activity "Type" field) on the currently selected row in the LIST applet?
In other words, if RECORD 1 has Activity Type = "To Do".. button should be hidden.
If the user selects RECORD 2, which has Activity Type = "Call Back" I want button to be visible.
I know how to do this using Siebel Tools and applet config\scripting but I'm trying to do it all with Open UI javascript PRs and PMs so that I better understand the frame work and also to build a more flexible solution.