-
Goal:
-
Steps:
-
Details:
This query is not working anymore and it's making me knock my head on the wall please help .
the workflow is very simple :
I have a listView with a form in each repatable wich submits a userInput text on Submit. The text actually updates a special 'User input variable' array from which a transformer then replaces the value of the corresponding cell (by id reference ) in the main data Table .
here is what the query looks like:
let editValue =
valueTransformer.value[0][listViewLegacy1.data[i].retoolInternal_rowKey];
switch (editValue) {
case "undefined":
valueTransformer.setIn(
[0, listViewLegacy1.data[i].retoolInternal_rowKey],
[
{
id: transformer1.value[editableNumber1[i].value].ID,
content: contentCustom,
}
]
);
break;
case "string":
valueTransformer.setIn(
[0, listViewLegacy1.data[i].retoolInternal_rowKey],
[
{ id: "", content: editValue },
{
id: transformer1.value[editableNumber1[i].value].ID,
content: contentCustom,
},
]
);
break;
case "object":
valueTransformer.setIn(
[
0,
listViewLegacy1.data[i].retoolInternal_rowKey,
valueTransformer.value[0][listViewLegacy1.data[i].retoolInternal_rowKey]
.length,
],
{
id: transformer1.value[editableNumber1[i].value].ID,
content: contentCustom,
}
);
break;
}
console.log(contentCustom, editValue);
So basically if the value Transformer already has an array, the value will be added to the set; if it's a string , the string will be included in the array with this format : {id : "", content : string}. If its undefined meaning the index in customValue doesnt exist yet , the array will be created from scratch and added to the new index.
I tried many time modifying the additionalScope and even without, the value is logged correctly but the valueTransformer is not being updated ?
Yesterday it was working today not ??
I don't understand what could I miss.
-
Screenshots: