Hi guys,
I have an app that gets data from a form and creates a Gallery and submits the data to a sharepoint list. I'd like to be possible to edit two of the gallery's columns to the sharepoint database via a dropdown list.
I've been trying to use the following code but with no results:
"OnChange":
UpdateIf(
'Gestão Ingest Linhas';
Prioridade = ThisItem.Prioridade;
{
Prioridade: 2})
'Gestão Ingest Linhas' is the name of my database
"Prioridade is the name of the column I'd like do edit.
I also tried using "Prioridade.Value" but with no success.
Best Regards,
Gabriel
Solved! Go to Solution.
Hi@gabrielpinheiro,
Based on the issue that you mentioned, do you want to update the 'Prioridade' column in your SP list?
Could you please share a bit more about your scenario?
Further, an error message screenshot will be better.
I have a test on my side, there is a Dropdown to update the Prioridade' field.
The formula you provided will update the whole 'Prioridade' column rather than a field value. If you just want to update one field, you could try the Patch() function.
Set the OnSelect property of the ">" within the Gallery as below:
Patch(
'0825',
ThisItem,
{Prioridade: Dropdown1.Selected.Value}
)
Patch(
'0825',
ThisItem,
{Prioridade1: {Value:Dropdown1.Selected.Value}}
)
UpdateIf(
'0825',
Prioridade = ThisItem.Prioridade,
{Prioridade1: {Value: Dropdown1.Selected.Value}}
)
Or
UpdateIf(
'0825',
Prioridade = ThisItem.Prioridade,
{Prioridade1: {Value: 2}}
)
Best Regards,
Qi
Hi@gabrielpinheiro,
Based on the issue that you mentioned, do you want to update the 'Prioridade' column in your SP list?
Could you please share a bit more about your scenario?
Further, an error message screenshot will be better.
I have a test on my side, there is a Dropdown to update the Prioridade' field.
The formula you provided will update the whole 'Prioridade' column rather than a field value. If you just want to update one field, you could try the Patch() function.
Set the OnSelect property of the ">" within the Gallery as below:
Patch(
'0825',
ThisItem,
{Prioridade: Dropdown1.Selected.Value}
)
Patch(
'0825',
ThisItem,
{Prioridade1: {Value:Dropdown1.Selected.Value}}
)
UpdateIf(
'0825',
Prioridade = ThisItem.Prioridade,
{Prioridade1: {Value: Dropdown1.Selected.Value}}
)
Or
UpdateIf(
'0825',
Prioridade = ThisItem.Prioridade,
{Prioridade1: {Value: 2}}
)
Best Regards,
Qi
User | Count |
---|---|
185 | |
122 | |
91 | |
47 | |
42 |
User | Count |
---|---|
270 | |
158 | |
130 | |
84 | |
78 |