Using the States Example how can I set Selected to Maryland Without RowNumber
Let's use the states example for the sake of everyone having
the code in front of them. If I am returning a value from the
database that I am writting out to the application like this
<%out.write("STATE_NAME"); %>
how can I set the selected value to that without knowing what
the row number is, here is my try but I get a few error messages:
<option spry:if="{name} == '<%out.write("STATE_NAME");
%>'" value="{name}" selected
="selected">{name}</option>
<option spry:if="{name} != '<%out.write("STATE_NAME");
%>'" value="{name}" >{name}</option>
I get double the states and the following in the debug box:
Caught exception in Spry.Data.Region.prototype.processTokens
while evaluating: Alabama == Exception:[object Error]
Caught exception in Spry.Data.Region.prototype.processTokens
while evaluating: Alabama != '' Exception:[object Error]
This goes on for as many records as I have in the DB,
Please let me know how it could be done if it could be done?
I believe what you guys are looking for is the
Set
Default Row Based on Specific Column sample that is on the
Spry
Samples Page.
The problem of using a spry:if="{name} ..." approach is that
it only makes sure the form select widget is set to what the server
thinks is the current row in the data set, but it doesn't actually
set the current row in the data set to reflect this, so the cities
select is out of sync cause it is defaulting to displaying the
cities for the first row in the states data set.
Checkout the sample I mentioned above, it will show you how
to set up an observer where you can query for the correct row
immediately after the data is loaded, and then set the current row
so that everything is as expected.
--== Kin ==--
Similar Messages
-
I have CS6 and CC installed on my mac when I'm using CS6 and use bridge CC activates how can I set this to only work on one and not the other
If you want Bridge CS6 to open when using Photoshop CS6, you must quit Bridge CC.
Then File menu > Browse in Bridge will bring up Bridge CS6.
If Bridge CC is already open, The File > Browse in Bridge for Photoshop CS6 will use Bridge CC and Bridge CS6 will not open.
I hope that's the answer you were looking for.
Gene -
I am using ipad 2 and am using iwork paged. how can i set up iwork pages so that a page will scroll left to right or right to left instead of just up?
Here you are in a forum dedicated to Pages for OSX.
Most of us don't use Pages for iOS.
Better ask in the iWork for iOS forum :
https://discussions.apple.com/community/app_store/iwork_for_ios
Yvan KOENIG (VALLAURIS, France) lundi 18 juillet 2011 22:38:20
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
I have three iPhones using the same iTunes account, can we set something so that all our txt messages are not appearing on all phones?
Settings > Messages > Receive At...
Any iPhone that lists the same email will receive the same texts. This has to be changed in order to stop receiving on all devices. -
No matter where I go, as soon as I turn on the Internet on my new Mac Book Pro, everyone else is no longer able to use the Internet. How can I fix this? I received it as a gift for college, but its hard to do research when everyone constantly yells at me to get off because they can no longer continue what they're doing.
<Edited By Host>" how can I sync my iphone to my mac book without losing all the music and pictures on it?"
You cannot. Copy everything you want form the old computer to the new one, then sync it.
it basically says you have to erase your iphone to sync to a new itunes!
Correct Iphone will sync, or manually manage, with one and only one computer/library at a time. Syncing, or manually managing, to another will indeed erase the current content. -
We bought a used Ipod Touch from a private party. We can download music when it's hooked up to the computer but can't download any games or songs by using the wifi. How can we change the password so we can do this?
You should restore the the iPod to totally erase the iPod and add your own media to the iPod.
Connect the iPod to your computer and restore to factory settings/new iPod via iTunes.
iTunes: Backing up, updating, and restoring iOS software -
She called some number and stopped it from using the network. How can i make it work again?
>Posted edited to remove instructions that could lead to a fraudulent act< But if she's paying the bills, she's going to see that you turned it back on and I'm guessing you're probably going to get into even bigger trouble (especially if you managed to impersonate her or speak on her behalf). Best bet, talk to your mom about what she wants from you in order to get it turned back on.
Good luck!
Message was edited by: Verizon Moderator -
If multiple users will be using the same iPad, how can I lock it so the settings cannot be changed, specifically the languages(students are changing the languages)?
Even with Apple Configurator most of the settings cannot be locked, and that includes the language settings. Most schools and organizations seem to just accept that they'll have to reconfigure the iPads on a regular basis.
Regards. -
My daughter lost her ITunes gift card but we still have the receipt. How can we activate the gift card?
Go here:
iTunes Support
and follow the instructions to report the issue to the iTunes Store. They usually will ask for a scan of the front and back sides of the card as well as a scan of the receipt, so you should contact the person who gave her the card and ask if they can send you a copy of the receipt. Many resellers provide a gift receipt for just this sort of purpose.
Regards. -
Updated 4S to IOS8 and now have to enter code whenever I use the phone , even to make a call. How can I reverse this?
You are welcome. I always have passcode on. It makes my phone secure and it is really not a nuisance. I have the phone set to require a passcode after 5 min. When I receive a call I do not need to enter the code to answer the call.
-
i want to use firefox to login a website ,in the same window and different tags can user the same session
but when i open other window and login the same website use different account .
how can i achieve it ? thinksYour problem has nothing to do with the faults or limitations of a web browser.
''There can be only ONE active user logged in on a specific website during a whole Browsing Session. Even if you try to log-in using a new window it will sign-out the earlier User ID from that website. It will keep the most recent logged-in User ID active.''
This is the general policy on which all websites are built. Even if you try to login the same website from another web browser, you won't be able to login from the second platform either. I just check it. Tried on Mozilla and Internet Explorer. -
I would like to use the old ios how can i do that??
How can i get the old software of iphone 4
Might want to check this support document to see what is backed up http://support.apple.com/kb/HT4946. Applications are brought back to the device by syncing, not by restoring the backup.
-
WHATS WRONG? OR HOW CAN I CONNECT MY PHONE TO WIFI WITHOUT IT BEING NEXT TO THE ROUTER ALL THE TIME?
Then it's likely that you have a hardware issue on your hands. Follow the three r's:
1. Restart: Turn it off and then on again
2. Reset: Hold down the home and power button until the apple logo appears
3. Restore: Connect the device to iTunes and restore it as new. Test the issue and see if it persists.
Don't forget to back up before you restore, so you can keep your data.
If the three r's don't work to solve your issue, you will need to get your phone repaired. To do this, you can go into the apple store or call 1-800-275-2273. -
I am doing data acquisition using the 6024E board, how can I acquire voltages greater than 10V
I am doing data acquisition on MATLAB using the 6024E board, the maximun range I can see is <-10V,-10V>, can I increase this limit to be able to acquire higher voltages
Without knowing the details of the signal you are acquiring (output Z etc), I can only offer an old suggestion.
A voltage divider may be usefull. This will work if your application can tolerate some external resistors.
Ask if you want details.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
HT204364 In using the photo album how can I make a border around a photo in color?
How can I insert a colored border around a picture in an photo book?
To do that you'll need a 3rd party editor like one of these:
Some Image Editors that support layers:
Photoshop Elements 10 for Mac - $79
Rainbow Painter - $30
Imagerie - $38
Acorn - $50
Pixelmator - $60
Seashore - Free
Portraits and Prints - Free
GIMP for Mac - Free
OT
Maybe you are looking for
-
Who has deleted emails from shared mailbox ?
Hi Guys, We have a shared mailbox and is accessed by more than 5 users. Some one did something and the emails got deleted. I see them in recoverable deleted items folder. Can anybody let me know how to find out who has deleted them ? FYI - we do not
-
I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit. In particular, I am analyzing th
-
In Adobe Reader, Can you...
Can you alter the pdf in anyway? I would like to take pdf and put a stamp on the image. Can this be done with just reader or do I need to upgrade?
-
CRMD_ORDER - Doc Flow is showing business obj code instead of description
Dear Friends, I am using CRM 2007. I have created service contract in CRMD_ORDER transaction code (contract no.5000031). Then, the DMR is created in R/3 (No.0060100097). So, the contract is replicated well. I have checked the document flow of contrac
-
How to go back to the first track on ipod shuffle 2nd generation
how can i go back to the first track on my ipod shuffle 2nd generation? the first tracks in my shuffle-playlist are my new podcasts, at second place is my current audiobook, sequentially the music is listed. the podcasts and audiobooks are marked wit