On record producers, can glide queries be used within the script section? Or is the best practice to call a script include

Chas
Tera Expert

See below for a glide query written within a record producer's script. However, I was wondering whether this is run client/server side and if the best practice is to call a script include instead? If script include is required, how should it be called from within the script? Thanks.

find_real_file.png

1 ACCEPTED SOLUTION

sandeeprawat
Tera Expert

Hi,

This is a server side script.

Also, a record producer directly creates a record in a table of your choice, so here in this script you can set values of any fields that are say mandatory/desired in your target table but is not being input in the form, or display any messages.

I would not advise to use Ajax on client scripts unless necessary, since it does have an impact UI side.

View solution in original post

2 REPLIES 2

sandeeprawat
Tera Expert

Hi,

This is a server side script.

Also, a record producer directly creates a record in a table of your choice, so here in this script you can set values of any fields that are say mandatory/desired in your target table but is not being input in the form, or display any messages.

I would not advise to use Ajax on client scripts unless necessary, since it does have an impact UI side.

palanikumar
Mega Sage

Hi,

Script include is required only if you are using the same script in multiple places. If you are using this script only here then it is not required to create a script include.

Thank you,

Palani

Thank you,
Palani