Hi Angelo,
Not sure if there's an easier/better way to do this, but the way I do it is:
<property key="AttributeExample" type="attribute" >
<caption>Attribute Example (String)</caption>
<description>Description.</description>
<attributeTypes>
<attributeType name="String"/>
</attributeTypes>
</property>
if (exampleAction&& exampleAction.canExecute && !exampleAction.isExecuting) {
if (AttributeExample && AttributeExample.status === "available")
AttributeExample.setValue(value);
exampleAction.execute();
}
});
Hope this helps,
João
Hi Angelo Cordaro , you need to add a attribute in your xml
<property key="selectedValueAttribute" type="attribute" required="true">
<caption>Selected Value Attribute</caption>
<description></description>
<attributeTypes>
<attributeType name="String" />
</attributeTypes>
</property>
after that you need to set the selected object id in selectedValueAttribute .
if (props.onChange && props.onChange.canExecute) {
props.selectedValueAttribute.setValue(value.id as string);
props.onChange.execute();
}
With the help of this id you can retrive selected object in microflows.