DatePicker - Reset Selected Dates within Widget using Client Action
Application Type
Reactive
Service Studio Version
11.14.16 (Build 60354)

Hi。

How to reset the DatePicker with Client Action.

I set the Local Variable to NullDate in the Clear  Client Action.

Local Variable can be reset. but the DatePicker can not be reset to empty.

Thank you for your help


https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Patterns/Using_Mobile_and_Reactive_Patterns/Interaction/Date_Picker


Solution

There is a Clear Function inside。

Thank you.

Thanks @RAHUL CHAVAN
This works for my task.

Hello YULONG,

You can try this with JavaScript,  you just need to pass the Widget ID using input parameter in you JavaScript widget in your client action .

document.getElementById($parameters.ElementId).value = ''


I hope this will work for you! Check Oml attached.


Thanks,

Tousif Khan

Sample_DatePicker.oml

Solution

There is a Clear Function inside。

Thank you.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.