Hello, everyone,
I need your help to solve a problem that I'm facing. I'm creating an app like keep from google to organize some tasks. In that app, I have two tables: the first one is responsible for storing the tasks, and the second one has just some items for a drop down list that classifies the tasks (ongoing, late, finished, and not started).
The problem is: when I want to create a new task, I'm not being able to classify that task. As soon as I choose an option from the drop down list, it creates a new entry in my table. I'll attach some images to exemplify my issue.
The image with the red circle is what happens when I choose an option from the drop down list. It creates a new entry instead of classifying my new task.
This is the code I created for my drop down list (OnChange):
If(
LookUp(
Tarefas;
ThisItem.ID = Tarefas[@ID];
"OK"
) = "OK";
Patch(
Tarefas;
LookUp(
Tarefas;
ThisItem.ID = Tarefas[@ID]
);
{StatusCol: ListaStatus.SelectedText.Value}
);
Patch(
Tarefas;
Defaults(
Tarefas
);
{StatusCol: ListaStatus.SelectedText.Value}
)
)
The first Patch is responsible for updating the tasks already created, and the second one would be responsible for new tasks.
ListaStatus is the drop down list and the IDs are generated automatically.

Report
All responses (
Answers (