I am confused that, why can't we use dot-walking instead of Ajax call to auto populate fields?

rkreddy
Giga Expert

Hi Everyone,

I have a doubt that, when I want to populate Manager, Department, Title or some other fields depending on some reference field( which is referring to user table), why can't we use Dot-walking instead of GlideAjax. For example I have a Requested for field on form referring to user table, and I have Manager, Title fields which needs to be auto populated depending on Requested for field. Here Can I user dot-walking instead of GlideAjax?

Thanks.

16 REPLIES 16

We can add dot-walked field in the reports as the same way we have added on form. 

This is main advantage of Dot-walking of fields to see related data from fields.

-Abhishek Gardade

Thank you,
Abhishek Gardade

We can see it in report as well if user has access to those dot-walked fields./

-Abhishek Gardade

Thank you,
Abhishek Gardade

Ok,

Thanks for the update.

I heard that it does not get captured but I was not sure about that.

Will try on this.

Vallabh Baradk1
Kilo Contributor

Hi,

When you select any user from reference field, it will point out to record of that user.hence it will take sys_id related to that user. So to autopopulate the related records ,you have to  use GlideRecord which is server side script. so, you need to call AJAX to autopopulate the dependant field values. you can refer to manager , title field using GlideRecod object. So for dependent field values, you need to do AJAX call.

Please mark it as correct , if you find helpful.

Thanks,

Vallabh

Dxsherpa Technology Pvt Ltd.

Hi Vallabh,

Thanks for the answer. Yes, I have an idea about how script works. My doubt is regarding dot-walking of fields. For example, I have Openedby field on form, and from form layout, I have selected openedby.manager and openedby.title fields on to the form. So whenever I changed openedby value, these fields are automatically populating. It is same as how client script works. Then why can't we use it?