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 12:24 AM
@Snehal13 Here is my code.
function onClick(g_form) {
for (var i=0; i<3; i++) {
var user_query = '^first_name=anvesh';
g_aw.openRecord("sys_user", "-1", {"query": user_query });
}
}
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 12:27 AM
I tried your code. opens only 1 tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 12:40 AM - edited 09-18-2023 12:40 AM
I tried your code in PDI, only it opens 1 sub tab. How are you able to open multiple tabs with same code ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 01:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 01:13 AM
ALL is same. still 1 sub tab opens with the same code 😞