DanielCordick
Mega Patron
Mega Patron

I am setting up a a new workspace for a group and i thought i would give the new app engine studio a crack. I wanted to add a button to a page so i can assign the current incident i was viewing to myself. easier said then done with not a lot of information. i tried searching the docs, i went the developer.service-now.com and checked out everything i could on UI builder. I ended up figuring this out on my own through trial and error. i thought i would share my experience and hopefully save someone hours 🙂 

 1. add the button component to a page, in the config panel on the right, you can rename it, change the color by choosing a value under variant, size, add an icon and even disable the button. 

find_real_file.png

 

2. go to the event tab and click the Add a new event handler button where you will be presented with a new screen like below. There are many options to choose from but in the case of this i am looking for the set value option under Glide Form.

find_real_file.png

 

3. Selecting the Set Value you will be presented with 3 fields that need to be filled in. I didn't know this and couldn't find this little bit of information anywhere. In the field name section, it is just the field name, no ${Field Name}, no "field_name" again i couldn't find this anywhere and was stuck thinking i needed quotes or a $ sign. the Value and Display value fields were new to me in this view I am used to g_form.setValue('assigned_to', XXXXX.getDisplayValue). 

Lots of trial and error and and poking with the data function i stumbled upon (@)context.session.user. From what i understand in my few hours of this is this is for the current logged in user.

click apply and test your button. I set this up on an incident record and was successful in assigning the record to myself.

 

  • find_real_file.png

 

If i could change anything on this form it would be better field annotations with an example of some sort. I hope this helps anyone starting out in the App Engine Studio journey 

Version history
Last update:
‎11-05-2021 12:41 AM
Updated by: