Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2018-08-02 03:19 AM
The below function is reading values of values list field but i am not to get if the values list field is calculated. Please help me to get the value of calculated values list field through custom object
"ArcherTech.UI.GenericContent.GetInstance().getFieldValue(fld_Id, false);"
We are using Archer 6.3 P3 version.
2018-08-03 06:17 AM
Try this one:
var RPFieldRoot = ArcherTech.UI.ClientContentManager.GetInstance().getFieldById(fldId);
var RPFieldRootId = RPFieldRoot.clientId;
return $('div[id*="'+ RPFieldRootId +'"]').text().trim();
2018-08-02 07:35 AM
Saravanan try,
$('span[id*="f' + fld_Id + '"]').text().trim();
Advisory Consultant
2018-08-03 03:52 AM
Its also returning an empty value.
2018-08-03 06:17 AM
Try this one:
var RPFieldRoot = ArcherTech.UI.ClientContentManager.GetInstance().getFieldById(fldId);
var RPFieldRootId = RPFieldRoot.clientId;
return $('div[id*="'+ RPFieldRootId +'"]').text().trim();
2018-08-03 08:01 AM
Saravanan, is the field on the layout? If not, you need to place it on the layout in order for the custom object to access it.
Advisory Consultant
2018-08-03 08:02 AM
Ilya, for calculated fields it's span and not div
At least in 6.4 P2 it is.
Advisory Consultant
2018-08-03 08:04 AM
Well, I just created VL field and tried it out. But I agree, mine case could be for the normal VL, not calculated one. But I thought there would be no difference between VL in view mode and calculated VL, as both of them are in read only. But nevertheless.
Saravanan, take into account that code I shared is working for VL in view mode.
2018-08-03 08:08 AM
Yes, the field is on layout and on some scenarios it may be hidden by DDEs.
2018-08-03 08:12 AM
Its working correctly. Great! Thank you:)
2018-08-03 08:15 AM
Welcome