GlideModal is not working in UI Action

Mahendra RC
Mega Sage

Hi All,

I am writing UI action on Incident table for 'List Choice'. I am using GlideModal in UI Action to populate a window based on some condition. Below is the code I am using,

      var dialog = new GlideModal('add_selected_metadata_link_dialog');

      dialog.setTitle(new GwtMessage().getMessage('Create Application File from Record'));

      dialog.setPreference('current_table', g_list.getTableName());

      dialog.setPreference('sys_id_list', g_list.getChecked());

      dialog.render();

GlideModal.PNG

but I am getting the following error :

Glide Modal Error.PNG

I don't know much about the GlideModal. I have simply copied the code from other UI action and pasted it in my UI action. I don't know where to define GlideModal. Do I need to define/create GlideModal somewhere (I don't know anything about it - using it for first time ). Can anyone please help me on this at the earliest.

Thanks in Advance.

1 ACCEPTED SOLUTION

Preetam Barai
Tera Expert

Hi Mahendra,



There should be an option on the UI Action "client callable" check if that is ticked. Also please find the below community thread which has helped me in past. Hope it helps you.



How do I pass values to UI Page with glideModal?


View solution in original post

1 REPLY 1

Preetam Barai
Tera Expert

Hi Mahendra,



There should be an option on the UI Action "client callable" check if that is ticked. Also please find the below community thread which has helped me in past. Hope it helps you.



How do I pass values to UI Page with glideModal?