Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Add columns to drop-down list

eugzl
Level 5
Level 5

Hi All.

Ordinary drop-down list has 2 columns (Value and Text). My question is. Is possible create Drop-down list with more than 2 columns list? For instance, Value and some Text columns. If yes. How to create it?

Thanks.

1 Accepted Solution
_Bruce_Robertson
Correct answer by
Level 10
Level 10

Hi,

I think the closest you are going to get is using the tab character in a drop down display value.  The tab stops are set at 8 characters and I haven't found a way of changing that.  Depending on the values you also might need to use a fixed width font.

But if you data is simple enough then it might work.  Here is a sample  https://sites.google.com/site/livecycledesignercookbooks/home/TwoColumnDropDown.pdf?attredirects=0&d...

The code in the initialization event is;

this.setItems("AL\tAlbania,008,DZ\tAlgeria,012,AS\tAmerican Samoa,016,AD\tAndorra,020", 2)

Regards

Bruce

View solution in original post

1 Reply
_Bruce_Robertson
Correct answer by
Level 10
Level 10

Hi,

I think the closest you are going to get is using the tab character in a drop down display value.  The tab stops are set at 8 characters and I haven't found a way of changing that.  Depending on the values you also might need to use a fixed width font.

But if you data is simple enough then it might work.  Here is a sample  https://sites.google.com/site/livecycledesignercookbooks/home/TwoColumnDropDown.pdf?attredirects=0&d...

The code in the initialization event is;

this.setItems("AL\tAlbania,008,DZ\tAlgeria,012,AS\tAmerican Samoa,016,AD\tAndorra,020", 2)

Regards

Bruce

View solution in original post