Hi,

I have form input from and to date. need to add +3 in ToDate input automatically but still can edit

I already made this in prep and add destination FromDate action ajax to refresh ToDate input, but didn't work. 

Thanks

Hi,


Do you already try to change the input null value for what you want?


Hope this can help.


Best regards,

Ricardo M Pereira

Hi Ayu, 

This should work already if you use AJAX refresh in the onSelect action of DatePicker. May I see your screen action for this?

If you want to have it loaded on Prep, you can simply just use the initial date property of the datepicker, use CurrDate for DateFrom picker, and AddDays(DateFrom,3) for DateTo picker.

Thanks

Vance Cunanan wrote:

Hi Ayu, 

This should work already if you use AJAX refresh in the onSelect action of DatePicker. May I see your screen action for this?

If you want to have it loaded on Prep, you can simply just use the initial date property of the datepicker, use CurrDate for DateFrom picker, and AddDays(DateFrom,3) for DateTo picker.

Thanks

input FromDate properties:

the OnChange action i put only ajax to refresh ToDate input widget.

Ayu Andini wrote:

Vance Cunanan wrote:

Hi Ayu, 

This should work already if you use AJAX refresh in the onSelect action of DatePicker. May I see your screen action for this?

If you want to have it loaded on Prep, you can simply just use the initial date property of the datepicker, use CurrDate for DateFrom picker, and AddDays(DateFrom,3) for DateTo picker.

Thanks

input FromDate properties:

the OnChange action i put only ajax to refresh ToDate input widget.

Are you not using any DatePickers? Because you should use the OnSelect action for the DatePicker and not use OnChange for the input.

Something like this:


Here's an OML for you to play around with.

And a sample webpage:

https://cyrusvance.outsystemscloud.com/Plus3Days/Home.aspx

Vance Cunanan wrote:

Here's an OML for you to play around with.

And a sample webpage:

https://cyrusvance.outsystemscloud.com/Plus3Days/Home.aspx

I'm using Outsystems v10, there is no date picker, only calender


Solution

Hi Ayu,


it's bit strange that you are not getting the expected result because the exact implementation I also followed in my sample app and it's working as needed. Is it possible for you to share the actual .oml or the sample .oml solution file in which it is not working.


PFA - includes solution .oml file -> Implemented using the OS v10 - Input Calendar control

Check this out: https://sbsam.outsystemscloud.com/Sample_App/Add3DaysTask.aspx



Regards,

Benjith Sam

Solution

Hi Ayu,

i think you are almost doing wright and if above solution is not work.

please provide you oml. so we can find solution


Regards

Rahul Sahu