List Client & Server Scripts on Embedded list

peter_repan
Tera Guru

Hi all,

does anyone have any documentation regarding the "List Client Scripts" and "List Server Scripts" ?

I found them in Embedded lists, but not sure how to use them / what's the context, if there is any return value in server script and so on....

6 REPLIES 6

Aviv S_
Tera Contributor

Does anyone understood the list server/client script?

The client scripts seem to be fairly straight forward:

onSubmit list client scripts seem to trigger on form submission and onChange list client scripts seem to trigger if you either cell edit content in the embedded list or otherwise enter new rows or information into the list.

It is basically a normal form client script but with the GlideList object for the embedded list already initialised as "g_list". This gives us easy access to refreshing the list and getting various info like row count, which are interesting for validation or updates.

 

What I haven't found out yet are what the list server scripts are capable of doing and when and how they trigger or are triggered.

What I've tried to no success so far:

- treat them like a script include (classles and class) and try to call them from a list client script with GlideAjax

- treat them like a business rule that might trigger on cell edit or form update (using an IIFE like a business rule, providing current and previous as parameters)

- treat them like a form UI Action and try to gsftSubmit() providing the name of the server script as the action name

 

Perhaps this inspires someone else to find out what the list server scripts are about. I would imagine that maybe they aren't functional at the moment but are planned to be or maybe they are even deprecated already. Maybe the solution is already in what I tried but I made a mistake.