Expand my Community achievements bar.

SOLVED

Add columns to drop-down list

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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