Hi, I have a html element with a source. Now I want to use the value from the source to pass it to a variable via ‘variablesToBeUpdated’. I tried different things but I dont get the value passed there. Showing the value in the html element works fine. Has someone an idea?
"config": {
"values": [
{
"origin": "data",
"column": "attribute_value",
"row": 0,
"name": "info"
}
],
"html": "<p>{{info}}<button style='width:40px;' type='button' class='o-btn o-btn--action' label='Edit' style='width: 100%;'><i class='o-icon o-icon--edit o-icon--black cust-edit-icon'></i></button></p>"
},
"type": "html",
"source": "map_assetAttributes_original_ds",
"sourceOptions": {
"sql" : "",
"$sql": {
"type": "string",
"value": "(SELECT i.attribute_datatype, i.asset_id, i.attribute_value, i.attribute_key FROM inputTable i WHERE '{{selectedNodeId_variable.0}}' = i.asset_id AND i.attribute_key = 'position' ) UNION (SELECT i.attribute_datatype, i.asset_id, i.attribute_value, i.attribute_key FROM inputTable i WHERE '{{selectedNodeId_variable.0}}' = i.asset_id AND i.attribute_key = 'purpose' )"
}
},
"variablesToBeUpdated": [
/* {
"name": "edit_pop_up_entered_var",
"$value": {
"type": "string",
"value": "{{info}}"
}
},*/
{
"name": "edit_pop_up_entered_var",
"valueFromColumn": "attribute_value"
},
/* {
"name": "edit_pop_up_entered_var",
"valueFromColumn": "info"
},
{
"name": "edit_pop_up_entered_var",
"valueFromVariable": "info"
},*/