DropDown reusable part Number of Rows displayed

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
Mkolbe
Posts: 27
Joined: Tue Apr 04, 2017 12:45 am

DropDown reusable part Number of Rows displayed

Post by Mkolbe »

I've included a a dynamic DropDown reusable part on my screen. There is a DropDownCount parameter that appears to default to 8. When the number of rows returned is at least 8, then 8 rows are displayed in the DropDown (as expected). However, when the reusable part returns less than 8 rows, the DropDown list only expands far enough to show a subset of the list (specifically one row less than the number of rows returned). For example, if the DropDown contains 3 entries, only 2 are displayed. The user is forced to always scroll to see the entire list. When such a small number of rows are returned, I'd like to display them all so the user does not have scroll to see them all.

Is the number of rows or height of the DropDown something I can control?


Define_Com Class(#PRIM_LABL) Name(#Label1) Displayposition(1) Ellipses(Word) Height(24) Left(0) Parent(#COM_OWNER) Tabposition(2) Tabstop(False) Top(0) Verticalalignment(Center) Width(100) Caption('Sub-Type')
Define_Com Class(#PRIM_LIST.DropDown) Name(#SubType_DD) Columnheaderheight(0) Columnlines(False) Displayposition(2) Left(100) Parent(#COM_OWNER) Rowlines(False) Showselection(False) Tabposition(1) Top(0) Width(270) Height(21)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnPSAR151) Columnunits(Proportion) Columnwidth(1) Displayposition(2) Parent(#SubType_DD) Source(#PSAR15) Visible(False)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnPRMD151) Columnwidth(280) Displayposition(1) Parent(#SubType_DD) Source(#PRMD15)
dannyoorburg
Posts: 177
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: DropDown reusable part Number of Rows displayed

Post by dannyoorburg »

Hi,

because you're visible column is a fixed 280 pixels, you get a horizontal scroll bar which takes up space and in turn causes the vertical scroll bar.

(You could consider that a bug and sent it LANSA support I guess.)


But did you mean it to be 280 pixels?

If I just make it a proportional column so it's always the available width the dropdown looks fine to me...


Danny
Mkolbe
Posts: 27
Joined: Tue Apr 04, 2017 12:45 am

Re: DropDown reusable part Number of Rows displayed

Post by Mkolbe »

Thank you very much! I changed the column width of #ColumnPRMD151 from 280 to 260. I no longer get the horizontal scroll bar, and ALL my values are displayed in the drop down.

Define_Com Class(#PRIM_LABL) Name(#Label1) Displayposition(1) Ellipses(Word) Height(24) Left(0) Parent(#COM_OWNER) Tabposition(2) Tabstop(False) Top(0) Verticalalignment(Center) Width(100) Caption('Sub-Type')
Define_Com Class(#PRIM_LIST.DropDown) Name(#SubType_DD) Columnheaderheight(0) Columnlines(False) Displayposition(2) Left(100) Parent(#COM_OWNER) Rowlines(False) Showselection(False) Tabposition(1) Top(0) Width(270) Height(21)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnPSAR151) Columnunits(Proportion) Columnwidth(1) Displayposition(2) Parent(#SubType_DD) Source(#PSAR15) Visible(False)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnPRMD151) Columnwidth(260) Displayposition(1) Parent(#SubType_DD) Source(#PRMD15)
Capture.JPG
Capture.JPG (18.28 KiB) Viewed 6483 times
Post Reply