Patch(
varPredictResultsCol,
LookUp(varPredictResultsCol, invisible_key_text.Text = ThisItem.key),
{
prediction: [{
result: TexInputCanvas1.Text,
}]
}
)
Set(
varPredictResultsCol,
Table(
ParseJSON(
Text(
LookUp(
DocExtract_Answers,
documentID = varDocID // this works
).result_prediction_JSON
)
)
)
)
ForAll(
varPredictResultsCol,
{
key: Text(Value.key),
prediction: ForAll(
Table(Value.prediction),
{
result: Text(Value.result),
confidence: Value(Value.confidence)
}
)
}
)
Patch(
varPredictResultsCol,
LookUp(
varPredictResultsCol,
Text(Value.key) = ThisItem.key
),
{
prediction: Table(
{
result: TextInputCanvas1.Text
}
)
}
)