Please tell me how to call UI page from server side script!

bonsai
Mega Sage

I was using client side UI actions.

Show a popup using "confirm("text")",
After clicking OK, execute the main processing server-side script with "GlideAjax".

After saving the record using "g_form.save( );", I was supposed to pass the sys_id of the record to the main script before processing it, but for some reason it was not saved.

The server-side script "current.update( )" works.

So I wanted to show a popup after saving on the server side!

I thought "confirm("text")" could only be used on the client side, so I wanted to call the UI page.

Is it possible to call the UI page from the server side?

3 REPLIES 3

Samaksh Wani
Giga Sage
Giga Sage

Hello @bonsai 

 

can you share the existing script ?

 

sorry i can't share the code

I would like to know if the UI page can be called from the server side.

Prince Arora
Tera Sage
Tera Sage

@bonsai 

 

Nope!  I don't think so its worked from Server side

But you can use "gs.addErrorMessage('text')"  OR "gs.addInfoMessage('text')"

 

for showing the messages on form from Servers end.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.