What's New?
We introduced Scripting functionality in SummitAI Alps version, which was limited to basic features and was available only on few pages (see: /wiki/spaces/ALPS/pages/21481304). The SCRIPTING icon is now available on the Quick Action Bar of the SummitAI Application. The Administrators can write their own codes to customize the fields present on all the pages of the Application. In addition to JavaScript andCSS codes, Administrators can now write their own HTML codes to customize the fields. For more information about Scripting, see Scripting.
Figure: SCRIPTING icon on Quick Action Bar
Note:
By default, HTML Codes with dynamic id (dscript_htmldiv_01) will not be displayed on the page. The user must write the JS for appending the HTML then only HTML block will be displayed on the page. The unique dynamic id (dscript_htmldiv_01) should not be used by the administrator while writing HTML Codes. Refer Quick Help to see examples of how to refer dynamic id (dscript_htmldiv_01) in JS.
A new field, Status (Maintenance or Published), is added on the SCRIPTING – PAGE NAME (TENANT) page.
- Maintenance: If selected, the customized changes on the page are applicable to the user who has done the scripting and not applicable to the other users without access.
- Published: If selected, the customized field changes are available to all the users.
Note:
The Scripting option is only available when you are editing an existing theme on the THEME CONFIGURATION page. The Scripting option is not available when you add a new theme on the THEME CONFIGURATION page. Fields on the pop-up window cannot be customized.
Configuration
To enable the SCRIPTING option in the SummitAI application, select the check box, Enable Scripting, 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).
Note:
- If Page Name and Tenant Id are found in the ADM_DScript_PageWiseInstanceMapping table, the customizations are Tenant-specific.
- If Page Name and Tenant Id are not found in the ADM_DScript_PageWiseInstanceMapping table, but UserControl Id is found on the page, the customizations are Tenant-specific.
- In case if the Page Name and Tenant Id are not found in table, and page does not consist of UserControl Id, the customization will be page-specific. In such as case, if the Administrator wants Tenant-specific scripting, the Page Name and Tenant Id should be inserted in the ADM_DScript_PageWiseInstanceMapping table.