NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: astahl on December 31, 2020, 07:42:37 AM

Title: Drop fields do not work properly
Post by: astahl on December 31, 2020, 07:42:37 AM
Bruce,

I have a small states file with 55 rows. When using a drop field on a form with NTWS 12 it no longer drops 15 at a time with scroll bar, but drops all 55.

How do I get it to drop only 15 rows with a scroll bar?


Ashley
Title: Re: Drop fields do not work properly
Post by: DonRidley on December 31, 2020, 03:59:06 PM
See:

http://www.nettalkcentral.com/forum/index.php?topic=8741.0

Also, you have CSS options.

For example:

ul[role="listbox"] {height: 15em;}

This will change the height of ALL Unordered List <ul> elements.  It gets the element by its attribute "role" with a value of "listbox."

Or, you can target a specific element by its id attribute:

#VehicleGuid-menu {height: 15em;}  ! This is from one of my drop downs.

But, as Bruce said, a fix is coming in 12.04.

Don
Title: Re: Drop fields do not work properly
Post by: astahl on January 01, 2021, 04:34:20 AM
Thanks Don for all of the help.

Ashley
Title: Re: Drop fields do not work properly
Post by: Vinnie on January 01, 2021, 08:33:36 AM
Hi added this to my customer css
Works great 12.03

.ui-selectmenu-open ul {
height: 30em ;
}

change 30em to 15em for fewer lines to display.
Title: Re: Drop fields do not work properly
Post by: astahl on January 12, 2021, 03:50:46 AM
Also have found when using a queue that it does not follow the order of the queue.

  YearQ.SearchYear = YEAR(TODAY())      !2021
  ADD(YearQ)
  YearQ.SearchYear = YEAR(TODAY()) - 1 !2020
  ADD(YearQ)
  YearQ.SearchYear = YEAR(TODAY()) - 2 !2019
  ADD(YearQ)
  YearQ.SearchYear = YEAR(TODAY()) - 3 !2018
  ADD(YearQ)
  YearQ.SearchYear = YEAR(TODAY()) - 4 !2017
  ADD(YearQ)
  YearQ.SearchYear = YEAR(TODAY()) - 5 !2016
  ADD(YearQ)
  YearQ.SearchYear = YEAR(TODAY()) - 6 - 2015
  ADD(YearQ)

It always shows the last one first. 2021 should be the default year and not 2015


Ashley
Title: Re: Drop fields do not work properly
Post by: Bruce on January 12, 2021, 09:14:03 PM
read up on ADD in the clarion help to see how to force items to the front, or back, of the queue.