49
Views
10
Comments
Solved
[OutSystems UI] I have 2 issue in date picker
outsystems-ui
Reactive icon
Forge asset by OutSystems

Hi I have issue in date picker. For context, I have 4 date picker widgets for actual start, actual end, target start, and target end. When I am debugging the app, the value of the dates are correct, however when I inspect it in browser, the screen values are null.


The second issue is: 
When debugging the app, it shows the correct dates in the input fields. But if I open it in actual browser, the dates are null and is not showing in the input field. 

Thanks for help

2026-01-28 16-57-48
Mihai Melencu
Champion
Solution

Hi, is not about the refresh of the aggregate. You need to make sure the DatePicker is rendered after the data is fetched. I attached a sample for your use case using the isDataFetched attribute.


DatePickerSample.oml
2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Siaming Ming ,

The DatePicker might be rendering before the necessary data is available. Try to wrap your DatePicker widget inside an If condition that checks whether the data has been fetched. Place the DatePicker in the True branch of the If. 

UserImage.jpg
Siaming Ming

Hi, should I create logic on a data action?

UserImage.jpg
Siaming Ming

Hi, I tried this and assigned true in the OnAfterFetch, however the entire widget is not showing because I guess the data is not being fetched. 

2026-01-28 16-57-48
Mihai Melencu
Champion

Hi, can you please share some screenshots of your implementation or the OML? 

UserImage.jpg
Siaming Ming

Hi, when using the default date input from outsystems, then the data is shown. However, the date picker does not show the data. 
Also, I removed the If in the container since the entire widgets are not getting shown even after reloading. 


UserImage.jpg
Siaming Ming

Hi, if I want to refresh the data from an aggregate, where should I do it? Whenever I try to refresh aggregate in the OnInitialize, it cause a warning. I think the widget is rendering without the proper values


2026-01-28 16-57-48
Mihai Melencu
Champion
Solution

Hi, is not about the refresh of the aggregate. You need to make sure the DatePicker is rendered after the data is fetched. I attached a sample for your use case using the isDataFetched attribute.


DatePickerSample.oml
UserImage.jpg
Siaming Ming

Thank you, I didn't know that aggregates has that built in. I created my own flow earlier in applying the IF and it didn't work. 
Thank you for always helping. Have a great day.

2022-12-22 10-00-39
Beatriz Sabino

Hi Siaming,

Have you set the InitialDate for your Date Picker?

This will ensure that a value is selected when you first open the browser.


UserImage.jpg
Siaming Ming

Hi, I already did this and is still the same outcome

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