- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 11:05 AM
I'd like to hide a tab on the catalog task, onload, if the u_request_area is not 'Access Request', which is on the RITM level.
I'm trying to dot-walk from sc_task to RITM and it's not working. There's no errors being thrown. Another question, on the RITM there is a UI Policy to hide the u_request_area if the RITM is not a Access Request. I assume I can still dot-walk to he RITM level, correct?
Ideas?
function onLoad() {
//Hide Orchestration tab if not Access Request
var req = g_form.getReference(request_item);
if (req.u_request_area != 'Access Request') {
g_form.setSectionDisplay('orchestration', false);
}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 11:45 AM
Hi Rebecca,
Try:
function onLoad() {
//Hide Orchestration tab if not Access Request
var req = g_form.getReference('request_item'); <-- this is what I changed
if (req.u_request_area != 'Access Request') {
g_form.setSectionDisplay('orchestration', false);
}
}
harel
edit:
Sorry, my bad.
I think you are missing the quotes:
var req = g_form.getReference('request_item');
Other than that it should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 11:45 AM
Hi Rebecca,
Try:
function onLoad() {
//Hide Orchestration tab if not Access Request
var req = g_form.getReference('request_item'); <-- this is what I changed
if (req.u_request_area != 'Access Request') {
g_form.setSectionDisplay('orchestration', false);
}
}
harel
edit:
Sorry, my bad.
I think you are missing the quotes:
var req = g_form.getReference('request_item');
Other than that it should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 12:15 PM
Ugh, sometimes you can look at something over and over and still not see it - thanks! It works now!