Expression field doesn't update immediately - New UI - Forum - Rollbase - Progress Community

Expression field doesn't update immediately - New UI

 Forum

Expression field doesn't update immediately - New UI

This question is not answered

Hello,

I have an expression field that basically gets the count of number of related records attached to it.

When I attach a record, the expression field value remains the same unless and until I go into the record and edit and save it myself. Is this how an expression field is supposed to work?

I have tried the above for a formula field as well and formula field always gets updated when another record is attached. Kindly let me know if this is how these two fields are supposed to behave.

Cheers.

Code given below:

var currentRecord = "{!id}";
var relatedAccounts = rbv_api.getRelatedIds2("R12216", "industry", currentRecord);

rbv_api.println(relatedAccounts.length);

if(relatedAccounts.length > 0)
{
return relatedAccounts.length;
}
All Replies