Can someone point to me what am I doing wrong here?

I have radio buttons that populate a dropdown based on which radio button is selected. The based on that choice is made on drop down another drop down is populated
Radio button populate the drop down fine, then when make choices in dropdown1, as soon as click out it goes back to the first choice in drop down?
here is the code in dropdown1, CF is the family of radio buttons
if (this.getField("CF").value == "Central Office"){
       this.getField("drop1").setItems(["Finance", "CEO", "Business Office", "Human Resource", "Maintenance", "Transportation", "Communication"]);
then based on choice on dropdown1 the dropdown2 is populated:
else if (this.getField("drop1").value == "CEO"){
       this.getField("drop2").setItems(["001-2411-439-0000-000000-601-00-000"]);
else if (this.getField("drop1").value == "Business Office"){
       this.getField("drop2").setItems(["001-2412-439-0000-000000-602-00-000"]);
else if (this.getField("drop1").value == "Human Resource"){
       this.getField("drop2").setItems(["001-2412-439-0000-000000-604-00-000"]);
else if (this.getField("drop1").value == "Maintenance"){
       this.getField("drop2").setItems(["001-2700-439-0000-000000-602-00-000"]);
else if (this.getField("drop1").value == "Transportation"){
       this.getField("drop2").setItems(["001-2800-439-0000-000000-602-00-000"]);
else if (this.getField("drop1").value == "Communication"){
       this.getField("drop2").setItems(["001-2932-439-0000-000000-607-00-000"]);
else if (this.getField("drop1").value == "Finance"){
       this.getField("drop2").setItems(["001-2960-439-0000-000000-606-00-000"]);

there are radio button, and two drop downs dropdwn1 and dropdown2
       this.getField("drop1").setItems(["Finance", "CEO", "Business Office", "Human Resource", "Maintenance", "Transportation", "Communication"]);
this is place in dropdown1 as custom calculation script
this one is placed in dropdown2 as custom calculation script
if (this.getField("drop1").value == "Finance"){this.getField("drop2").setItems(["001-2421-439-0000-000000-001-00-000", "001-2219-439-0000-000000-001-00-000"]);
}else if (this.getField("drop1").value == "CEO"){
       this.getField("drop2").setItems(["001-2411-439-0000-000000-601-00-000"]);
it seems things goes wrong when the radio button is involved, but if the radio button is not clicked, then can pick choices in dropdown1 and it populates dropdpwn2 fine!

Similar Messages

  • Every page in website is different even though they are the same size!  4 Views 0 Replies Latest reply: Sep 25, 2011 4:23 PM by kellynewmac     kellynewmac Level 1 (0 points) Sep 25, 2011 4:23 PM Can someone please tell me what I have done wrong ?

    Can someone please tell me what I have done wrong>?  Obviously I am new to iweb, and need help.  I recently built a website in iweb with only 5 pages, and I made the height, width, & all of the specs regarding the page size exactly the same, but they all load as different sizes on the website.  Also the text i typed loads right away, and the images take forever to load with each page when i look at it on a pc, and not mac.  Can someone please help me!!

    Obviously I am new to iweb, and need help.
    And one of your Services is Webdesign?
    Small consolation : iWeb is a very advanced piece of software. So advanced that even highly skilled professionals have difficulty understanding and using it.
    Anyway, your pages are NOT the same size by design. Which can clearly be seen. But also by checking the source of the pages.
    The Home page is 665px wide and the Contact page is 820px wide. That doesn't happen by magic. It's user induced.
    So do what I do : pay attention to every tiny detail. Especially when it's your business. No excuse.
    Here are some sample Sites :
         http://www.wyodor.net/mfi/
    You can download Domain files for your pleasure to study and use here :
         http://www.wyodor.net/mfi/Maaskant/How_To.html
         http://www.wyodor.net/mfi/size/768-946.html

  • I just joined. I selected convert PDF to a word doc. I downloaded it. but I still can't edit it. What am I doing wrong? Are some PDF unable to be converted?

    I just joined. I selected convert PDF to a word doc. I downloaded it. but I still can't edit it. What am I doing wrong? Are some PDF unable to be converted?

    Hi karenb60536875,
    There are some PDF types (such as those that are password-protected) that can't be converted. But when that's the case, you'll get a message during conversion, and the conversion will stop. It doesn't sound like that's the case for you.
    What happens when you open the converted Word document in Word? Do you see an Enable Editing button at the top of the document? If so, please click that. If you're still unable to select text in the Word document, try triple-clicking to select it.
    For reference, I will say that the quality of the conversion depends on the quality of the PDF (see Will Adobe ExportPDF convert both text and form... | Adobe Community). So, there may be cases where a PDF written by a third-party application (a non-Adobe app), may not be written to spec, and that can affect the accuracy of the conversion.
    Best,
    Sara

  • I can't hear anything whatsoever - what am I doing wrong?

    I can't hear anything whatsoever - what am I doing wrong?

    Could you give some more details on your problem, please?

  • I've changed my credit card info, and still have credit on my iTunes account, yet can't purchase anything. What am I doing wrong?

    IIce updated my credit card info. i have credits in my itune account, yet I can't buy anything. What am I doing wrong?

    Have you tried going to Settings>iTunes & App Store, and signing out? Click on your Apple ID, then on Sign Out. Then sign back in again and try again.
    Also, make sure you have closed the app: double-click the Home key and swipe up on it to close it. Then try again.
    Cheers,
    GB

  • My redemption code when entered is rejected as its says it must be used in the mac app store but i am in this store already ? what am i doing  wrong here i am trying to download a system upgrade?

    My redemption code when entered is rejected as its says it must be used in the mac app store but i am in this store already ? what am i doing  wrong here i am trying to download a system upgrade?

    iTunes is not the Mac App Store.
    In your dock it would be this icon:
    The forum for it specifically is here:Using Mac App Store

  • Can someone explain to me what the Terminal does?

    Can someone explain to me what the Terminal application does? A good explanation would be greatly appreciated, thanks!
    NA

    Can someone explain to me what the Terminal
    application does? A good explanation would be greatly
    appreciated, thanks!
    Sure, go here:
    http://www.macdevcenter.com/pub/a/mac/2001/12/14/terminal_one.html
    Powermac G5 - Macbook C2D   Mac OS X (10.4.8)   Both macs are heavily upgraded and used frequently.

  • I just installed JCE on my new CF10 and now can't login to administrator, what am I doing wrong?

    I have CF 10,284568 installed on SUSe 12.2 with Java 1.7.0_15  64bit.  When I swap out the two JCE files, restart Coldfusion, I can no longer login to the Administrator.  To be more specific, it appears session management isn't working.  If I login using a bad username/password pair I get an error, if I login with the correct pair I get returned to the login screen without any error.  Additionally, none of my datasources work (MySQL ).  If I swap out the original (local policy and  US export policy jars) and restart everything works fine.
    What am I doing wrong?  Do I need to run something in the CF bin or reinstall to get this to work?

    I tried to repro the Issue :
    Here are my findings ,
    Case 1 )
    CF with Java 1.7.0_25
    On top of it Install UnlimitedJCEPolicy JDK7
    Restart Server
    Everything works fine
    Case 2 )
    CF with Java 1.6.0_29
    On top of it Install UnlimitedJCEPolicy 6
    Restart Server
    Everything works fine
    Case 3 )
    CF with Java 1.6.0_29
    On top of it Install UnlimitedJCEPolicy JDK7 ( Basically wrong version of Policy Files )
    Unable to open administrator !! And DB’s won’t work as mentioned above
    Case 4 )
    CF with Java 1.7.0_25
    On top of it Install UnlimitedJCEPolicy 6 ( Basically wrong version of Policy Files )
    Unable to open administrator !! And DB’s won’t work as mentioned above
    Can you please check if you are applying the right version of Policy Files ? Or Am I missing something here ? Can you also try with the latest Java and latest CF Update ?
    Regards ,
    YASHAS RATTEHALLI
    ADOBE CF Engineering Team

  • What am I doing wrong here trying to deploy forms?

    I am trying to deploy forms for the first time, but it's not
    working. I would love to hear anyone's advice on what I am
    doing wrong. Here are the steps that I did to try to get them
    deployed using OAS 4.0.7.1.0 and Developer 6 Server. Please let
    me know if I missed steps or have unecessary ones.
    1) created Forms listener in OAS Manager with port 5555. (is
    this unecessary)
    2) created forms web cartridge with virtual path = webcart
    3) configured the cartridge configuration code =
    oracle.forms.engine.Main , codebase=forms60code, baseHTML = c:
    \orant\webhtml\forms60cart.htm, HTMLdelimiter=%
    4) created forms service by typing ifsrv60 -install...but I
    think this is unecessary b/c I could just click the
    START...PROGRAMS...Developer 6...forms server listener
    5) changed the cartrid.htm template file. i changed the default
    file called forms60cart.htm >> I changed these
    codebase=forms60code ,code=oracle.forms.engine.Main,
    serverport=5555, serverArgs module=emp.fmb (which template ones
    should I be modifying)
    6) put this new htm file into my orant/webhtml directory
    7) I get the requested url was not found when I call up
    http://machine.domain:5555/webcart/forms60cart.htm (is this the
    form listner port 5555, or should it be the one that is
    generated from opening forms server listener from the start
    menu. is that the default port 80?
    thanks for any response back
    null

    Hi. I have experienced developer server.
    : 1) created Forms listener in OAS Manager with port 5555. (is
    : this unecessary)
    -> 5555 is a port for web listener(httpd).
    you can use any existing listener.
    : 4) created forms service by typing ifsrv60 -install...but I
    : think this is unecessary b/c I could just click the
    : START...PROGRAMS...Developer 6...forms server listener
    -> in this case, forms server uses port 9000 by default.
    and oas indicates 9000 as default forms listener port,
    if there is no specification. you can use 9001,9002...
    I recommend to specify this in your html file
    as serverport.
    : 5) changed the cartrid.htm template file. i changed the
    default
    : file called forms60cart.htm >> I changed these
    : codebase=forms60code ,code=oracle.forms.engine.Main,
    : serverport=5555, serverArgs module=emp.fmb (which template ones
    : should I be modifying)
    -> serverport shoud not be 5555. 9000 by default.
    and I think module=emp.fmx is right.
    and now call http://machine.domain:5555/webcart/forms60cart.htm
    good luck.
    null

  • Help please what im i doing wrong here (encryption)

    Hi All,
    I wonder if anyone here can help me. I have an algorithm to decrypt a password from a string and i am struggling to decrypt it. The algorithm itself shows an example and i tried the example but i cant get the results that were shown in the example to match with the result in my sample code.
    Here is the algorithm.
    1.First get the bytes of the original password, assuming a "Latin-1" encoding. For the password "Baltimore1," these bytes are: 66 97 108 116 105 109 111 114 101 49 44 (i.e. the value of "B" is 66, "a" is 97, etc).
    2.Then get the MD5 hash of these bytes. MD5 is a standard, public algorithm. Once again, for the password "Baltimore1," these bytes work out as: 223 238 161 24 62 121 39 143 115 167 51 163 245 231 226 94
    3.Finally, create the new password by forming a string whose Latin-1 encoding is the bytes from the previous step. For the "Baltimore1," password, if this is string is written to the screen, it looks like: ���_>y'?s�3����^(i.e. the 62 above is a ">", the 121 is a "y", etc).
    To try the above, i tried to get the string shown in step 3 using the "Baltimore1," password. Here is the code that i wrote.
      public static void main() throws NoSuchAlgorithmException, UnsupportedEncodingException {
          String enteredPassword = new String("Baltimore1,");
                String enteredPasswordBytes = new String();
                String enteredPasswordBytesMD5Hash = new String();
                String enteredPasswordBytesMD5HashBytes = new String();
          //Step 1 - get the bytes of Baltimore1,          
                for ( int i = 0; i < enteredPassword.length(); ++i ) {
                        char c = enteredPassword.charAt( i );
                        int j = (int) c;
                        enteredPasswordBytes = enteredPasswordBytes.concat(Integer.toString(j));                   
          System.out.println("1. Baltimore1, in plain text = " + enteredPassword);
                System.out.println("2. Baltimore1, in bytes = " + enteredPasswordBytes);
          //Step 2 - Get the MD5 Hash of the bytes
          enteredPasswordBytesMD5Hash = MD5(enteredPasswordBytes);     
          System.out.println("3. MD5 Hash of Baltimore1,'s bytes = " + enteredPasswordBytesMD5Hash);
          //Step 3 - Get the bytes of the MD5 Hash
          for ( int i = 0; i < enteredPasswordBytesMD5Hash.length(); ++i ) {
                        char c = enteredPasswordBytesMD5Hash.charAt( i );
                        int j = (int) c;
                        enteredPasswordBytesMD5HashBytes = enteredPasswordBytesMD5HashBytes.concat(Integer.toString(j));                   
          System.out.println("4. bytes of the MD5 Hash of Baltimore1,'s bytes = " + enteredPasswordBytesMD5Hash);
         public static String MD5(String text)
         throws NoSuchAlgorithmException, UnsupportedEncodingException  {
              MessageDigest md;
              md = MessageDigest.getInstance("MD5");
              byte[] md5hash = new byte[32];
              md.update(text.getBytes("iso-8859-1"), 0, text.length());
              md5hash = md.digest();
              //return convertToHex(md5hash);
              return md5hash.toString();
         }      And here is the output of the above program.
    1. Baltimore1, in plain text = Baltimore1,
    2. Baltimore1, in bytes = 66971081161051091111141014944
    3. MD5 Hash of Baltimore1,'s bytes = [B@923e30
    4. bytes of the MD5 Hash of Baltimore1,'s bytes = 9166645750511015148As you can see, the output of line 1 is correct. The bytes are exactly as described in the example. I was expecting the output on line 4 to be 223 238 161 24 62 121 39 143 115 167 51 163 245 231 226 94 as shown in the example. Does anyone know what i am doing wrong?
    Edited by: ziggy on Jul 4, 2008 1:14 PM
    Edited by: ziggy on Jul 4, 2008 1:14 PM

    Thanks guys for your help. I followed some of your advice and changed the code as shown below as an example.
    It looks like im almost there but not quite yet.
    import java.security.*;
    public class Pkcs12{
         public static void main(String[] args){
              //String to be converted
                  String originalString = "Baltimore1,";
              byte[] originalStringInBytes = new byte[8];
              byte[] md5 = null;
              originalStringInBytes = originalString.getBytes();
              System.out.println("1. OriginalString= " + originalString);                   
              System.out.println("2. OriginalStringInBytes= " + originalStringInBytes);
              for (int i=0; i<=originalStringInBytes.length-1; i++){
                   System.out.print("["+(int )(originalStringInBytes[i] )+"] ");
              try{
                   md5 = MD5(originalStringInBytes);
              }catch(NoSuchAlgorithmException e){
              System.out.println();
              for (int i=0; i<md5.length-1; i++){
                   System.out.print("["+((int)md5)+"] ");
         //223 238 161 24 62 121 39 143 115 167 51 163 245 231 226 94
         public static byte[] MD5(byte[] bytes) throws NoSuchAlgorithmException{
              MessageDigest md;
              md = MessageDigest.getInstance("MD5");
              byte[] md5hash = new byte[32];
              md.update(bytes);
              md5hash = md.digest();
              return md5hash;
    And here is the output from the above program
    1. OriginalString= Baltimore1,
    2. OriginalStringInBytes= [B@3e25a5
    [66] [97] [108] [116] [105] [109] [111] [114] [101] [49] [44]
    [-33] [-18] [-95] [24] [62] [121] [39] [-113] [115] [-89] [51] [-93] [-11] [-25]
    [-30]
    The bytes shown in line 3 are corect.
    The bytes shown in line 4 are partially correct in that the positive numbers are correct. Im not sure why the others have come out as negative numbers. Whats interesting is that when i add 256 to the negative numbers the answer becomes correct. Why does this happen? Have i used a variable that is the wrong size?
    Edited by: ziggy on Jul 5, 2008 12:32 PM
    Edited by: ziggy on Jul 5, 2008 12:33 PM
    Edited by: ziggy on Jul 5, 2008 12:34 PM

  • Okay - what am I doing wrong here RE:  ACR 5.6

    Hello all:
    Just downloaded ACR 5.6 and the Lightroom 2.6 update.  I have Elements versions 7 and 8.  After downloading ACR, I first went into the plug-in folders (file formats) of both Elements 7 and 8 and deleted the Camera RAW plug-ins.  Not a problem there.
    However, after unzipping the new ACR 5.6 plug-in and copying and pasting the new plug-in into the Elements 7 and 8 (file formats), when processing a RAW file, the ACR window that comes up within those two programs now shows "version 5.5."  At first I thought it was just a mistake in numbering on Adobe's part - meaning it was really 5.6, but mistakenly numbered 5.5.
    But when I tried to decode some RAW files from the supposed new camera data base (i.e. Olympus EP-2), none could be recognized, indicating that it was indeed version 5.5.
    Just to be safe, I deleted the plug-ins and re-downloaded the ACR-5.6 updates on several occasions - and in the end, all wound up being version 5.5 (according to the window when it comes up in Elements).
    Looks like a mistake on your downloads page - or I'm doing something terribly wrong here.  Again, I downloaded the right ACR 5.6 plug-in, but it is showing up as version 5.5 once unzipped and opened within Elements (by the way, the previous ACR plug-in I had there was version 5.6 Beta).
    Can anybody help here?  I'm hoping it's a mistake on Adobe's part.  What could I be doing wrong here?
    Lightroom 2.6 went just fine and it decodes all of the latest RAW files (i.e. Olympus EP-2).  My email address is:  [email protected]
    Thanks....

    Quote:-
    "I first went into the plug-in folders (file formats) of both Elements 7 and 8 and deleted the Camera RAW plug-ins."
    Although you did that it sounds like there is still an ACR 5.5 in the path. Have you got another, possibly renamed, ACR 5.5 anywhere? What does Edit > About Plugins > Camera RAW say? Does it happen in both Elements 7 and 8.
    Have you followed the instruction in the following link carefully?
    http://kb2.adobe.com/cps/407/kb407110.html

  • Reflections: What am I doing wrong here?

    Given the object:
    public class TestObject
         public Object[] oArray;
         public int[] iArray;
    }and the code
    TestObject to = new TestObject();
    Field objectArrayField = to.getClass().getField("oArray");
    Object oArray = Array.newInstance(objectArrayField.getType(), 0);
    objectArrayField.set(to, oArray);
    Field intArrayField = to.getClass().getField("iArray");
    Object iArray = Array.newInstance(intArrayField.getType(), 0); // <-- Exception on this line
    intArrayField.set(to, iArray);I am getting the following exception:
    java.lang.IllegalArgumentException
         at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source)
         at java.lang.reflect.Field.set(Unknown Source)
         at com.efw.cp.ObjectParser.main(ObjectParser.java:151)For the life of me, I can't see what I am doing wrong. This always fails whether the int[] array is defined to an array or defined to be null.
    Any ideas?

    You quite surely want to access the field's component type, not the field's type:
    - objectArrayField.getType() returns the class for an array of Object
    - intArrayField.getType() returns the class for an array of int
    You surely want:
    - objectArrayField.getType() returns the class for Object
    - intArrayField.getType().getComponentType() returning the class for int

  • I can't make a phone call from my iPad. But, I can receive phone calls. What am I doing wrong?i can reci

    I am able to receive phone calls on my iPad air 2. But, I can not make any phone calls. I am using an iPhone 6. I have set up both as required. What am I overlooking?

    Hi Bo S.,
    Welcome to the Apple Support Communities!
    I understand that you cannot make an outgoing call using your iPad. Included below are the instructions for using Continuity to make calls from your iPad. If you are set up correctly and still are unable to make a call after following the information in the article, please let me know at what point in the process the failure happens and what happens at that point. 
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support
    Cheers,
    Joe

  • Can anyone please tell me what i'm doing wrong?

    I'm new to java
    Please can anyone help me to solve this problem.
    I'm using win2k.
    jdk1.3.1_01 and apache tomcat 4.0
    i can compile but i can't execute any code.
    when i try to compile servlet code i get the httpservletpackage does not exist.
    regular java code compiles just fine.
    The error message below i get whever i try to execute any code.
    ------- java ----------
    java.lang.NoClassDefFoundError: Comparison
    Exception in thread "main" Normal Termination
    Output completed (1 sec consumed).
    This is my CLASSPATH: c:\javax\;c:\unzipped\servlet-2_3-fcs-classfiles\;c:\java;c:\jdk1.3.1_01\server.jar;c:\Apache Tomcat\lib\servlet.jar
    My PATH is: c:Apache Tomcat 4.0\common\lib;c:\jdk1.3.1_01\bin;
    JAVA_HOME c:\jdk1.3.1_01
    TOMCAT_HOME c:\Apache Tomcat 4.0

    From:Julesh1
    To: J.jenko
    Thanks for the questions, let me try to clear it up for you.When i try to excecute any java code
    servlet and other wise i get the error below.
    ------- java ----------
    java.lang.NoClassDefFoundError: Comparison
    Exception in thread "main" Normal Termination
    Output completed (1 sec consumed).
    This is my CLASSPATH: c:\javax\;c:\unzipped\servlet-2_3-fcs-classfiles\;c:\java;c:\jdk1.3.1_01\server.jar;c:\Apache Tomcat\lib\servlet.jar
    My PATH is: c:Apache Tomcat 4.0\common\lib;c:\jdk1.3.1_01\bin;
    JAVA_HOME c:\jdk1.3.1_01
    TOMCAT_HOME c:\Apache Tomcat 4.0
    I have tomcat 4.0. and when i try to start tomcat i get this error message:
    A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL relocation t
    arget' has occurred in :
    'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method.
    Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg

  • I can't seem to copy & paste while I am using Firefox; but I can with Internet Explorer. What am I doing wrong? I guess I just don't understand how to do it.

    I am working in Ancestry.com. If I am in Internet Explorer, I can copy a picture & then paste it in my pictures, on my computer. If I am using Firefox, I don't understand which things to do to copy & then paste a picture, like I can in Internet Explorer. I prefer to use Firefox, but need to be able to use this copy & paste feature, often. I just downloaded Firefox, & started using it, again, yesterday. I just got a new computer in June.

    When you run out of keyboard short cuts, enter the addtional names in the name field in the keyword editor. That will start a new Keyword Collection. You can apply the addtional keywords to multiple cllips on the event browser. Or you can drag the clips into the Collection in the Event Library.
    Russ

Maybe you are looking for

  • User can't see items to add to worksheet

    Hello! I have a problem with some user who does not see any items from business area when trying to create workbook in Discoverer Dekstop. Environment: OD:XP Prof SP2 DB: Oracle XE 10.2.0.1.0 Production Desktop Clinet 10.1.2.48.18 EUL Library 10.1.2.

  • Itunes closes when i try to sync my ipod 4

    itunes closes when i   try to sync my ipod it says it has encountered a problem and needs to close help

  • How do i install windows 8 on my 2012 imac that doesn't have an optical drive?

    i know i could just buy an external optical drive, but i don't really want to at this point. if i have to i will. i read that i can use another computer that does have an optical drive and move the windows 8 information to a thumbdrive, then use the

  • Strange Error In Windows, Preventing AI CS3 From Opening!!!!!

    The following Windows error is something i've been getting on only one computer, just in the past month. Other computers do not experience this problem. i have uninstalled and reinstalled to no avail. Please advise if you have any experience with a s

  • My Macbook was getting hot, and I think I know why.

    I have a week 22 build and it usually runs anywhere from 40-53C, but yesterday it was running in the 60-75c. I started to get a little worried that maybe my computer was taking a turn for the worst. I noticed that even when I was running just a few p