Default value of date and Dropdown Search on Reactive
Question
Application Type
Reactive

I want to set a default value of a Date input (Today date) and Dropdown Search (Item ID). I saw some solutions that suggest setting the values in the preparation but this option is not available in the Reactive Web.

Thanks.

Solution

Hi @Kawthar Ebrahim , you have the OnAfterFetch action that runs after fetching your data from a specific data source. You also have the OnInitialize event where you can set up your local variables.

Refer to https://success.outsystems.com/Documentation/11/Developing_an_Application/Implement_Application_Logic/Screen_and_Block_Lifecycle_Events

Let me know if this helps,
Paulo

Solution

Hi @Kawthar Ebrahim , you have the OnAfterFetch action that runs after fetching your data from a specific data source. You also have the OnInitialize event where you can set up your local variables.

Refer to https://success.outsystems.com/Documentation/11/Developing_an_Application/Implement_Application_Logic/Screen_and_Block_Lifecycle_Events

Let me know if this helps,
Paulo

Hey,

To set default value for date, create local variable with data type as date and assign default value as current date.
To set default value for search dropdown, create local list as selected item(datatype : dropdownitem list) , and assign value to variable on page initialize or if value is related to db then onafterfetch of aggregate  set value and add this dropdownitem list to selected item property of search dropdown.

Hope you can understand.

Thanks

Yogesh

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