Thursday, Aug. 17, 2017

Conditionally enable button on same list applet based on different views

Written By:

|

December 29, 2012

|

Posted In:

Requirement:

Applet called “Activity List Applet with Navigation” had a custom button called “Edit” which invokes a custom functionality. This applet exists in 5 different views under Activities Screen. The requirement is to allow the user to invoke this custom functionality only on one view called as “All Activity List View“. Moreover solution has to be scriptless with minimal configuration.

Solution:

Follow the below steps to implement this requirement:
1. In Siebel Tools, go to Business Component called as Action and create a new calculated field as below:

Enable button on different views

Notes:
CalView is based on getting a profile attribute called “ActiveViewName” to ensure that Y is returned when a particular view is loaded on UI.

2. Go to the Applet called as “Activity List Applet With Navigation” and create a new User property as below:

Enable button on different views

For more information on CanInvokeMethod User property, please visit

http://docs.oracle.com/cd/B40099_02/books/ToolsDevRef/ToolsDevRef_UserProps10.html

3. The custom button “Edit” created in Activity List Applet with Navigation is as below:

Enable button on different views

Button has been exposed on the UI.
4. Compile the BC and the applet and launch the client to see the configuration changes.
*Edit button is enabled for one view as below:

Enable button on different views

**Edit button is disabled for other views as below:

Enable button on different views

***Edit button is disabled for other views as below:

Enable button on different views



Share This Article

About Author

Gurdeep

Hi, I am sharing my experience to alleviate beginners with open UI and HI version of Siebel CRM. I work in Sun Life Financials and can be reached via IT Tool box as well. Thanks.

Comments are closed.

Leave A Reply