Default value ComboCox

Default value ComboCox

  

Hi,

Im searching for a solution for this problem and I didnt find one. I know that we can get the value from the current month but it It possible to set the default value from a ComboBox with the value/name of the Current month? 

Solution

Hi Henrique,

This depends on how are you setting up your Combo Box.
How are you doing it?

I have here an example, using only "Special Variable/Values". The special variable receives the current month name in the preparation.

You can create a function to set the current value based on the month.

https://eduardojauch.outsystemscloud.com/ComboBoxMonths/Home.aspx?_ts=636431564649995020

If you use an aggregate/list is easier, as you just set the default value of the variable to the correct Id (again, maybe you need a function to do so)

Cheers,
Eduardo Jauch

Solution

Hi Eduardo,

Thats is exactly what i'm searching. I'm setting up the ComboBox with a Aggregate. Could you show me how you seted up the special variables in preparation and the combobox?

Hi Henrique, 

It's in the OML ;)

Basically, set your combo box like this:

Than it is just a matter of set the value of the "Month" variable (name is just an example), to one of the month number (using Month(CurrDate())):

 

This way you don't need an entity for months.

Cheers,
Eduardo Jauch