Sort list displays from the bottom up
I have a form that has 2 select lists (1 that pulls from a
database and 1 that is manual coded).
The list that is manual code displays fine. The first item in
the list is displayed as default. However the list that pulls from
the database starts at the bottom of list showing "Z" as the
default. Then you have to scroll up.
Any suggestions on how to correct would be great.
Code:
This query uses a view that sorts the city asc.
<cfquery name="City" datasource="my_database">
SELECT *
FROM dbo.vw_city
</cfquery>
<select name="City" id="City">
<option>(Select city below)</option>
<cfoutput query="City"><option value="#City.city#"
<cfif (isDefined("City.city") AND
City.city EQ
City.city)>selected="selected"</cfif>>#City.city#</option>
</cfoutput>
</select>
Your problem is here:
<cfif (isDefined("City.city") AND
City.city EQ City.city)>selected="selected"</cfif>
Since you are getting all this from a query, your cfif will
always return true. And, since you are looping through query
results, it will always select the last row.
What to do about it depends on what you are trying to
accomplish.
Similar Messages
-
This is something that has bugged me all the years I have used iPhoto. When i create a new album, it always goes to the bottom of my very long list of albums. I would like to be able to select the folder that the album goes in as I create it. Im really tired of dragging the new album from the bottom. With a touch pad it is a very tricky manuver.
Thanks for your help.You can right click in the album area and sort them - as far as I know there is no easy way - suggest to Apple - iPhoto menu ==> provide iPhoto feedback
LN -
Firefox comes on, I go to a site rich w/ visual content & then the screen goes black & then white w/ with a bubble from the bottom bar saying recovery from igfx display failure..this used to happen on my Chrome browser (the Chr browser recovered spontaneously But I removed & reset it... still the problem went on & I quit using Chr for2-3 mos. There never was a problem on Opera. Hey! OPERA rule. As foe IE 8. That instrument is completely useless. Even all areon IE appears to be dead...Thanx!
Try disabling hardware acceleration in Firefox.
https://support.mozilla.org/en-US/kb/upgrade-graphics-drivers-use-hardware-acceleration#w_turning-off-hardware-acceleration -
I'm wondering how to display "bullets" from the bottom to the top (last to first) in a slideshow. Can anyone help?
Select the set of bullets. Go to the "Build" panel of the Inspector. Choose "Build In". Choose your effect. Select "By Bullet Group" under delivery.
Be sure to experiment with the various options. -
I would like to have at least one of my toolbars displayed at the '''BOTTOM''' of my open browser screen. How do I move '''a''' toolbar from the top to the bottom of the page? I do NOT want to do this by using an extension, and when I read about the extension, I really did not see how it would move the toolbar from the top to the bottom any open browser page.
Thank you in advance for supply the answer and procedure to get this accomplished.Try this extension to create extra toolbar at the bottom and drag items from other toolbars on it.
*TotalToolbar: http://totaltoolbar.mozdev.org/
''(compatibility is at 13.0a1, so you may need to override the installation to check if the extensions works)'' -
when the email page opens the emails are across the screen and most recent at the bottom. I want the most recent at the top of the page and when I open a email want it to display at the right side and not the bottom of the screen
Click on any column header to sort on that column. Click that same header a second time to reverse the sort order.
From the menu bar select View-Layout and select one of the three provided layout arrangements.
No menu bar showing. Press the alt key to make it appear. -
In mail how do I get the latest emails to appear at the top of the column automatically. At the moment I have to scroll up from the bottom oldest entires to find my latest mail arrivals
What device are you using?
I assume you are talking about something other than the iPad?
Is there a sort order above the date column? Clicking on this can switch between Ascending and Descending order. -
How do I start Icons on IPhone 6 from the bottom of the screen
Hello,
The new phone is too big for me to reach the top of the phone without moving my hand position, this means I can not do one handed operation of the 6 as easily as the 5. Is there a way to make each page of Icons begin from the bottom? If not, this should be put on a list of upgrades to the next operating system as I don't need all my apps on one screen so I would rather have more pages of apps with blank space at the top of the screen (rather than the bottom) for each of my pages so I can reach all of them without my second hand.
thanks,
KYou don't. There is a feature built into the iPhone 6 and 6 Plus called "Reachability". Tap twice on the home button (tap, don't click) and it will pull the screen down to make it easier to reach icons and controld at the top.
-
How to position a table to display at the bottom of the page using XSL-FO
hi al,
i have a set of codes that creates a table and displays on the first row of the page. i want it to display on the bottom of this page. how do i do that?
example code i have is
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<fo:table>
<fo:table-body >
<fo:table-row >
<fo:table-cell>This should display at the bottom of the page.
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:stylesheet> also, i cannot put this in footer since it shouldn't display on all pages.
any help will be appreciated.
thanks
allenHow are you placing this code in your RTF to render the table? If get an error message....
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<fo:table>
<fo:table-body >
<fo:table-row >
<fo:table-cell>This should display at the bottom of the page.
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:stylesheet>
I'm trying to pass code from an xml element where I have only one result with many columns. I want the element code to draw a table in the RTF. -
I've taken really good care of it and had it since the third gen came out (bought it right away) the screen is cracked from the bottom right corner and im wondering if i can replace it for free or even at all please help
You can replace it, but not for free.
iPad mini: $219
iPad 2 or earlier, iPad mini Retina display: $249
iPad 3rd generation or later: $299 -
How to see available space in a blank dvd when adding files in finder? It no longer displays at the bottom of the finder window.
Choose Show Status Bar from the View menu.
(113198) -
I am using an IPad 4 and I was notified of an IOS update. When the update started the screen froze displaying a zipper from the bottom with an arrow above that and an itunes icon above that. IPad will not do anything.
You are in Recovery Mode. Follow step 1 to 6 closely to recover your iPad.
http://support.apple.com/kb/HT1808
Note: You need to be patient and repeat the above many times to recover your iPad -
Much of the information associated with my taskbar was eliminated when it suddenly moved from the bottom of the screen to the right side; it disappears then reappears when the browser goes to the right. This is totally annoying. How can I get my original taskbar to display on the bottom of the screen again?
You can drag the Windows Taskbar back to the position at the bottom of the screen.<br />
After having done that right-click the Taskbar and look for a context menu entry to lock the Taskbar to prevent that from happening again. -
I was doing some thing on my mac and the normal link to the applications folder from the bottom right hand corner disappeared, I cant find it anywhere, Can you help me?
Simple process. If an iPhone go to the Apple Store and not Verizon
the phone from Verizon will be a refurbished device and not new unless under the 14 day worry free guarantee
good luck -
I have a new iphone5 and would like to have my own itunes list away from the familys itune list
i have a new iphone5 and would like to have my own itunes list away from the familys itune list?
i have now got my own apple id account but where do i go from here?
thanks danny.The user data is store in the profile folder. You can copy the data manually by copying the contents of the profile folder, for details see [http://kb.mozillazine.org/Profile_backup Profile backup - MozillaZine Knowledge Base] or [[Backing up your information]].
There are some add-ons and utilities that can make this process easier. The first one is the [https://addons.mozilla.org/en-US/firefox/addon/2109/ FEBE] add-on which can be used to copy a profile. Another option is the free [http://mozbackup.jasnapaka.com/ MozBackup] utility.
Maybe you are looking for
-
I would like my homepage to open in a new tab.
-
Problem with adjust pics in Aperture
Whe I try to adjust pictures in Aperture 2.1.2 the viewer window goes total black. Even if I just touch one of the adjustment option a little bit. It happens both when I use raw and jpg. Thanks in advance for any help. I have a project I am working o
-
Hi Gurus, We have defined a Order Type that is a Network (has been defined with Order category 20). Whe assign some Networks to a WBS Element. When we make a purchase requisiton to a WBS Element we can see in the transaction S_ALR_87013542 - By Cost
-
Multiple selection of rows in webdynpro
Hi All, How can we achieve the multiple selection of rows in a table in webdynpro and delete the same. If i have a table with 4 rows i have selected 2 rows and i have to delete those 2 rows. Thanks in Advance, Bsreddy.
-
Rollup and compression for inventry
how to do inventry cube compression