how to auto populate (dot-walked fields in the table) variables in form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 05:49 AM
hey everyone,
i have a catalog client script where i autopopulate the fields, based on some conditions. i will do for example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 06:29 AM
Hi jennv,
The dotwalk "company.supplier.product" is that from the ".requestor" related field ?
If so, then in most cases you can just use g_form.setValue('FIELDNAME', myTableGLideRecord.requestor.company.supplier.product); But to dotwalk the fields need to be reference fields. The last value you want to get can be any types of fields.
In some cases its beter to first use something like var xx = g_form.getValue('Full dotwalkstring); and then use the variable to set a value.
Let me know if this helps, if not please provide more info about the script in total.
Kind Regards,
Collin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 06:45 AM
Hi Cloin, thank you for your fast answer... Thats what i did but doesnt work.
let me give you more info :

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 07:41 PM
g_form.setValue('u_categoria_3_livello', prlGR.supplier_product.product_category); //these dont work
This multi-level dot walking won't work in client script. If your really want to extract this value then I recommend you to return this value from script include itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 07:57 AM
ok i think i understood better what you are saying , and no, im not trying to do that. the field i want to dot walk, is not in the form, but in a table, in the same table that this record producer submits the form. for context: i have a variable : do you want to duplicate an existing record?
if yes, another variable is shown : choose the record you want to duplicate.
here i do a gliderecord, query on the record that end user chose, and i get each field in the table (existing record that user chose) and fill the variables in the form with those values. I hope I was clear. (Im replying for the second time, sorry my replies are taking too long to get approved)