Including scoped application UI page in scoped application UI action

ashutoshk
Giga Contributor

I want to override default UI action for delete a list record. I have defied a custom UI action in my scoped application for the same. As a part of UI action, I want to show confirmation dialog and for which I have defined scoped UI page.

Now when I am trying add the scoped UI page for my dialog, I am getting page not found error. However If I define my UI page as global, then I am able to get the dialog as expected.

Is it not possible to include scoped UI page in scoped UI action?

2 REPLIES 2

ashutoshk
Giga Contributor

Found a working solution at UI Page Scode Issue

In a scoped application, provide the GlideDialogWindow full name of UI page including the application scope name like [scope prefix] + [_]+ [UI page name]. While appending the application scope and UI page name use '_' to append the names.

For example, if application scope is 'x_my_app' and the UI page name is 'my_delete_dialog' then the name that will be provided to GlideDialogWindow will be like 'x_my_app_my_delete_dialog'

var dialog = new GlideDialogWindow('x_my_app_my_delete_dialog');

 

dialog.render();

 

ashutoshk
Giga Contributor

Found a working solution at UI Page Scode Issue

In a scoped application, provide the GlideDialogWindow full name of UI page including the application scope name like [scope prefix] + [_]+ [UI page name]. While appending the application scope and UI page name use '_' to append the names.

For example, if application scope is 'x_my_app' and the UI page name is 'my_delete_dialog' then the name that will be provided to GlideDialogWindow will be like 'x_my_app_my_delete_dialog'

var dialog = new GlideDialogWindow('x_my_app_my_delete_dialog');