Condition Builder

User166992
Tera Guru

Hi,

Is anyone used Condition Builder in UI Pages?If yes, Please share jelly code of the same

21 REPLIES 21

Hi Jonathan,



From a field on the UI Page.


I've created a UI Page which contains a condition field, also the table field. So i have the table selector and the condition which depends on the table selector.



Im struggling to get the value of the condition field.



Thank you in advance.


Manolis.


Nick65
Mega Expert

I would look at the sys_dictionary table and then go to Business Rules. There is a business rule named,


"Reference Qualifier Value" . In that script they are getting the value of the condition builder for the reference qualifier. This should give you a good idea of how to go about it. There is probably another example script on the business rule table. May be worth a look to get your ideas flowing.


**Nevermind this might only be helpfull if you are trying to get the value in processing script or evaluate tag.


Jon_s Perusqu_a
Tera Contributor

Thank you so much for sharing!

I'm experiencing some issues with ServiceNOW Madrid developer instance though...

I created a macro and pasted those two lines on it then added it to a Record Producer as a variable...
The javascript code is displayed all over the view as plain text and still can't find the root cause.

See the attached image:

Hello @Jonás Perusquía ,

 I am also facing the same issue like shown in the image. Did you find the fix to resolve the above issue? Can you please share it.

Thanks

Gautam

Hello @Jonás Perusquía ,

I am also facing the same above issue. Can you please share the solution to fix the above issue.

Thanks

Gautam