Mobile - how to use ListInsert ?

Mobile - how to use ListInsert ?

  

hi, anyone can give me example about how to use ListInsert Action on mobile ?

or any other solution beside that. my case is, i have a entity with 4 records, let say A,B,C,D.

i call this entity on dropdownlist, but i want the first selected item is some record that is default, example "please choose...".

so the dropdownlist will have items :

1. please choose...

2.A

3.B

4.C

5.D


thank you

Hi Tobit,

use the Special List in your Combo Box properties to set a default value.


Use, for instance,  Value = 0 and Option = "Please choose..." 

https://www.outsystems.com/help/servicestudio/9.0/default.htm#Web_User_Interface/About_Web_Combo_Box_Widget.htm

João Heleno wrote:

Hi Tobit,

use the Special List in your Combo Box properties to set a default value.


Use, for instance,  Value = 0 and Option = "Please choose..." 

https://www.outsystems.com/help/servicestudio/9.0/default.htm#Web_User_Interface/About_Web_Combo_Box_Widget.html

I can't find the property that u mentioned.

btw I use mobile, not web

Tobit Ng wrote:

João Heleno wrote:

Hi Tobit,

use the Special List in your Combo Box properties to set a default value.


Use, for instance,  Value = 0 and Option = "Please choose..." 

https://www.outsystems.com/help/servicestudio/9.0/default.htm#Web_User_Interface/About_Web_Combo_Box_Widget.html

I can't find the property that u mentioned.

btw I use mobile, not web

1. create a server action with return value of type List - get aggregate and do InsertList a special value "Please Choose" with position 0:

2. In the screen .. choose "fecth from other source" that calls the action1 and has return the same with the action1, List data type:

3. Associate the dropdown widgets with the last action:


4. the result in my environment is like this:

may this helps,

regards,

tan


Hi Tan,

I've tried ur approach (based on my understanding :D). I've succeed to insert please choose value, but the problem is why it's not selected when it was first loaded ? and also i can't choose it



I add the value like this :


hi, i attach the .oml file..check yourself.

ok tq tan, it's because i put the value 0 to code. it seems the ddl widget can't choose value 0

Solution

@Tobit

You can choose a default option without having to use ListInsert.

Please see attached image.



Solution

João Heleno wrote:

@Tobit

You can choose a default option without having to use ListInsert.

Please see attached image.



lol, it's working, miss that property. tq Joao