Hi, I have this condition, it is returning error as type of argument not valid:
If(DataCardValue44.SelectedItems.DisplayName=User().FullName, DisplayMode.Edit, DisplayMode.View)
What I want is that quen some one click de Edit Button it becomes editable only if de User name is the same deployed in the DataCardValue44 andi if not then don´t allow to edit.
Thanks for your help!
Solved! Go to Solution.
Ah language...looks like you need to utilize semicolons rather than comas in your formulas.
Try this:
If(DataCardValue44.Selected.Value=User().FullName; DisplayMode.Edit; DisplayMode.View)
Also, since you have only Choices for the DataCardValue44 items, then your only column available for compare would be the Value column.
See if the above gets you further.
Consider changing your formula to the following:
If(DataCardValue44.Selected.DisplayName=User().FullName, DisplayMode.Edit, DisplayMode.View)
I hope this is helpful for you.
It´s now sending an error: invalid number of arguments and unexpected characters 😞
Can you please supply some screenshots and also some of your formulas?
Of particular interest are the DisplayMode property you are trying to change and the Items property of DataCardValue44.
Ah language...looks like you need to utilize semicolons rather than comas in your formulas.
Try this:
If(DataCardValue44.Selected.Value=User().FullName; DisplayMode.Edit; DisplayMode.View)
Also, since you have only Choices for the DataCardValue44 items, then your only column available for compare would be the Value column.
See if the above gets you further.
User | Count |
---|---|
176 | |
111 | |
86 | |
44 | |
42 |
User | Count |
---|---|
228 | |
116 | |
115 | |
72 | |
67 |