Drop Down Issue

  
How to Have one drop down with 1 to N number?
Dyanamically
N = 5 then  Drop down should contain

Id   Value
=========
1      1
.      .
.      .
.      .
5      5
Hi JD,

I don't know if there's line count property on a dropdown, I think it is based from the screen resolution.
Adding size property on the extended property will only make it a listbox, you could have a dynamic rows in a listbox if you really need it.  :-P



Hope it helps,
Mark Chua
Hi JD,

Create a Structure, S_OutputCombo with two attributes (Identifier,Description);
In your screen you need to have a Record List of that type and a Record
In the preparation you can make "for" with an if and an auxiliar counter until N, for append the record to the record list.

That Record List will be the source list of the combobox.

Hope that helps and that i made myself clear in the explanation, 
Nuno Rolo wrote:
Hi JD,

Create a Structure, S_OutputCombo with two attributes (Identifier,Description);
In your screen you need to have a Record List of that type and a Record
In the preparation you can make "for" with an if and an auxiliar counter until N, for append the record to the record list.

That Record List will be the source list of the combobox.

Hope that helps and that i made myself clear in the explanation, 
 Actually i tried that out but it is not binding the Structure with Drop Down. I got the value for N then i started the loop as well, Insertedc the value indside the ListRecord (with Type Structure), and it creates the list but i am not getting the value on the dropdown.
 
Hi All,

I got a bit confused I thought you just need to set the height of the items shown in the combobox,
I believe this is what Sir Nuno was telling, I just used the if for looping.



I can't seem to upload my OML as attachment.

Hope it helps
Mark Chua
Thanks for ilustrating Mark, that was exactily what i was trying to explain!
Thanks for the reply Mark, let me explain you again.
I have one Number (value can be 1 2 or it may anything let say the Value is 8.)
Then i want one Drop Down with the value 1 to 8 inside it.