GlideDialogForm and GlideDialogWindow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2017 06:18 AM
Hi,
On the incident form, I am using a UI action to call a glideDialogForm from another table.
Currently using this script:
//dialog opens with previous justification and deletes it on submit
if(lookup.u_category != '') {
var dialog = new GlideDialogForm('Escalate incident', 'u_incident_category_area_lookup', setCatField);
dialog.setSysID('-1'); //Pass in -1 to create a new record
dialog.addParm('sysparm_query','u_incident='+inc + '^u_category='+category + '^u_area='+area + '^priority='+priority + '^u_work_notes='+workNotes); //Set form sys id and other fields in lookup form fields
dialog.addParm('sysparm_view', 'popup_view'); //Specify a form view
dialog.addParm('sysparm_form_only', 'false'); //Show related lists
// dialog.removeCloseDecoration(); //remove the close cross from the dialogwindow
dialog.render(); //Open the dialog
}
}
target table is u_incident_category_area_lookup
A coupe of issues I encountered:
1. dialog.addParm('sysparm_form_only', 'false'); -> does not work. The related list on the target table does not show in the window that pops up.
2. How do I add a "Cancel" button to the pop up form?
I wanted to use a glideDialogWindow, but could not understand how to create a UI Page that refers to the target table and get the form to load properly - so any help/example would be very welcome.
harel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2018 10:01 AM
Hi oharel , did you manage to solve it? Perhaps by creating custom UI Page... I wish not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2018 10:54 AM
Hi Oleksiy,
I ended up changing it to an onChange client script, which really works for me, because then the Service Desk, for which this was all meant to begin with, did not have to click another button. I also changed the related list into a section, so it loads up with the form.
harel