Siebel SmartScript Administration Guide > Verifying, Testing, and Invoking SmartScripts > About Invoking SmartScripts >
Invoking SmartScripts Using a Hyperlink
This topic describes how to invoke a SmartScript from a hyperlink. You can do this from an email or from a Web page, generated by an application, such as Siebel eService. The following example demonstrates how to invoke a SmartScript from a custom view in the Siebel eService application. To use this functionality, you must modify objects in Siebel Tools. To invoke a SmartScript from a custom view in Siebel eService
- Log in to Siebel Tools.
- Query for the applet from which the SmartScript is invoked. In the example, this applet is eService Account Quick Links Applet.
- Lock the project that contains this applet.
- Create two new controls for the eService Account Quick Links Applet. In the example, these controls are LinkSmartScript and LabelSmartScript. The following table describes the property values for the LinkSmartScript control.
NOTE: In the following tables, X indicates that you select a check box.
|
|
Name |
LinkSmartScript |
Caption |
SmartScript |
HTML Display Mode |
EncodeData |
HTML Row Sensitive |
X |
HTML Type |
Text |
Method Invoked |
GotoView |
Sort |
X |
Text Alignment |
Left |
Visible |
X |
Visible - Language Override |
Y |
The following table describes the property values for the LabelSmartScript control.
|
|
Name |
LabelSmartScript |
Caption |
Create a SmartScript |
HTML Display Mode |
EncodeData |
HTML Row Sensitive |
X |
HTML Type |
Label |
Sort |
X |
Text Alignment |
Left |
Visible |
X |
Visible - Language Override |
Y |
- Invoke the Edit Web Layout command for the eService Account Quick Links Applet and add the LinkSmartScript and LabelSmartScript controls to the applet.
- For the LinkSmartScript control, add a Control User Prop with the values listed in the following table.
|
|
Name |
View |
Value |
myExample SmartScript Player View NOTE: You create this view in Step 7.
|
- Navigate to the View object, and select the Smart Script Player View (eApps) view object. Lock the project, create a new view by copying this object, and rename it. This is the view that you specify for Value in the Control User Prop created in Step 6. The following table specifies the values to give to this newly created view object.
|
|
Name |
myExample SmartScript Player View |
Project |
eSmartScript |
Business Object |
Smart Script Player |
- Navigate to the Screen objects, and select the Smart Script Player View (eApps) screen object.
- Add the view that you created in Step 7 to the list of screen views for the Smart Script Player View (eApps) screen object.
CAUTION: Select a sequence number that does not conflict with existing sequence numbers.
- Navigate to the Application objects, select the Siebel eService application, then navigate to the Screen Menu Item list, and make sure that the Smart Script Player View (eApps) screen appears in this list.
- Compile the locked projects.
- Log in to your Siebel application, and navigate to the Administration - Application screen > Views view.
- Create a new record in the Views list, add the view that you created in Step 7, and select the Default Local Access check box.
- In the Responsibilities list, add the responsibilities that you want to allow access this view.
- Navigate to the Administration - SmartScript screen > Views view, select the view you created in Step 7, and in the Auto SmartScript field select the SmartScript that you want to invoke.
- Log out from your Siebel application.
- Restart your Siebel Server.
After the Siebel Server restarts, you can log in to Siebel eService where a hyperlink entitled, Create a SmartScript appears. Clicking this hyperlink invokes the SmartScript that you specified in Step 15.
|