Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Scroll ignore | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Scroll export button | ||||||||
---|---|---|---|---|---|---|---|---|
|
What is Scripting?
Using the SCRIPTING icon on the Quick Action Bar, the Administrators can now write their own Java Script, CSS, and HTML codes to customize the fields. This icon is available for all the pages of the Application.
Figure: SCRIPTING icon on Quick Action Bar
How to Enable Scripting?
- Select the Enable Scripting check box under the SCRIPTING section of the ROLE TEMPLATE - OTHER CONFIGURATION page (Admin > Basic > Users > Role Template > Select a Template from the LIST section > On the ACTIONS panel, click OTHER CONFIGURATION, see Role Template Other Configuration).
- The Scripting functionality option becomes available on the MY PROFILE (See: Viewing and Updating Your Profile Details) and THEME CONFIGURATION pages (See: Configuring Themes).
- The individual users can show or hide the SCRIPTING icon on the Quick Action Bar by selecting the Show/Hide Scripting Icon on Quick Action Bar check box available under the Scripting tab of the MY PROFILE pop-up page (Quick Action Bar > Click PROFILE Picture > Select Edit Profile > Select Scripting section > Select Show/Hide Scripting Icon on Quick Action Bar check box).
- The users need to log out and log in again into the Application to view the SCRIPTING icon. By default, the SCRIPTING icon is hidden.
Figure: MY PROFILE: Scripting
About SCRIPTING - PAGE NAME (TENANT) Page
When you click on the SCRIPTING icon present on the Quick Action Bar, you are redirected to the SCRIPTING - PAGE NAME (TENANT) page where you can write your own Java Script, CSS, and HTML codes to customize the fields present on the page. For more information about the fields present on the SCRIPTING - PAGE NAME (TENANT) page, see the Field Description table.
Figure: SCRIPTING - PAGE NAME (TENANT) page
Field Description
The fields present on the SCRIPTING - PAGE NAME (TENANT) page are explained in the following table:
Field | Description | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CONTROL | ||||||||||||||||||||||||
Drop-down list | Under the CONTROL section, a drop-down list, consisting of controls (having IDs and text) that can be customized, are present. Select a preferred Control, for which you want to write the scripts for, from the drop-down list.
| |||||||||||||||||||||||
PROPERTIES | Below the drop-down list are two tabs: PROPERTIES and EVENTS.
Under the PROPERTIES tab there are two fields:
| |||||||||||||||||||||||
EVENTS | Under the EVENTS tab, you can write the Java Script for the Events of the selected Control.
| |||||||||||||||||||||||
DESCRIPTION | Double-click on the fields present in the PROPERTIES and EVENTS tabs to view the description under the DESCRIPTION section.
| |||||||||||||||||||||||
Active | If this check box is selected, the current scripting becomes active for the selected Tenant and is applied to the page. | |||||||||||||||||||||||
AREA FOR ADDING SCRIPTS | ||||||||||||||||||||||||
JS | You can add or write your own Java Script (JS) codes, under the text area provided below the JS section.
| |||||||||||||||||||||||
CSS | You can add or write your own CSS codes, under the text area provided below the CSS section.
| |||||||||||||||||||||||
HTML | You can add or write your own HTML codes in the text area provided under the HTML tab.
Note:
| |||||||||||||||||||||||
Status |
| |||||||||||||||||||||||
Version | Each time you make customizations on the selected page and submit the changes, it is saved as a different version in the SummitAI application. You can select a preferred version based on your requirement from the Version drop-down list and click OK. You can modify an already existing version, and then save it as a new version.
| |||||||||||||||||||||||
Quick Help icon | The Quick Help icon displays information related to the actions that can be performed on the SCRIPTING page. For example, if you want to perform the following action: How to invoke Web Service? The CODE SNIPPET is provided in the QUICK HELP pop-up. Note: The information available in these tabs are categorized and displayed based on the code type. Now on the QUICK HELP pop-up page, the search information is displayed under the three tabs as follows:
|
Expand | |||||
---|---|---|---|---|---|
| |||||
Following is an example to demonstrate how Scripting can be used: ScenarioConsider that you want to write a JavaScript (JS) to change the name of the Description field present on the NEW INCIDENT page. StepsTo write a JavaScript (JS) to change the name of the Description field present on the NEW INCIDENT page, perform the following steps:
|
Scroll ignore | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|