Click or drag to resize

ComputeMethodResultBuildermarkToUpdateValue Method

Mark to update the Property Item to change and pass a new value.

Namespace:  Aras.Modules.CMF.Public
Syntax
JavaScript
function markToUpdateValue(propertyItemId, newValue);

Parameters

propertyItemId
Type: string
see the "id" property of Aras.Modules.CMF.Public.PropertyItem.
newValue
Type: string
Examples
JavaScript
var cmfElements = inArgs.factory.findDescendantElements('CMF Element Type Name');
if(cmfElements.length > 0) {
var cmfProperty = cmfElements[0].getPropertyItem("CMF Property Type Name");
var newStyle = inArgs.factory.createCmfStyle();
newStyle.textColor = "#BEBEBE";
inArgs.resultBuilder.markToUpdateValue(cmfProperty.id, "someValue");
}
See Also