Access client script variables in jelly

questsal78
Giga Expert

Hi there,

Can you please advise how can I access variables from client script in Jelly UI page. 

I'm asking user to enter some thing and just displaying it on UI page, please see below code:

find_real_file.png

Your help will be appreciated.

Thank you,

Mujtaba

1 ACCEPTED SOLUTION

LaurentChicoine
Tera Guru

Hi Mutjtaba,

You cannot send the value to Jelly. Jelly is runned on server side on page load, there is no interaction possible after that using the jelly processor (other than ajax call).

To update the value, you are going to have to update the content using javascript on the client side. If you need to pass the value to the server side to get an answer, you should setup a GlideAjax call.

I know I don't provide any real solution, I'm simply pointing that you won't be able to do it with Jelly.

If you want more help to achieve the result you want, please provide more information about what you are trying to do.

View solution in original post

3 REPLIES 3

seanphelan
Tera Expert

Jelly is server side and your javascript prompt is client side.

Can you

  1. Pass in to this UI page via a URL var
  2. Pass in via  glidedialog window call (aka prompt the user on the form where they were and came here)

LaurentChicoine
Tera Guru

Hi Mutjtaba,

You cannot send the value to Jelly. Jelly is runned on server side on page load, there is no interaction possible after that using the jelly processor (other than ajax call).

To update the value, you are going to have to update the content using javascript on the client side. If you need to pass the value to the server side to get an answer, you should setup a GlideAjax call.

I know I don't provide any real solution, I'm simply pointing that you won't be able to do it with Jelly.

If you want more help to achieve the result you want, please provide more information about what you are trying to do.

you are right, I can't pass variables like that. thank you for your help.