Unable to open multiple sub tabs with g_aw.openRecord in workspace client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2023 10:55 PM - edited 09-17-2023 11:18 PM
I want to open multiple sub tabs in workspace client script.
I have a UI action that has a code in workspace client script to get the list collector values from form. There is no issue in the param list. That part is verified.
If there are 3 selections in the list collector, it should open 3 sub tabs
Snippet
for (var i=0; i<users_list.length; i++) {
var user_query = '^first_name='+users_list[i];
g_aw.openRecord("sys_user", "-1", {"query": user_query });
}
Looping it in for loop but only opens 1 sub tab. If 3 users selected on form, open 3 sub tabs on sys_user table.
Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 01:44 AM - edited 09-18-2023 01:47 AM
@Snehal13 This is strange 🤔
Let's give it another try, please check the following sys properties for maximum number of allowed tabs and sub tabs in your environment.
- sn_agent_workspace.max_active_tabs
- sn_agent_workspace.max_tabs
- sn_agent_workspace.max_tabs_ie (Specific to IE browser)
- sn_agent_workspace.total_sub_tabs
- sn_agent_workspace.total_sub_tabs_ie (Specific to IE browser)
And these can be editable by "maint" users only.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 02:05 AM
var p1 = gs.getProperty("sn_agent_workspace.max_active_tabs");
var p2 = gs.getProperty("sn_agent_workspace.max_tab");
var p3 = gs.getProperty("sn_agent_workspace.total_sub_tabs");
gs.info(p1); // gives 8
gs.info(p2); // gives 10
gs.info(p3); // gives 30
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 09:10 AM
Out of luck. How come same script opens multiple tabs for you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 09:36 AM - edited 09-18-2023 09:54 AM
@Snehal13 have you tried in any other browser or machine?
And which workspace you are trying this?
And by the way my PDI is in Vancouver release.
Try in a fresh PDI instance.
Anvesh