Hi All,
I have Date Picker widget on my screen. It could be enabled only after data fetched using Aggregates.
I have On After Fetch action for that aggregate and put some boolean variable enable/disable Date Picker but doesn't work. Also I have tried to use IsEmpty parameter of aggregate in DatePicker input's Enabled property that also doesn't work.
Any other ways to enable/disable date picker ?
Thanks
Bala.
Hi yung,
I have resolved the issue using IF widget as per the suggestions.
I have found that reason behind, based on boolean variable enable disable works fine but by validating the condition then enable/disable works on first time that means when screen loads.
1. Use IF widget, on true block use enable input box and false block use always disabled input box.
2. Use a boolean variable with default as false. Create an action on OnChange event of Datepicker and make boolean variable as true. Assign that boolean on enabled property of input box.
Hope this helps.
Thanks.
Hi Balamurugan,
Thanks for your prompt response!The IF widget indeed "temporarily" solves the issue on the Date Picker.
But the enabled flag should be dynamically changed depending on the input. Hope that the OS team can have a look at this.
Regards,
Kenny
Hello Bala,
If you can share a sample OML for this scenario this will help to identify what is wrong.
Hi Mostafa,
Thanks for quick reply. But can't able share OML fie because issue on Client portal.
I can't able reproduce this issue on personal environment. I get screenshot for you.
Actually, Start Date is dynamically enabled field but it took second span input as disabled
Thanks,
I am also not able to reproduce this issue with same scenario from my side. But I my suggest workaround to add If widget to your UI in case you condition is true show you date picker with enable property always true if your condition is false show empty label with some styling using CSS to be displayed as disabled input.
Hi @Balamurugan Pandiyan,
I would suggest you to enclose the Date Picker widget inside a If. It will only display the Date Picker after you validate the condition that makes the Date Picker enable or disable.
To accomplish this, i would suggest you to create a boolean variable with the default value set to false and in the end of the action flow, where you check whether the Date Picker is enable or not, you assign the variable to true.
Hope this help.
Hi,
I'm having issues too with the Date Picker where I could not dynamically enable/disable the input based on the date picked. As Balamurugan mentioned,
it is affected by the "disabled" CSS. even though I've set the Enabled to be True when DateTimeVar <> NullDate() [From another datepicker], this flag is not being set correctly (not sure if it is a bug from OutSystems UI //Version 2.14.0).
Attached is the OML. Appreciate any feedback and thank you in advance!
Apologized if I posted on a "Solved" thread because I'm unsure if I should create a new post instead under the same topic.
Hi Yung,
Thanks for the feedback. Please mark my answer as solution.
Yes. Let's hope for the best from OS team on next version.
As this is your own post and there is a solved solution, I cannot flag your answer as a solution unless the solved solution has been unflagged.