I have to combo box content change based on the selection on the other

I have huge unsolve problem where by I have to combo box change content of the combo box based on the selection in the first combo box . The problem is The value changes do not have effect on the second combo box. Below is the content of the coding used for both the combo box.
function setReasonCode(obj){
                     <%String sql_query3 = "SELECT DISTINCT (ir_tran_typ) "+
                                          "  FROM intrcd ";
                           System.out.println("trans type"+sql_query3 );           
                            try{
                                rset = db.execSQL(sql_query3);
                            catch(SQLException e) {
                                System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query3);
                            while(rset.next()){
                                tran_cde = rset.getString("ir_tran_typ");
                                        tran_typ.addElement(rset.getString("ir_tran_typ"));
                                        System.out.println("trans type 34 "+tran_typ );%>
                                        <% }%>
                                      alert(obj.value);
                              <%for(int i=0 ;i<tran_typ.size();i++){
                                 System.out.println("trans type 222  "+ tran_typ.size());
                                   tran_cde =tran_typ.elementAt(index).toString();%>
                                   <%System.out.println("trans type before "+ tran_cde);%> 
                                    eval(document.all.tran_cde.option
                                  if(D == <%=tran_cde%> ){
                                   <%System.out.println("trans type D"+ tran_cde);%>     
                                   <%String sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                          "  FROM intrcd"+
                                          " WHERE ir_tran_typ = 'D' " +
                                                    " ORDER BY ir_rea_cde ";
                           System.out.println("query"+ sql_query2);           
                            try{
                                rset = db.execSQL(sql_query2);
                            catch(SQLException e) {
                                System.err.println("Error in query - emmast2 - transaction_main.jsp " +e +" sql " +sql_query2);
                                    index = 1;
                            while(rset.next()){
                                    rea_cde = rset.getString("ir_rea_cde");
                                    rea_desc =  rset.getString("ir_rea_desc");
                                   tran_typ.removeAllElements();
                                   }%>
                              if( R == obj.value){
                                   alert(R)
                                  if(R== <%=tran_cde%> ){
                                   <%System.out.println("trans type R"+ tran_cde);%>     
                                   <% sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                          "  FROM intrcd"+
                                          " WHERE ir_tran_typ = 'R' " +
                                                    " ORDER BY ir_rea_cde ";
                           System.out.println("query 2"+ sql_query2 );           
                            try{
                                rset = db.execSQL(sql_query2);
                            catch(SQLException e) {
                                System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query2);
                                    index = 1;
                            while(rset.next()){
                                    rea_cde = rset.getString("ir_rea_cde");
                                    rea_desc =  rset.getString("ir_rea_desc");
                                   }%>
          <%}%>
            }

Not unless you know which file in the app sets the choices. I've been through it pretty thoroughly and can't find the one.

Similar Messages

  • When I set up my iMac I used one of two iTunes accounts I have, I now need to change it to the other one......any ideas?! Thanks in advance

    When I set up my iMac I used one of two iTunes accounts I have, I now need to change it to the other one......any ideas?! Thanks in advance

    Hi Pompey Woody,
    Thanks for visiting Apple Support Communities.
    If you need to use a different Apple ID (iTunes Store account) with iTunes on your Mac, you can sign out and then back in with the other account:
    Open iTunes. ...select Store > Sign Out, then select Store > Sign In and enter your current Apple ID.
    These steps are found in this article:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    You may also find the information in this article helpful:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Best,
    Jeremy

  • Is it possible to have the background colour of a field change based on the entry?

    I previously obtained help from a user here to create a script that autopopulates a field based on options selected in two sets of radio buttons:
    var consequence = this.getField("Consequence").valueAsString; 
    var likelihood = this.getField("Likelihood").valueAsString; 
    if (consequence=="Insignificant" && likelihood=="Rare") event.value = "Low"; 
    else if (consequence=="Insignificant" && likelihood=="Unlikely") event.value = "Low";
    else if (consequence=="Insignificant" && likelihood=="Moderate") event.value = "Low";
    else if (consequence=="Insignificant" && likelihood=="Likely") event.value = "Low";
    else if (consequence=="Insignificant" && likelihood=="Almost Certain") event.value = "Moderate"; 
    else if (consequence=="Minor" && likelihood=="Rare") event.value = "Low"; 
    else if (consequence=="Minor" && likelihood=="Unlikely") event.value = "Low";
    else if (consequence=="Minor" && likelihood=="Moderate") event.value = "Moderate";
    else if (consequence=="Minor" && likelihood=="Likely") event.value = "Moderate";
    else if (consequence=="Minor" && likelihood=="Almost Certain") event.value = "High"; 
    else if (consequence=="Moderate" && likelihood=="Rare") event.value = "Low"; 
    else if (consequence=="Moderate" && likelihood=="Unlikely") event.value = "Moderate";
    else if (consequence=="Moderate" && likelihood=="Moderate") event.value = "High";
    else if (consequence=="Moderate" && likelihood=="Likely") event.value = "High";
    else if (consequence=="Moderate" && likelihood=="Almost Certain") event.value = "Critical"; 
    else if (consequence=="Major" && likelihood=="Rare") event.value = "Low"; 
    else if (consequence=="Major" && likelihood=="Unlikely") event.value = "Moderate";
    else if (consequence=="Major" && likelihood=="Moderate") event.value = "High";
    else if (consequence=="Major" && likelihood=="Likely") event.value = "Critical";
    else if (consequence=="Major" && likelihood=="Almost Certain") event.value = "Extreme"; 
    else if (consequence=="Catastrophic" && likelihood=="Rare") event.value = "Moderate"; 
    else if (consequence=="Catastrophic" && likelihood=="Unlikely") event.value = "High";
    else if (consequence=="Catastrophic" && likelihood=="Moderate") event.value = "Critical";
    else if (consequence=="Catastrophic" && likelihood=="Likely") event.value = "Extreme";
    else if (consequence=="Catastrophic" && likelihood=="Almost Certain") event.value = "Extreme";
    // etc. 
    else event.value = ""; 
    I'm wondering if its possible to have the colour of the field that uses the above script, change based on the entry. E.g. If the answer is Low; make the background colour Green; if its Moderate, make it orange etc.?
    I know its a big ask but thought I would check.
    Thanks in advance.

    One approach would be to have access to a Mac that can run the classic environment or has a pre OS X native installation. These should be able to read the files for dates of creation/modification. There is also SheepShaver that runs on OS X machines.
    https://www.macupdate.com/app/mac/20615/sheepshaver
    http://en.wikipedia.org/wiki/Classic_Environment
    http://www.everymac.com/systems/by_capability/macs-that-support-macos-9-classic. html
    https://discussions.apple.com/message/22597899#22597899

  • How to make a value changed based upon values selected in dropdown menu

    Hi,
    I am making my first Dreamweaver website using Dreamweaver CS6 on a windows 8 PC.
    I am trying to make a website where the user selects different criteria; in this example an ipod's model, condition and size from three seperate dropdown selections (similar to www.itrado.co.uk) and then based upon these selections a value for their ipod is shown. However i cannot work out how to display a value which remains on the same page and changes based upon the values which have been selected from the dropdown boxes. I was planning on creating a database and then creating a simple code which retrieves the value from the database which corresponds to the three selected values, however i am not sure how to go about doing this.
    Any help would be greatly appreciated.
    Many Thanks,
    Henry

    You need scripts for this. Try this jQuery tutorial
    http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
    Nancy O.

  • HT204053 I bought the iPhone 5 today.  I have 2 apple IDs.  I entered the wrong one when I set up the phone.  How can I change it to the other ID?

    I bought the iPhone 5 today.  I have 2 apple IDs and I entered the wrong one when I set up the phone.  How can I change it to the other one?

    Start Over...
    ERASE / Clear All Data
    See  Erase your device  Here  >  http://support.apple.com/kb/HT4137
    Go to Settings > General > Reset > Erase all content and settings

  • Just bought a new mac mini, wireless keyboard, and track pad. My track pad will not synch. All advise I have been given is to change items in the setting menu, but I cant because I still have to get through the setup!!

    Just bought a new mac mini, wireless keyboard, and track pad. My track pad will not synch. All advise I have been given is to change items in the setting menu, but I cant because I still have to get through the setup!!

    The power button for the Trackpad is on the right hand end of the battery case. Press that button to initiate the pairing process. On the top of the Trackpad just above the power button is a tiny green light (you probably cannot see it unless it is lighted). That light will indicate ehther or not the Trackpad is discoverable. If the Trackpad has discoverable the green light will blink on and off. If it does not pair within 3 minutes you will have to press the power button again to re-initiate the pairing process. Once your Trackpad has paired, you can just leave it on and it will pair automatically when you reboot your Mac.
    If you are having problems pairing, try turning off any other Bluetooth devices within 30 or so feet of your Mac mini. That includes other Computers, iPhones, iPads, etc. that may be in the area. Once your Trackpad has pairedwith your mini, you don't have to be concerned about other Bluetooth devices.
    One other hint, I find that although the Wireless Trackpad does not eat batteries as fast as the Magic Mouse it still uses more than the Wireless Keyboard. It is a good idea to keep a supply of AA batteries around. I have used Apple's Rechargable batteries, but found they did not last that long before needing to be recharged. I have had the best battery life from Duracell Quantum batteries.

  • Process flow for the Mid-year Status Changes based upon the Qualifying Even

    Hi Experts,
    I'm looking some information for the process flow for the Mid-year Status Changes based upon the Qualifying Events. Basically, I need to know, what would be the impact of these changes on various info types (Via IT0014 - Deduction changes & so forth) and the things that needs to be considered during it's Configuration and the things that needs to be checked due to the occurrence of the change. I would greatly appreciate any kind of help/document.
    Thanks a bunch in advance,
    Thanks,
    Exertive.

    Hello guys,
    Can anyone has any kind of input on this? Basically, I need to know the procees for Mid-year status changes based upon Qualified events. Any kind of help is greatly appreciated.
    Thanks,
    Exertive.

  • PO Charge Account is not changing based on the Category

    Hello team,
    When we changing the Item category in PO requisitions, Charge accounting is not changing based on the item category.
    Charge account is populating based on the Item organization.
    In iProcurement requisition charge account is changing based on the category.
    Could you please let us know is there any setup missing
    Thanks,
    Raju

    You may consider using Expense Charge Account Rules available in Purchasing.
    The detail is available in User's Guide under "Expense Charge Account Rules", or
    you can also reference note How to Set Up and Use Category-based Account Default in Purchasing (Doc ID 293046.1)
    Hope this helps.
    Vanha

  • I have two macbooks, one is my old one which my wife uses and my macbook pro.  When either of us make changes in Safari it changes it on the other's computer...please help.

    I have two macbooks, one is my old one which my wife uses and my macbook pro.  When either of us make changes in Safari it changes it on the other's computer...please help.

    You're both synchronizing Safari with iCloud while signed in with the same Apple ID. On one computer, sign out of iCloud in its preference pane and sign in with a different ID.

  • I changed itunes options the other day to only synch one playlist and now when I open itunes I can't access my library.

    I changed itunes options the other day to only synch one playlist and now when I open itunes I can't access my library or any playlists. 

    I think I fixed this problem a few years ago by literally copying and pasting all my audio content into the iTunes library folder. I can't remember what is called of the top of my head and I don't know if this will still work.

  • I have ordered an i-pad and cancelled it the other day. I have used my indian debit for that order. So money got debited immediately. Apple has sent an email saying that it is successfully cancelled. But money is not yet credited into my account.

    i have ordered an i-pad and cancelled it the other day. I have used my indian debit for that order. So money got debited immediately. Apple has sent an email saying that it is successfully cancelled. But money is not yet credited into my account. please let me know what is happening. I cancelled the order on April 9th. Its already been more than 15 days.

    Your best corse of action would be to either email apple support or ring them giving them your debit I'd and the order number where they will be able to look at what's wrong and set u going on the right track

  • I have two iPhones, one is a 4s and the other is a 3g. I have not used my 3g in some time now. I recently restored it but I cannot use it without a sim card, it says i have to "activate it."

    I have two iPhones, one is a 4s and the other is a 3g. I have not used my 3g in some time now. I recently restored it but I cannot use it without a sim card, it says i have to "activate it." I cannot place my iPhone 4s sim card in it (too small), and i do not want to get a new contract or sim card for an iPhone that i do not ues very much.

    Thanks for your help, but i cannot borrow a noral sim card now, my family has all up graded to iPhone 4s's, i have done this before, but one of my family had the same type of iphone so i could use theirs. Now i am the only one who still holds on to their old phone... I am not sure about buying an adapter...

  • I keep getting a warnin that my pages document could not be auto saved. The file has been changed by another application. Click save anyway to keep your changes and save the changes made by the other application as a version, or click revert to keep the c

    I keep getting a warning stating that the document could not be auto saved in pages. The file has been changed by another application. Then it says click save any way to keep your changes and save the changes made by the other application as a version, or click revert to keep the changes from the other application and save your changes to a version.
    What in the heck does all that mean, and why are they trying to behave like a Windows product or a Microsoft office product. I just don't get it.
    Why is another application changing my documents? It's like they've created a virus within their own programs. It's a pain in the neck and makes no sense.

    I am also having the issue of a warning saying "could not be auto-saved in Pages. The file has been changed in another application. I then hit "save anyway", the warning will go away for a time, sometimes minutes, sometimes hourr, but then the warming reapprears saying the same thing. This is not the case with all Pages documents but it is the case with many.
    Working with a Retina Macbook Pro and current software
    These are newly created documents

  • I just bought a subscription on July 23, 2103 and have been suspended because I haven't bought another year - I have had a months service and would like the other 11 please.

    I just bought a subscription on July 23, 2103 and have been suspended because I haven't bought another year - I have had a months service and would like the other 11 please. Can you get back to me and explain why this is going on?
    Thank you,
    John Maybee
    [email protected]

    Best Contact Customer Care
    If you tell us what exactly you subscribed to, I can move your post to the appropriate forum.

  • How can I merge folder with the same name so that the content does not replace the other

    How can I merge folder with the same name so that the content does not replace the other?

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

Maybe you are looking for

  • New update has messed up my playlists

    I installed the new 10 OS software this morning which seemed fairly smooth.  However, my music and playlists are all scrambled.  Is there a simple way to reinstate them to the way they were please? Cheers

  • Ok, the project panel does not work anymore!!!!

    I'm using flash cs5.5 and today I opened my project to start working... just to find out that the project panel does not work. When I click the tab to expand it, flash hangs for a minute and then it works, but the panel is blank, empty. The odd thing

  • Mail application opens to default inbox

    When I open the mail applicaiton, ratehr than opening up to the main screen where all my inboxes and accounts reside, the app opens to my default account inbox.  If it does open up to the main mail screen, the mail app crashes right away. I was hopin

  • HELP does not work correctly

    In the Help does not work the function " Place on block diagram" and Find on the function palette". Does anybody know, what can I do with this? Thanks  Ondrej

  • Guest LAN and DHCP Options not passing through

    Managed to get the Guest LAN up and running for wired clients and all's working well.  Users are sat behind a proxy and if I force the use of a appropriate wpad file I can get the WLC auth to happen and then push off to the proxy. I'm trying to use o