gs.getmessage in UI script?

deepakvednegi
Giga Contributor

I am calling a UI page from a Ui script on the basis of following code.

 

 var Dialog = new GlideDialogWindow('MyDialog');
     Dialog.setSize(580,550);
     Dialog.setTitle('${gs.getMessage("Test title")}');
     Dialog.render();

 

But the dialog is opening without any text. Do anyone knows how to implement this because I want to use the localised values for title also.

 

Thanks

Deepak

1 ACCEPTED SOLUTION

deepakvednegi
Giga Contributor

Hi guys
Sorry to ask a silly question. I forgot that we can call getMessage('String') in client script while it is gs.getMessage('String') in server side. It is working fine now



Thanks


Deepak


View solution in original post

7 REPLIES 7

Chandan23
Tera Expert

The script you have showed is a client script, better You need a jax call, before setting the dialog


deepakvednegi
Giga Contributor

Hi guys
Sorry to ask a silly question. I forgot that we can call getMessage('String') in client script while it is gs.getMessage('String') in server side. It is working fine now



Thanks


Deepak


Great Job!!!! and Great Invent as well