Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
JD
6
Views
6
Comments
Drop Down Issue
Question
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
Mac mac
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
Nuno Rolo
MVP
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,
1 reply
27 Sep 2013
Show thread
Hide thread
JD
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.
Mac mac
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
Nuno Rolo
MVP
Thanks for ilustrating Mark, that was exactily what i was trying to explain!
JD
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.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...