
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 08-28-2022 05:02 PM
In case there is a performance issue with loading script based forms (Business Rules, UI policies etc.) due to a long list of tables or if there is a need to restrict tables displayed in such forms, the steps below can help.
1. Seen below is a UI policy on incident table. Expanding the Table field displays other tables in the system
2. To restrict the number of tables displayed, create a Script include, add a method named "process()", and have it return an array of table names. Note that it's important to have the method's name as "process"
3. Configure the dictionary of "table_name" type field (in this case, "Table" field on UI policy form) and add attribute "Table choices script" and set it to the Script include name above
4. Refresh the UI policy form and open the Table field to view the available choices
5. As seen above, the table names will be restricted to the names returned by Script include
Thanks,
Arav
- 793 Views