- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 04:32 AM
Hii Community,
I have a customized List Control in change record. As shown below, in release tab there are two buttons New and Edit.
New button when clicked is working as expected but whenever I click Edit button it says "Action not Authorized".
Kindly help me with this issue. It is effecting business operations as it's on production environment.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2022 10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 04:40 AM
This is my script in list control for Omit edit condition :
if(parent.state == 3 || current.u_change_release.correlation_display == "standalone"){
answer = true;
}
answer=true;
var gr = new GlideRecord("change_task");
gr.addQuery("change_request", parent.sys_id);
gr.query();
while (gr.next()) {
var wf_display = gr.getDisplayValue('wf_activity');
if(wf_display == 'Link Change to the Release')
{
if(gv.state=='4')
{
answer=true;
}
else
{
answer = false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 05:03 AM
You can try this
if(current.parent.state == 3 || current.u_change_release.correlation_display == "standalone"){
answer = true;
}
var gr = new GlideRecord("change_task");
gr.addQuery("change_request", current.parent.sys_id);
gr.query();
while (gr.next()) {
var wf_display = gr.getDisplayValue('wf_activity');
if(wf_display == 'Link Change to the Release')
{
if(gr.state=='4')
{
answer=true;
}
else
{
answer = false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2022 10:16 AM
Requirement achieved. Thanks community