DMS
06/18/2020, 8:40 PMfunction fieldChanged(context) {
var record = context.currentRecord;
if(context.fieldId == 'custom_field'){
var value = record.getCurrentSublistValue({
sublistId: 'timeitem',
fieldId: 'custom_field'
});
var line = record.getCurrentSublistIndex({sublistId: 'timeitem'});
record.selectLine({
sublistId: 'timeitem',
line: line
});
record.setCurrentSublistValue({
sublistId: 'timeitem',
fieldId: 'casetaskevent',
value: value,
ignoreFieldChange: true
});
record.commitLine({sublistId: 'timeitem'});
}
}
battk
06/18/2020, 9:04 PMSean Murphy
06/18/2020, 11:17 PMSean Murphy
06/18/2020, 11:18 PMvar targetfld = 'custom_field';
var targetlist = 'timeitem';
function fieldChanged(context) {
if(context.fieldId == targetfld && context.sublistId == targetlist)
var record = context.currentRecord;
var val = record.getCurrentSublistValue({
sublistId: targetlist,
fieldId: targetfld});
objRecord.setCurrentSublistValue({
sublistId: targetlist, targetfld: 'casetaskevent', value: val, ignoreFieldChange: true
});
}
}