- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 08:57 AM
Greetings lovely Ladies and Gentlemen.
I want use the Change button (UI marco)to update some tables some records, like the picture
now the button is working but I dont know how to query and update tables in Jelly script
please help me! Would be grateful for any help.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 09:18 AM
You can call script include from UI macro using <script> tag and GlideAjax like below
<script>
function showRelatedList(reference) {
var ga = new GlideAjax('HelloWorld');
ga.addParam('sysparm_name','helloWorld');
ga.addParam('sysparm_user_name',"Bob");
ga.getXML(HelloWorldParse);
}
</script>
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 09:16 AM
Simple.
Use glideajax to call a script include

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 09:18 AM
You can call script include from UI macro using <script> tag and GlideAjax like below
<script>
function showRelatedList(reference) {
var ga = new GlideAjax('HelloWorld');
ga.addParam('sysparm_name','helloWorld');
ga.addParam('sysparm_user_name',"Bob");
ga.getXML(HelloWorldParse);
}
</script>
Regards,
Sachin