I'm new to Honeycode and I'm facing the following issue :
I would like to use "update or insert rows" when clicking a button, with a condition. This condition is like : the row modified in a table depends on the choice of the user in a picklist. To illustrate, if the user chose the "SHD-MOC4-01" ID in the picklist, the app will have to find this ID in a table and update a column with the corresponding row if the app succeed to find it.
It ran like a charm (but with a warning) until now.
The condition formula is :
Match row from data source to rows in xxx...
If this data is : =$[Picklist][ID]
Is in xxx column : [ID]
Which xxx is my table where I would like to find the row to update the correct cell.
Variablesemphasized text :
"ID" is in the "COMETE" table
"Code affaire lié" is in the "COMETE" table
"Code affaire" is in the "Historique" table which is here :
To put it in a nutshell :
I would like the user to pick an ID in the picklist circeled in red. The ID in the picklist are taken from the "COMETE" table. When the user click on the "valider" button, I would like the software to take the "Code affaire" (which is in an other picklist on the same screen of the form) and write it to "Code affaire lié" (which is in the "COMETE" table). But the software has to chose the right row to write the "Code affaire lié". The right row is the row with the right "ID".
I hope you catch it !
Sorry for the multiple posts but as I'm a new user, I'm not allowed to post several image in the same post.
Thank you again for helping
Thank you for your reply ! I was using the formula you gave me but it stops working for no reason. No it's working again
Btw, I do not really understand the formula $[Picklist_Comete1][ID] which I suppose, is equivalent to a FINDROW with structured references. I do not understand why I have to put [ID] after $[Picklist_Comete1].
The reason for using $[Picklist_Comete1][ID] is to ensure that the data types match for comparison since in this table there is no rowlink to the row itself. You could add another column and set the formula to thisrow() and use that column to avoid using [ID] in the Match step:
If this data:
=$[Picklist_Comete1]
Is in
=[NewColumnWithThisRow]