Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

GlideDialogWindow scoped app RP.getWindowProperties()

dmfranko
Kilo Guru

Hello,

It doesn't seem that RP.getWindowProperties() works when using a GlideDialogWindow with a scoped UI Page.   Anyone have any idea is this is expected or if it's possible to pass preferences to a UI page from a dialog in any other way?

Thanks!

Dan

6 REPLIES 6

kavi11
Tera Contributor

Hi Daniel,


you better use GlideDialogForm(UI page,"scope_of_the_ui_page"); istead of GlideDialogWindow(). Since GlideDialogWindow won't work while using ui page, which was created inside the scoped application.



Thanks,


Kavishree S


I'm having the same issue, neither GlideDialogForm and GlideDialogWidnow seems to work, I'm calling it this way



var gdw = new GlideDialogWindow('x_12345678_myappname_the_ui_page'); and this is rendering the page as planned but RP.getWindowProperties() is not getting values instead I get "null"


sophie_lemaitre
Tera Contributor

I found help from this page :

Note: For scoped applications, the RP.getWindowProperties.get() method is not avaliable. Instead use the syntax RP.getWindowProperties.<property>, where <property> is the dialog box property that you want to obtain. For example, RP.getWindowProperties().get('title') would beRP.getWindowProperties().title.

Thanks, this helped a lot !