The CreatorCon Call for Content is officially open! Get started here.

Unable to open multiple sub tabs with g_aw.openRecord in workspace client script

Snehal13
Kilo Sage

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

 
 
13 REPLIES 13

@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.

 

  1. sn_agent_workspace.max_active_tabs
  2. sn_agent_workspace.max_tabs
  3. sn_agent_workspace.max_tabs_ie  (Specific to IE browser)
  4. sn_agent_workspace.total_sub_tabs
  5. sn_agent_workspace.total_sub_tabs_ie (Specific to IE browser)

And these can be editable by "maint" users only.

Thanks,
Anvesh

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

Out of luck. How come same script opens multiple tabs for you

@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.

Thanks,
Anvesh