Field values is not getting updated in the list

suvetha3
Kilo Expert

We have a field called 'Tower' (defined in the Group table) in the Incident form. It populates automatically based upon the assignment group selected. When we open a record, we can see the values in the Tower field but the same is not updated in the list view. We have to run a background script to update the same. We want the field values to get updated in the form as well as in the list. Please assist  on this. 

 

8 REPLIES 8

HarshTimes
Tera Guru

Hi Suvetha

It looks like there is some client script/UI policy running which is impacting this.Find the scripts which are running for this field. Goto client script and put the filter script contains tower.This will give you all the related client script list. Review them and you will find out the issue

Same do for the business rule , find out and review them.In business rule it may be after business rule or before business rule script that is impacting this.

 

 

-Harsh

 

 

Hi Harsh,

I have checked in Client Scripts, Business rules and ACL. Just found the below client script which contains tower. Couldn't find any BR or ACL

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (newValue === '') {
return;
}

var gr = g_form.getReference('assignment_group', callback);

function callback(gr)
{
if(gr.u_vendor == "1562a5dcdb1a7600714afb541f96194d")
{

g_form.setDisplay('u_tower',true);
g_form.setValue('u_tower',gr.u_tower);
}
else
{

g_form.setDisplay('u_tower',false);
}
}
}

Hello Harsh,

 

If i am not wrong this is happening in the client side of the form by getting a reference, where getReference is not really recommended.

could you please inactivate this script as it is probably happening in the form only.

 

Solution could be:

Call a script include from client script and set the tower value.

 

Note: I am just guessing this could be the issue please try this workaround and let me know if this helped..!!

 

Regards,

Chalan

Hi Suvetha

Deactivate this client script and then check the behavior.After deactivating go to a record and set value for the u_tower. save the form and then in the list view check its value. Check if both place it is same.

If it is not same then you have found the root cause of your issue which is this client script. If this client script is the cause then this need to be rectify that. Please confirm the above point, I will send you the rectified code accordingly.

 

 

-Harsh