"Please select" in custom build list - list.buildL

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

"Please select" in custom build list - list.buildL

#1

Postby xren » Fri Jul 19, 2013 2:35 pm

Hi all,

I had this re-posted due to my misleading previous post.

I have two drop down lists and a field. first drop down list is a dynamic list from a db table.
The second drop down list is a dynamic drop down list as well. The content of the list will be get from db based on the choice from first drop down list and the field input.

I set "When list is built" to first dipaly. Then in the script, which be trigger by the field input, second use custom build function in the script: fields.IN3_PLAN_EXER_CLASS_SCH_TIME_L_ID.list.buildList();

It works as expected .. However, the "Please select" - null default choice did not show for the second list. That I would like to set to db when use don't pick any.

How can this be done? Should I put "Please select" as an item in the DB table (that is the source of the second drop down list)?

Thanks,
Xiaoli
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Fri Jul 19, 2013 4:24 pm

Hi Xiaoli,

To show the 'please select' you need to set the header text option property on the field that the dynamic list is associated with.

Select the field with the dynamic list and set property:

Header text option --> System default (system text 21).

Note that the System text is 21, so you can modify the 'please select' text as required. You can modify system texts from the Tools-->System texts editor.

I hope this helps

Steve
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Fri Jul 19, 2013 5:54 pm

It has been fixed.

Thank you Steve!
0 x


Who is online

Users browsing this forum: No registered users and 21 guests