Set a default value to DVelop Combo

Publicado aproximadamente 16 horas atrás por Support WorkWithPlus

Postar um tópico
Não respondido
Support WorkWithPlus
Support WorkWithPlus Administrador

The Dvelop Combo can be loaded with a default value.


For example, if we have Countries like “Canada”, “México” and “Tailandia” in a DvelopCombo, and if we select “Mexico” as a country, we want to load the city “Ciudad de México” by default. For this, we can follow the next steps:


First, we can define two transactions as follow:

DefaultValuToDvelopCombo01.png


 

Next, we define the attributes CountryId and CityId like DvelopCombo:


DefaultValuToDvelopCombo02.png


 

Finally, if we already know the CityId of a specific country, in our example "México", we can set a default value to the City field "Ciudad de México".


DefaultValuToDvelopCombo05.png


 

In this case, we need to configure the event Combo_CountryId.OnOptionClicked, setting the values for CityId:


        &ComboCityId = 1         Combo_CityId.SelectedValue_set = '1'         Combo_CityId.SelectedText_set = 'Ciudad de México'


 

DefaultValuToDvelopCombo06.png

 


The result is this:


DefaultValuToDvelopCombo07.png

1 Votos


0 Comentários

Entrar ou Registrar para postar um comentário