Hi ,
I have datepicker control in my gallery , if i change date then my save button icon should enable in edit mode.
i initially did set displaymode.view for save button icon then on datepicker on change if trying to change save button displany mode back to edit. if(ThisItem.ID,DisplayMode.Edit,View) -- not changing save button display mode.
please advise.
Solved! Go to Solution.
Hi @Anonymous
You have the right approach. However, in your if statement you are just asking if ThisItem.ID is true or false. In other words, if ThisItem.ID isn't empty, it is true. And since ThisItem.ID is probably always true, it will just keep in the DisplayMode.Edit.
So, if you want to change the DisplayMode of your save icon based on your datepicker, you could do as follows:
If(lclDateChanged,DisplayMode.Edit,DisplayMode.View)
UpdateContext({lclDateChanged:false});
I hope this helps.
Please click Accept as Solution if my post answered your question. Like my answer? Consider giving it a Thumbs Up. Others seeking the same answers will be happy you did.
Hi @Anonymous
You have the right approach. However, in your if statement you are just asking if ThisItem.ID is true or false. In other words, if ThisItem.ID isn't empty, it is true. And since ThisItem.ID is probably always true, it will just keep in the DisplayMode.Edit.
So, if you want to change the DisplayMode of your save icon based on your datepicker, you could do as follows:
If(lclDateChanged,DisplayMode.Edit,DisplayMode.View)
UpdateContext({lclDateChanged:false});
I hope this helps.
Please click Accept as Solution if my post answered your question. Like my answer? Consider giving it a Thumbs Up. Others seeking the same answers will be happy you did.
Thanks , Its perfectly working fine now 😊
User | Count |
---|---|
198 | |
122 | |
85 | |
50 | |
42 |
User | Count |
---|---|
284 | |
158 | |
134 | |
73 | |
72 |