- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2021 04:45 AM
Hi,
In problem workflow, I edited the form "Resolve dialog form view" and want to be displayed as pop-up on "Resolve" button.
I edited the UI Action - Resolve, with the script:
--------------
function onResolve() {
var tableName = 'problem';
var sysID = g_form.getValue('sys_id'); // sys_id of the record you want to show
//Create and open the dialog form
var dialog = new GlideDialogForm('Resolve', tableName);
dialog.setSysID(sysID); //Pass in sys_id to edit existing record,
dialog.addParm('sysparm_view', 'resolve_dialog_form_view'); //Specify a form view
dialog.render();
}
--------------
The correct pop-up is displayed, but are missing Ok and Cancel buttons.
I edited also, in the Ok and Cancel buttons, in list - UI Action Visibility - to include the view "Resolve..", but still, the buttons are missing on the pop-up.
Am I missing something?
Thanks,
Adina
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 11:15 PM
After I created a dedicated client script for the resolve view and field "
The client script - Modals for Problem state transition - didn't impacted in any way the other views.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 06:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 09:54 AM
By Default, ServiceNow OOB does not provide a Pop Up View when you click on Resolve button.
below are two options:
1) Either follow step by step by having a customize UI Page for which I have given a detailed step by step on how to achieve it.
2) If you want a similar thing like it is available for other button present on other UI Actions then you need to follow below:
1) For example when you click on "Assess" button, a popup/modal is displayed for which within the UI action ServiceNow OOB calls a UI Script named as "ProblemModalUIHelpers" as shown below as well where all the functions for different buttons are written.
For example, for Assess button below is the function which gets executed "ProblemModalUIHelpers.onAssess" as shown below:
Navigate to UI Script module and search for Name as "ProblemModalUIHelpers"
My suggestion would be do not customize this OOB UI Script component as there can be impacts(might get skipped and you may miss some important updates) when you upgrade to higher version.
If you need exactly similar thing create a new UI Script and use the same approach as ServiceNow OOB is doing . Refer to one of the actions highlighted above.
Now Can you share step by step what have you done so far to assist you further. Just sharing one screenshot or a line will not help me to assist you further. please share step by step till now what you have implemented.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 02:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 05:22 AM
I'm trying to use this logic -
https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/
I created the client script for the view, but I can see only the Save button, I don't understand what rules are applied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 09:42 AM
Can you please let me knwo if you are using the approach mentioned in ServiceNow guru article, similar UI Page approach I have provided step by step above.
What is the concern there of not trying to implement that?
Regards,
Shloke
Regards,
Shloke