Dynamic Picklist / Drop Down List in Windows

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Dynamic Picklist / Drop Down List in Windows

Post by atostaine »

How can I specify DropDownCount when using field visualization? The combo box only shows 8 entries, I need to show much more.

https://docs.lansa.com/14/en/lansa016/P ... nCount.htm
Art Tostaine
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Dynamic Picklist / Drop Down List in Windows

Post by Dino »

Hi Art,
dynamic drop down does not have limit of number of entries?
are you referring to how many entries can you see at the time in the screen?
if you need more columns, you usually contact the values.
or create your own component instead of a drop down.
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Dynamic Picklist / Drop Down List in Windows

Post by atostaine »

Trying to change the number displayed when dropped down. Dynamic Picklist doesn't have DropDownCount.

I changed it to a VisualHost for now. I think that property should be available. Note I'm on V14 maybe it's in V15?


Here's my CMBX defintion

Define_Com Class(#PRIM_CMBX) Name(#ComboBox1) Componentversion(1) Displayposition(2) Fixedheight(False) Left(80) Parent(#COM_OWNER) Showselection(False) Showselectionhilight(False) Tabposition(1) Top(6) Width(289) Dropdowncount(20)
Art Tostaine
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Dynamic Picklist / Drop Down List in Windows

Post by Dino »

Hi Art

The component for the VisualPickList:

Code: Select all

Begin_Com Role(*Visual #PRIM_EVPL) Name(#VisualPicklist) Appearance(DropDownList) Height(19) ComponentVersion(1) Width(258) 
do not have all the properties of a combobox

Code: Select all

Define_Com Class(#PRIM_CMBX) Name(#ComboBox1) ComponentVersion(1) DisplayPosition(1) FixedHeight(False) Left(58) Parent(#COM_OWNER) ShowSelection(False) ShowSelectionHilight(False) TabPosition(1) Top(31) DropDownCount(20)
even in V15 EPC150050, but that role (instead of class) *VISUAL #PRIM_EVPL can be more than a dropdown as you can see in the Appareance property, it is not just a combobox.
forumdropdownprimevef.jpg
forumdropdownprimevef.jpg (7.21 KiB) Viewed 22743 times
if you want to have the full possibility of the combobox, you need to have that in a reusable part and use the combobox, the sky is the limit in that way.

You can also open a case and request an enhancement.
dropdowncount.jpg
dropdowncount.jpg (334.55 KiB) Viewed 22743 times
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Dynamic Picklist / Drop Down List in Windows

Post by atostaine »

Yes I will probably request an enhancement. I’ve already changed to a regular RP.

If I choose another visualization are all of the properties available there that are available if I create my own say button set? My point is I think they left the dropdowncount out for some reason.
Art Tostaine
Post Reply