108
Views
8
Comments
Solved
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

2018-05-16 11-16-36
João Heleno
 
MVP
Solution

@Tobit

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

Please see attached image.



2017-06-27 15-30-33
tBt

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


2018-05-16 11-16-36
João Heleno
 
MVP

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

2017-06-27 15-30-33
tBt

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

2025-01-09 14-56-57
IQ78

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


2017-06-27 15-30-33
tBt

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 :


2025-01-09 14-56-57
IQ78

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

DeviceMobTest.oml
2017-06-27 15-30-33
tBt

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

2018-05-16 11-16-36
João Heleno
 
MVP
Solution

@Tobit

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

Please see attached image.



2017-06-27 15-30-33
tBt

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


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