337
Views
4
Comments
Solved
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


2021-07-30 11-19-39
YULONG CUI
Solution

There is a Clear Function inside。

Thank you.

2023-12-14 09-56-57
Yogesh Javir

Thanks @RAHUL CHAVAN
This works for my task.

2023-10-21 19-42-11
Tousif Khan
Champion

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
2021-07-30 11-19-39
YULONG CUI
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.