Scoped Application setDisplay on variable set fails due to cross-scope access denied?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2016 09:09 AM
I saw this other thread, but it doesn't fully explain what is going on, and my situation is a bit different, so I'm hoping there is a better solution. Here's what I have going on:
I have a scoped application (created via the Create Template, this is a Service Management application i.e. sm_order, not the sc_req).
I created a Record Producer in that scope for the Request Table (both are PI)
I created a bunch of variable sets mapped to custom variables I added to that request table
I also create a variable set that has 2 variables that are not related to any table and are just 'floaters' for testing purposes (to test this bug out)
I have ui policy debugging on
My goal is to show/hide entire variable sets based on user input as there are a ton of variables on this form (around 35 in total) and hiding them individually will be a total pain based on all the different conditions I have.
I created a UI Policy (I tried Client Script too) for both onLoad and onChange. I disabled reverse on false and under Run Script, I put the following code:
g_form.setDisplay('variable_set_name', false);
When I load the page, I get the following error:
Display false not set on field test: cross-scope access denied.
So I tried a few things:
1) I am able to setDisplay on every variable in the set and they all hide properly (and the set disappears after all are false)
2) I tried setVisible and it worked fine on the variable set.
3) I even created a new variable set with 2 bogus variables that aren't related to any tables, still doesn't work.
As far as I can tell, everything is scoped properly...all variable sets, record producer, ui policy are scoped the same. I'm not trying to access any variables that might be out of scope (i.e. short description). All of the permissions are set to allow all access.
Now, based on that other thread, if I do create a Global UI Policy, it works just fine. However, that seems really messed up to me. The whole point of scoped applications is to keep them self contained. Anyone know what is going on? Is this a known bug? is their a workaround? I'm on developer instance of Helsinki.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 02:22 PM
This is what I needed!
Cheers!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2018 02:32 PM
Did you find a solution for this?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2018 01:32 AM
yes, I was trying to do a setDisplay on sm_order from a scoped application. You cannot call certain functions on global tables. The best way to avoid this is to create a 'parent' in your scoped that inherits from the global, you can then call whatever you want on the 'parent'. If this doesn't make sense, let me know and I can further explain it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2019 03:45 AM
What do you mean by create a "parent" in your scope that inherits from global?