Help using multiple ComboBoxes

I am working on a JSP to add a new Property in my application. On the insert page the user must select an existing County and Township in order to add their new entry. I use the following code to implement the County ComboBox...
RowEditor.useComboBox("CountyCode", "select County_Code from County order by County_Code ASC", "COUNTY_CODE", "COUNTY_CODE");
RowEditor.getFieldRenderer("CountyCode").setPromptText("County Code");
The next step for the user is to select the appropriate Township. Each County has multiple Townships so for that piece of code I need to find a way to restrict my Query to only those Townships that apply for the selected County. Does anyone know how to build that particular Query? Here is what I am currently entering...
RowEditor.useComboBox("TownshipId", "select Township_Id, County_Code from Township where County_Code = ? order by Township_Id ASC", "TOWNSHIP_ID", "TOWNSHIP_ID");
RowEditor.getFieldRenderer("TownshipId").setPromptText("Township Id");
null

I4ve been trying to do this and couldn4t do it.
Can you JDev guys send us some example of a scriplet that does this ?
Thanks !

Similar Messages

  • Help using multiple iphones and ipods on itunes

    Okay, is there any simple way to use multiple apple products thru itunes. I can log in on my account and sync my iphone/ipod, then I log out and log back in with my daughter's account info. I plug her itouch in and it wants to read all of my apps(some apps we both have on our devices). Have problems with music sharing as well. Still a PC user. Get very frustrated with itunes. spend way too much time trying to do things that should be simple. please help! Thank you!

    Are you using method 1 with different windows user accounts?
    http://support.apple.com/kb/HT1495
    Sounds like you are currently using method 2 and not happy with it.

  • I need help using multiple content types in a wiki page library

    I currently trying to used multiple custom content types based off of the wiki page content type in one wiki page library. 
    EDIT: "Allow management of content types" has been enabled with the designer
    The way i would like this library to work is:
    Click the "Files" tab in the ribbon
    Click the "New Document" drop down menu
    Select one of the content types (Client, Contact, Project)
    SharePoint Will Ask for the Page Name and content type fields
    Click create
    Then it will take you to the new created page.
    This issue I'm currently having is when i click on one of the options (Client, Contact, Project) it will ask for a page name then you have to check it in to get to the edit form. The edit form it then loads is the default content type and not the selected
    content type.
    So my questions are.
    Is there any way i can combine the page name and edit steps together into one step?
    How can I get the edit form to pull from the selected content type?
    Thanks in advanced
    James T.F

    Wiki library isn't really designed for customizations... it's a "special" library that overrides a lot of default behavior... similar evidence can be found if you're trying to add metadata columns to wiki pages... they're just not really designed to handle
    it very well.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Help using multiple computers and one shared external drive

    I just "bought" the new LR / PS combo special.  I have 3 computers, 2 PC's in seperate cities and a laptop that I use on the road. I would like to use an external hard drive as the main drive.  This way I could take the drive with me.
    2 Questions....First I tried to learn the basics using the internal hard drive on PC#2.  I then set up a external drive with multiple folders but within one main folder. I then started importing to the external drive using PC#2 (which is at my vacation property). Everything went smooth until I tried to import from that external drive,  It does not open that catalog. I am saving them as digital negatives.
    Question #2 which I have not tried yet is PC#1 which is my main home computer does not have LR.  I have years of photos in hundreds of files sorted in bridge that have to be renamed and put on the hard drive.  It does not have the latest version of PS and I have lots of money invested in plug ins. How can I get lightroom on that computer and will it talk to what I believe is the prior version of photoshop. I don't even want to think about all the plug ins.
    It's pretty clear that I am lost.  I was going to continue using bridge and PS but there is no bridge on the new version, at least not on the $9.99 special.  From what I've seen, LR is the way to go.
    HELP

    Mantis wrote:
    I was going to continue using bridge and PS but there is no bridge on the new version, at least not on the $9.99 special.  From what I've seen, LR is the way to go.
    Bridge should be included in the $9.99 bundle http://www.adobe.com/products/creativecloud/faq.html#pslr-bundle

  • I need help using multiple internal drives

    I have 3 internal drives and 24GB of Ram on an early 2009 G5. I've recently upgraded one drive to yosemite but my current applications are on the other drive;  running 10.7.5.
    I didn't want to reinstall all the apps on the yosemite drive so I was wondering
    if there is any issue with using one drive for applications and another for work/storage.
    Keeping all my apps on drive running 10.7.5 while everything else is on the Yosemite drive.
    Is it advisable to do? Do the apps run any slower this way?
    Thanks for any help.
    M

    You could add a fourth drive, clone your 10.7.5 system to it, and upgrade the clone to Yosemite. That way you still have your clean Yosemite drive and your working 10.7.5 system in case of trouble with the upgrade.
    In the event that an app needs to be re-authorized when moved to a different drive, do you have a record of the relevant serial numbers?

  • Help using multiple Time Capsules

    I'm new to the Time Capsule and it's features, but my sister had one, then two and now three - all purchased to be dedicated to three different computers.  She had to purchase more then one because she needed more capacity than one would hold.  She is also taking advantage of the ability of the Time Capsule to extend and make her wi-fi around her house stronger. She is now having issues with the Time Capsules completing backups.  Is it complicated to do the task of telling each of the wireless backup disks to only address one of the computers on the wi-fi network?  My backup system is old-school: a external hard drive plugged into my computer, so the setup is simple.  The Time Capsule that I've been trying to figure out is a Time Capsule 802.11n (1st Gen) and she's got an iMac that she wants to dedicate to it.  I've been reading the manual for it but I'm still not completely clear on many details.
    This may take a call to Apple Support, but I thought I try here first and get any feedback or suggestions...

    Yes, absolutely.  Everything in their entire house is on the wi-fi...all computers for internet, their two iPhones to impove their usage as cell service is a bit dicey, the laptop which is used at the front of the house which isn't connect to anything esxcept the charger when needed and of course the three Time Capsules and an additional AirPort they installed in one area because the wi-fi was poor...all wireless.  The only exception is the computer I have been trying to troubleshoot.  On that only computer the Time Capsule has been plugged into the iMac via a Cat-5 to do backups which I'm unclear why.  I'm pretty certain that Time Capsule was one of the first ones.  The third one installed in the front of the house has significatly larger capacity and they love the improvement of the wi-fi by it.
    Any feedback on the issues and complexity of this setup would be appreciated.  As I said previously - I haven't been exposed to this particular Apple product, how it works exactly and the details, etc.  There's a lot going on in the setup so I expect there are elements which are completely new to me.

  • Help using multiple audio channels for one video

    Hi,
    I have a video file with 3 audio files (stereo (.wav), 5.1 surround (.AC3), and commentary (.wav).
    I have placed these on the time line of the video track, but now I need to have buttons to target each of them from a menu. However, when is choose a buttons target, is doesn't give me the option of which audio channel to play (A1/A2/A3 etc).
    Is this possible with just one track, or do I need 3 (each with a different audio file as A1)?
    Hope you can help! cheers.
    Tim

    There is a tutorial on setting this up here;
    http://www.kenstone.net/fcphomepage/dvd_languagenattress.html
    BTW I would very strongly suggest to compress your WAV files to stereo AC3 files. It will reduce your overall bandwidth, and you will have a disc that will less problems in playing.
    http://www.kenstone.net/fcphomepage/a_packwarmouth.html

  • [HELP] using multiple value parameter in c:import tag

    I need to pass a multi-value parameter to a included page. e.g.
    http://myhost/MyContext/dir1/page1.jsp?abc=value1&abc=value2/dir1/page1.jsp includes /dir2/page2.jsp, and would like to pass this multi-value parameter over, but change the name to xyz, some what like
    <c:import url="/dir2/page2.jsp?xyz=value1&xyz=value2"/>The problem is that the number of values is not fix number, so I have to write some logic to iterate thru its parameter values. But the <c:import> tag body allows only simple listed <c:param> tags, it doesn't allow other logic/condition/iteration.
    <!-- gives java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected the page: "Illegal child tag in "c_rt:import" tag: "c:forEach" tag at runtime -->
    <c:import url="/dir2/page2.jsp">
    <c:forEach var="xyz" items="${paramValues.abc}">
    <c:param name="xyz" value="${xyz}"/>
    </c:forEach>
    </c:import>{code}
    I also tried <c:url> tag. The good news is that it supports jsp logic in body:
    {code}<c:url var="url" value="/dir2/page2.jsp">
    <c:forEach var="xyz" items="${paramValues.abc}">
    <c:param name="xyz" value="${xyz}"/>
    </c:forEach>
    </c:url>
    <c:out value="${url}"/>{code}but it prefixes the url with the current context:
    {code}/MyContext/dir2/page2.jsp?xyz=value1&xyz=value2{code}
    Now I run into a dead end. It seems the only way out is to use <% %> scriptlet to do my own url composite, which is pretty similar to <c:url> but avoid the context part.
    Any suggestion?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    out.println("<html>");
    out.println("<head>");
    out.println("<script language=\"JavaScript\">");
    out.println("function altSubmit() {");
    out.println("document.MyForm.action = \"Second.html\";");
    out.println("document.MyForm.submit();");
    out.println("}");
    out.println("</script>");
    out.println("</head>");
    out.println("<body>");
    My personal suggestion is to use follow the MVC (Model View Control) pattern where in you can write all your "html" part in a JSP.
    Model -> Bean
    View -> JSP
    Control -> Servlet

  • Help using multiple if else statements & manual dynamic xml data input to trigger a goto and play.

    Below is code that has a timer countdown that reads off of the computer. Below in bold is code to read "if it reaches the date, go to and play frame (2).
    timer.removeEventListener(TimerEvent.TIMER, updateTime);
      timer.stop();
      gotoAndPlay(2);
    Below is code that is manual input-   I had set up a dynamic txt field in flash named it : raffle_tix_remain When loaded on to the host I can manulally update the xml code and the change will take effect.
    raffle_tix_remain.text = root.loaderInfo.parameters.raffle_tix_remain;
    My question:  Since the raffle_tix_remain is a manual input from a user to xml  Is there a way to tell flash once it refreshes and "raffle_ tix_ remain"  goes to (0) zero gotoAndPlay(2); and let it play like a "sold out" sign
    i guess that would be a  if else statement. 
    Code Below-----------------
    stop();
    var year:Number = 2011;
    var month:Number = 12;
    var day:Number = 30;
    var finalDate:Date = new Date(year,month-1,day);
    var timer:Timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, updateTime);
    timer.start();
    function updateTime(e:TimerEvent):void{
              var now:Date = new Date();
              var remainTime:Number = finalDate.getTime() - now.getTime();
              if (remainTime >0) {
                        var secs:Number = Math.floor(remainTime/1000);
                        var mins:Number = Math.floor(secs/60);
                        var hours:Number = Math.floor(mins/60);
                        var days:Number = Math.floor(hours/24);
                        var secsText:String = (secs%60).toString();
                        var minsText:String = (mins%60).toString();
                        var hoursText:String = (hours%24).toString();
                        var daysText:String = days.toString();
                        if (secsText.length < 2) {secsText = "0" + secsText;}
                        if (minsText.length < 2) {minsText = "0" + minsText;}
                        if (hoursText.length < 2) {hoursText = "0" + hoursText;}
                        if (daysText.length < 2) {daysText = "0" + daysText;}
                        day_txt.text = daysText;
                        hour_txt.text = hoursText;
                        min_txt.text = minsText;
                        sec_txt.text = secsText;
              else {
                        timer.removeEventListener(TimerEvent.TIMER, updateTime);
                        timer.stop();
                        gotoAndPlay(2);

    stop();
    var year:Number = 2011;
    var month:Number = 12;
    var day:Number = 30;
    var finalDate:Date = new Date(year,month-1,day);
      var now:Date = new Date();
    var timer:Timer = new Timer(1000);
    timer.addEventListener(TimerEvent.TIMER, updateTime);
    timer.start();
    function updateTime(e:TimerEvent):void{
             var remainTime:Number = finalDate.getTime() - now.getTime()-e.currentCount;
              if (remainTime >0 || raffle_tix_remain==0) {
                        var secs:Number = Math.floor(remainTime/1000);
                        var mins:Number = Math.floor(secs/60);
                        var hours:Number = Math.floor(mins/60);
                        var days:Number = Math.floor(hours/24);
                        var secsText:String = (secs%60).toString();
                        var minsText:String = (mins%60).toString();
                        var hoursText:String = (hours%24).toString();
                        var daysText:String = days.toString();
                        if (secsText.length < 2) {secsText = "0" + secsText;}
                        if (minsText.length < 2) {minsText = "0" + minsText;}
                        if (hoursText.length < 2) {hoursText = "0" + hoursText;}
                        if (daysText.length < 2) {daysText = "0" + daysText;}
                        day_txt.text = daysText;
                        hour_txt.text = hoursText;
                        min_txt.text = minsText;
                        sec_txt.text = secsText;
              else {
                        timer.removeEventListener(TimerEvent.TIMER, updateTime);
                        timer.stop();
                        gotoAndPlay(2);

  • Need help using multiple classes in different folders.

    Hey everyone.
    Im trying to make a trading card game, in Java. Each card is going to be a class derived from a main card class (called card). The problem is that each card is going to be in a different folder based on the set and card number. (ex. card 001 from set 02 would be in "game/02/001/")
    I found this is a real good way to organize the game since there will be new cards all the time and players wont have all of them. Is it posible to call classes from different folders, and if it is how do I do it?
    -Thanks to anyone who answers

    The problem is that each card is going to be in a different folder based on the set and card number.Why don't you simply add two attributes to your Card class:
    cardNumber
    setNumber
    Or better, have a Set class with attribute:
    number
    and a Card class with two attributes:
    number
    set

  • New 13" Macbook Pro trying to connect to a Panasonic VIERA TC-L42U30 as second monitor. I've used multiple hdmi-thunderbolt/mini displayport adapters and multiple hdmi cables and still no success. The Macbook does not sense the second monitor (TV). Help?!

    I've been a Mac since 2008, so I know my way around the system pretty well. This issue, however, has me stumped. I had an iMac until now and only now am I experiencing some difficulty with my new MacBook Pro. The model I have is the newest 13" Macbook Pro model and I'm trying to connect a Panasonic VIERA TC-L42U30 42" HDTV as a second monitor via the Thunderbolt port.
    It worked the first two times and hasn't worked since, after 10-15 attempts with different configurations, turning things on n off, restarting the mac, unplugging the cables, adapters, TV, resetting the P RAM, etc... I've used multiple hdmi-thunderbolt/mini displayport adapters and multiple hdmi cables and still no success. No matter what I do, the Macbook does not sense the TV as a second monitor anymore.
    I took the MacBook Pro to the Apple Store, and their "genius" there had it working fine with a DVI connection to a regular monitor. The Panasonic TV I have has HDMI connections and one VGA connection which does not support HD, but no DVI option. I want an HD connection to mirror or extend my MacBook Pro screen. At the Apple Store, they didn't have a Thunderbolt/Mini DisplayPort to HDMI adapter, so he could not try that out for me.
    Anyone else have this configuration or another similar one with a Panasonic HDTV?
    Ideas? Suggestions? Anything?! Help!!
    P.S. I'm running Mountain Lion, if that wasn't already obvious. Everything is up to date in my App Store as well.
    Thanks!

    Hi There,
    I have had the exact same issue but with a projector.
    The issue lies with Mountian Lion 10.8.2.
    I tried many a combination with no luck to get HDMI working.
    Took my mac into the apple store and came to the conclusion it was the software, so I asked them to install 10.8 onto it (this is destructive so a backup is a must)
    Bought my macbook home and voila, now displaying through my projector.
    There is a small graphics update after 10.8.1 which seems to be the cause.
    Hope this helps.
    Thanks.

  • Help changing image using multiple links

    Hello, I need help!
    How do I change a single image within a page, using multiple link words?
    I've seen this done all over, but can't figure this out! HELP!
    I am trying to have a single image, that will change as the different words are clicked on.
    This has got to be sooo simple!    
    I'm new to CS4.

    Four Level's Light box will do this:
    http://www.fourlevel.com/dreamweaver/extensions/lightbox/index.htm
    Kaosweaver has several Gallery extensions that may do what you need. (Search the Gallery)
    http://www.kaosweaver.com/extensions/index.php
    Project Seven's Image Gallery Magic works very well:
    http://www.projectseven.com/products/galleries/hgmagic/index.htm
    If you know how to work with code, JQuery Galleries are another option to consider:
    http://www.queness.com/post/222/10-jquery-photo-gallery-and-slider-plugins
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.com/blogspot.com

  • Using multiple 'and' conditions in a SQL query

    Is it possible to reduce the SQL required to query using multiple 'and' conditions, e.g. I have a query like the following:
    select stat.personal_id, appt.username, appt.password, apps.rgn_apt_id, apps.apy_apn_id
    from apy_ast_application_status stat, rgn_usr_user appt, rgn_aps_applications apps
    where stat.apy_apn_id = apps.rgn_apt_id
    and apps.rgn_apt_id = appt.rgn_apt_id
    and stat.application_completed is null
    and stat.application_started_date > '01-MAY-11'
    and stat.amount_paid is null
    and stat.personal_details = 'C'
    and stat.further_details = 'C'
    and stat.education = 'C'
    and stat.employment = 'C'
    and stat.personal_statement = 'C'
    and stat.choices = 'C'
    and stat.reference = 'C'
    and stat.student_finance = 'C'
    Is there a way, to reduce all the multiple 'and' queries, to be read from say one line? If you know what I mean.......

    Ah, Ok this looks nice, thanks very much. It doesn't quite run as is because the stat.amount_paid query value is 'is null', while the others are 'C'. I tried amending the relevant line to various versions of the following:-
    in (select 'is null' 'C','C','C','C','C','C','C','C' from dual)
    which doesn't work.
    I can get the following to work so I am assuming that the it is not possible to use different query values within the brackets of the 'in (select....' statement?
    select stat.personal_id, appt.username, appt.password, apps.rgn_apt_id, apps.apy_apn_id
    from apy_ast_application_status stat, rgn_usr_user appt, rgn_aps_applications apps
    where stat.apy_apn_id = apps.rgn_apt_id
    and apps.rgn_apt_id = appt.rgn_apt_id
    and stat.application_completed is null
    and stat.application_started_date > '01-MAY-11'
    and stat.amount_paid is null
    and (stat.personal_details, stat.further_details, stat.education,
    stat.employment, stat.personal_statement, stat.choices, stat.reference, stat.student_finance)
    in (select 'C','C','C','C','C','C','C','C' from dual)
    Thanks for everybodys help - the suggested alternatives seem so much more elegant

  • Enhancing standard (single select)search help for Multiple value selection

    Hi,
    Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
    Is there a way to do it.
    I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
    It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
    Appreciate your help,
    Thanks,
    Sri
    Edited by: Sri on Sep 9, 2010 8:50 PM
    Edited by: Sri on Sep 9, 2010 8:52 PM

    As far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
    Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
    I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me.

  • One search help for multiple select-options in webdynpro abap

    Hi,
    I need a way to use one search help for multiple select-options fields. My scenario is :
    I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
    If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
    If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
    I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
    I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
    However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
    I think I won't be able to use this way. What do you say?
    As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
    MY TABLE (ZBYYT080) CONTENTS:
    SID     VARBL     VALUE     LANGU     VTEXT
    ADS     $WERKS     1     T     Werk 0001
    ADS     $WERKS     11     T     OZYAS  GIDA URETIM YERI
    ADS     $WERKS     5501     T     BOYA GEBZE FABRİKASI
    ADS     $WERKS     5502     T     BOYA CIGLI FABRİKASI
    AGT     $WERKS     2301     T     KAMLI DAMIZLIK
    AGT     $WERKS     9601     T     PANAR DENIZ URETIM YERI
    ADS     $VKORG     22     T     AA KİMYASALLAR
    ADS     $VKORG     8001     T     İINSAAT BOYALARI
    AGT     $VKORG     6500     T     DAMk St.Org
    AGT     $VKORG     5400     T     PANAR St.Org.
    I wish I'm clear enough..
    I will be gald if someone answers me as soon as possible...
    Thanks İn advance..
    MERAL

    Hi,
    Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
    Am I right ?
    If Yes, then in the interface IF_WD_SELECT_OPTIONS
    method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
    have importing param like I_VALUE_HELP_TYPE and  I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
    etc which may help you to link your create DDIC Search help to selection screen params.
    this is just a clue from my side. I haven't tried it myself.
    You can go to the where used list of this method and find some sample implementations which use these params.
    Hope this helps.
    Regards
    Manas Dua

Maybe you are looking for

  • How to fix connection error on facebook via iphone 4s

    How to fix connection error on facebook via iphone 4s?

  • I have a 2.0 ghz iMac with 3gb of RAM. How well would Lion run on my machine?

    I am debating whether to upgrade to Lion, but I've read stories of it crippling older iMacs.  Would my 2007 iMac (2.0ghz, 3gb RAM) be affected?  I also currently use Photoshop CS3.  Would this still work after the upgrade?

  • Saving Word 2010 Documents into a managed metdata hierarchy

    Hi Can I save a document using Word 2010 into a document library that has a managed metadata hierarchy and the document appear in the correct place in the hierarchy ? Ideally it would be good if the Word 2010 "Save As" browser would show the managed

  • Sending scripts to the command line

    Is there a function I can use to send a script to the command line and capture what it sends to the standard output? For example, if I'm writing a java program that I want to execute adder.exe and store the output of adder.exe (which is just sent to

  • Content Area & Folder URL's

    I use to be able to link directly to a content area or folder area by using the Folder Properties to copy the URL. Now, when I try to use this method it always takes me to my home page? I have users that want to link directly to one of their folders