- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 11:50 AM
Hi Abhinay
function create() {
var short_text = g_form.getValue("description");
var sysId = typeof rowSysId == 'undefined' ? gel('sys_uniqueValue').value : rowSysId;
var gDialog = new GlideDialogWindow("add_ci_dialogs");
gDialog.setTitle("Create New CI");
gDialog.setSize(500,400);
gDialog.setPreference('sysparm_sysID', sysId);
gDialog.setPreference('sysparm_table', "change_task");
gDialog.setPreference("short_text", short_text);
g_form.save();
gDialog.render();
}
whatever is entered in fields of ui page, i was adding to show in desc but then that also removes what is saved earlier.
Can i not have both of them together also?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 11:52 AM
What type of UI action is it? List choice button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 11:56 AM
Form button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 12:14 PM
So are you trying to set the description field on this form from GlideDialogWindow? Can you elaborate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 12:22 PM
In the change Task, there is a description field. Som one entering in descrition and without saving clicks on the Ui action that opens a dialog box. Then i would like whatever is saved in the desc should also get saved on form. whatever i enter in form, is also saved in the desc field.
So if a user enters ABC in desc and clicks on Ui action and enters DEF in field of dialog.
Thn ABC and DEF should get saved in desc.