Hi All,
I have a collection wich load with SharePoint data source. In the collection I have a field called Status (mapped with SharePoint choose column type), now I want to check is this value is equal to "Open".
FYI- this collection have only one item at any given time.
I need something like if( Collection.Status = Open, UpdateContext({btndisplay:false}), UpdateContext({btndisplay:true}))
Thanks.
Solved! Go to Solution.
If the collection will only ever have one record then you can check this way.
if( First(Collection).Status.Value = "Open", UpdateContext({btndisplay:false}), UpdateContext({btndisplay:true}))
Using First() will get the first record. Then you can check the Status field of that record. Since its a choice field you will need to use the specific name of the property of the field that holds the value Open. This is usually Value, but can be other things.
If the collection will only ever have one record then you can check this way.
if( First(Collection).Status.Value = "Open", UpdateContext({btndisplay:false}), UpdateContext({btndisplay:true}))
Using First() will get the first record. Then you can check the Status field of that record. Since its a choice field you will need to use the specific name of the property of the field that holds the value Open. This is usually Value, but can be other things.
Thank you very much, really appreciate the assistance.
Thanks.
User | Count |
---|---|
133 | |
132 | |
95 | |
75 | |
74 |
User | Count |
---|---|
206 | |
195 | |
70 | |
60 | |
52 |