Skip to content

Commit 52b587f

Browse files
Create Prompt for Creating Custom UI Actions with GlideAjax (#33)
1 parent 48a796e commit 52b587f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Assist me in the process of creating a custom UI Action in ServiceNow that triggers a GlideAjax call. Include detailed steps for:
2+
3+
Building the Client-side UI Action Script: Show how to create a UI Action that triggers a GlideAjax call when clicked, including passing necessary parameters from the form or list view.
4+
5+
Creating the Server-side Script Include: Guide me in setting up a Script Include to process the GlideAjax request, retrieve data from the database, and return the result back to the client.
6+
7+
Handling the Response from the Server: Provide steps for processing the server’s response in the client-side script, including updating form fields or showing relevant messages based on the returned data.
8+
9+
When to Use GlideAjax Over GlideRecord: Explain when GlideAjax should be used instead of GlideRecord for client-server communication, with a focus on improving performance by reducing database hits.
10+
11+
Include an example of how to update a form field based on data returned from the server.

0 commit comments

Comments
 (0)