Error!! Help... thanks.....

Halo, i am doing a JSP program with Java script. Here i am facing some problems to passing the value for checking purposes.
Basically, i want to retrieve value from database and pass to JS function to check whether have any "empty value" or not. If got "empty value" then will call user to enter any value to that fields.
Problems:
1. i can't print out all the value after pass to the JS function.(i am using document.writeln(value);
2. Error show document.all.txttodate.value is null or not object.
3. i am able to print out the 1st field of 1st records, the rest can't print out.
So, what i need to change in my coding??
Here is my coding...
notes:
1. the value show using <input type="text field" is correct.
2. i am using for loop in the JS function for checking if more than 1 record..
JSP Program
String sql_query3 = "SELECT mry_fr_dte,mry_to_dte,mry_bud_qty,mry_bud_amt,mry_rate "+
               " FROM mrbudf  "+
               " WHERE mry_item_num= '"+itemcode+"' "+
                "GROUP BY mry_fr_dte,mry_to_dte "+
                        "ORDER BY mry_fr_dte ";
          try {
                getAllDetail2=db.execSQL(sql_query3);
          catch(Exception e){
               System.out.println("Error :"+e);
while(getAllDetail2.next()){
      mry_fr_dte=getAllDetail2.getDate("mry_fr_dte");
      mry_to_dte=getAllDetail2.getDate("mry_to_dte");
     String mry_bud_qty =getAllDetail2.getString("mry_bud_qty");
     String mry_bud_amt =getAllDetail2.getString("mry_bud_amt");
      String mry_rate =getAllDetail2.getString("mry_rate");
      //String date_mry_fr_dte =datefromat.format(mry_fr_dte);
     // String date_mry_to_dte =datefromat.format(mry_to_dte);
     %>
  <tbody>
     <tr>
          <td width = "3%" align = "center"> <%=i%></td>
          <td align="center" width = "17%">
      <input type="text" name="txtfromdate<%=i%>" value="<%=datefromat.format(mry_fr_dte)%>" maxlength = "10" style="width:100%;text-align:center;"   >
               <input type="hidden" name="temp_txtfromdate<%=i%>" value="<%=datefromat.format(mry_fr_dte)%>">
    </td>
    <td align="center" width = "13%">
      <input type="text" name="txttodate<%=i%>" value="<%=datefromat.format(mry_to_dte)%>" maxlength = "10" style="width:100%;text-align:center;"  >
               <input type="hidden" name="temp_txttodate<%=i%>" value="<%=datefromat.format(mry_to_dte)%>">
    </td>
          <td align="center" width = "15%">
               <input type="text" name="rate<%=i%>" value="<%=mry_rate%>" style="width:100%;text-align:right;"  >
               <input type="hidden" name="temp_rate<%=i%>" value="<%=mry_rate%>">
    </td>
    <td align="center" width = "15%">
      <input type="text" name="quantity<%=i%>" value="<%=mry_bud_qty%>" style="width:100%;text-align:right;" >
               <input type="hidden" name="temp_quantity<%=i%>" value="<%=mry_bud_qty%>">
    </td>
          <td width = "15%" align ="center">
     <input type="text" name="amount<%=i%>" value= "<%=mry_bud_amt%>" style="width:100%;text-align:right;" >
          <input type="hidden" name="temp_amount<%=i%>" value="<%=mry_bud_amt%>">
    </td>
</tr>     
  </tbody>
  <%i++;
     }//end while(getAllDetail2.next()
<input type="hidden" name ="curTotalRec" value="<%=i%>">
JS function ( when i call confirmation
function confirmationEdit(curTotalRec){
     window.event.returnValue=false;
var countNull =1;
var total=curTotalRec;
var total_rec=parseInt(eval("document.all.curTotalRec").value);// total retrieved records
//document.writeln("value:"+total_rec);
     for(var i=1;i<=total_rec;i++){
     document.writeln("txtfromdate :"+eval("document.mrbudf.txtfromdate"+i).value);
          document.writeln("txttodate :"+eval("document.mrbudf.txttodate"+i).value);
          document.writeln("rate :"+eval("document.mrbudf.rate"+i).value);
          document.writeln("quantity :"+eval("document.mrbudf.quantity"+i).value);
          document.writeln("amount :"+eval("document.mrbudf.amount"+i).value);
}A prompt reply will be appreciate.... thank you very much.......

Can you check something for me please, amir? Is your QuickTime Player currently failing to launch too? (Knowing whether it does or not can give us a heads up on what is causing the iTunes DEP.)

Similar Messages

  • My ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    my ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    Hey erinoneill24,
    Thanks for using Apple Support Communities.
    Sounds like you can't update your device. You don't mention an error that it gives you. Take a look at both of these articles to troubleshoot.
    iPod displays "Use iTunes to restore" message
    http://support.apple.com/kb/ts1441?viewlocale=it_it
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808?viewlocale=de_DE_1
    If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself.
    Have a nice day,
    Mario

  • HT1212 tried to restore my iPod, received this error code: 0xE8000065?!! please help thanks

    Tired to restore my iPod, but I received this error code: 0xE8000065
    Please help
    Thanks all

    iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting
    Unknown Error containing "0xE" when restoring
    To resolve this issue, follow the steps in iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting. If you have a Windows computer with an Intel® 5 series/3400 series chipset, you may need updates for your chipset drivers. See iTunes for Windows: Issues syncing iOS devices with P55 and related Intel Chipsets for more information.

  • Hey! so i was do a AHT on my macbook pro retina and their was a error 4SNS/1/40000001:1DOR-0.000 need help thanks!

    hey! so i was do a AHT on my macbook pro retina and their was a error 4SNS/1/40000001:1DOR-0.000 need help thanks!

    Welcome to Apple Support Communities
    It looks like you ran Apple Hardware Test without plugging the MacBook to the charger. It's normal to see an error if you run Apple Hardware Test without your Mac plugged.
    Plug the MacBook Pro to its charger and run Apple Hardware Test again

  • Mac os x Lion version 10.7.2 installed Gutenprint for my Epson Stylus Photo 1390. Every time I try to print I get the following error message: cgpdftoraster unsupported colorSpace. Any advice would be helpful thanks.

    Mac os x Lion version 10.7.2 installed Gutenprint for my Epson Stylus Photo 1390. Every time I try to print I get the following error message: cgpdftoraster unsupported colorSpace. Any advice would be helpful thanks.

    I don't think Lion installed it, rather you did. That said System Preferences>Print & Scan. select your Epson printer and then select Options & Supplies>Driver>Print Using>Select print Software. Then scroll down to the driver you want to use.

  • I am from South Africa an the itune store only allows the purchase of some music , whenever i try to buy Jesus Culture- Everything . an error message comes  "only availble in US " , PLEASE HELP .Thank you

    I am from South Africa and the itune store only allows the purchase of some music , whenever i try to buy Jesus Culture- Everything . an error message comes up  "only availble in US " , PLEASE HELP .Thank you

    I had the same issue this morning downloading a pre-order of Alanis, Flavors of Entanglement . I noticed that the only thing that had changed fro me was that I had some song credits for purchasing ticketmaster tickets over the past few weeks. When I went ahead and spent my remaining credits... it downloaded with no prompting or trouble. Maybe the credits issues hangs it up?

  • I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? Help - thank you

    I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? I read it MAY have something to do with am image it cannot load but I see them all loaded.  Help - thank you

    Could you share a link to the page?
    Seeing it in context and in our browsers is much easier to debug.
    If not, make sure to run the validator here The W3C Markup Validation Service and clear out any problems. HTML errors, especially structural ones, will cause all kinds of display problems in various browsers/versions/platforms.

  • Install on Solaris 9 x86 error - help

    when i run the ./setup error show up
    # ./setup
    ./setup: syntax error at line 1: `(' unexpected
    please help
    thank a lot

    not supported on solaris x86 yet. wait for upcomming news from sun on solaris x86 support for as7

  • Debug IP error help

    Gurus,
    Using Ciscoview to monitor our 3750 switch, I noticed high IP error counts. After connecting to the box and issuing the "debug ip error" command the following output was displayed:
    "datagramsize=92, IP 27444: s=192.168.1.100(Vlan1), d=192.168.1.255, totlen 78, fragment 0, fo 0, dispose udp.noport"
    The destination IP is the broadcast address of our subnet; Cisco documentation says that "the router received a UDP packet when no application was listening to the UDP port."
    I'm trying to figure out why so much udp traffic is destined towards the broadcast address, and what is causing the IP errors.
    Thanks for your help!
    Kevin

    UDP broadcasts are a normal solution to initiate connections between clients and servers. This should not nescessarily be an error but it could be a misbehaving application or something like a virus trying to spread.
    Your search should focus on the source of the datagrams:s=192.168.1.100(Vlan1) If you are getting these packets from many different hosts, try to figure out which apps they have in common.
    In that way, you should be able to find out wether it is caused by an application or a virus.
    Regards,
    Leo

  • Safari can't open a site-connection to server error-help,

    Hi, having problems opening one page. "Read", one page only. All other sites open fine. When I try to connect to this site I get the error:
    Safari can’t open the page “http://offres.neuf.fr/offres/internet/Nos-offres-ADSL.html?cmp=OF100” because it could not connect to the server “offres.neuf.fr”.
    I used to be able to open this page fine. I tried it on another computer, no problem, and a response in another very long link indicated "he" could open it fine. Anybody have an idea why this page is being so stubborn and giving me this error? Thanks. Hope to hear a fix.
    M

    What will happen if I empty the cache and clear the history in Safari?
    Will I lose all the info stored when I visit sites, and have to retype?
    NO, You will not lose your Autofill preferences ( found in Safari's Preferences/Auto fill tab ) they are not affected if you empty cache and clear history.
    "Reset Safari" would affect the user name & passwords stored in Autofill.
    ~•~
    Matthew, your welcome; ), is this the only site you can not access?
    Please try the site In another account. If you do not have another account please create a test account:
    Go to System Preferences/ Accounts/Login Options use the [+] to make one. you can later remove it with the [-] if you choose to.
    Login into that account can you access the site there?
    This helps to narrow down the problem, by showing us if it is a system wide issue or user name specific.
    Eme: )

  • I erased an iphone on find my iphone , so i wanted to know what happened and I erased my without a sim card and now I says I cant go on it until i put in a sim card. Did i ruin the phone please help thanks.

    I erased an iphone on find my iphone , so i wanted to know what happened and I erased my without a sim card and now I says I cant go on it until i put in a sim card. Did i ruin the phone please help thanks.

    You did not ruin the phone, you will need a sim card to activate the phone and then connect the phone to itunes and do a restore from back up.
    http://support.apple.com/kb/HT1414

  • Hello, I'm using the same apple id on my Ipad and Iphone, and anything i do and my ipad reflects on my iphone. if i download an app on my iphone it also downloads on my ipad. Can i stop this from happening. i need help. thank you.

    hello, I'm using the same apple id on my Ipad and Iphone, and anything i do and my ipad reflects on my iphone. if i download an app on my iphone it also downloads on my ipad. Can i stop this from happening. i need help. thank you.

    Yes, under the Settings for the store, you can turn off the auto download for purchases, that way if you purchase an app on another device it will not automatically download on that device.  You would need to do this on both your iPad and iPhone.

  • AirPlay not showing on iPad anywhere. I've tried ation and checked the control centre to no avail. The wifi networks are the same. Please help, thanks.

    AirPlay not showing on iPad anywhere. I've tried all of the rebooting functions and checked the control centre to no avail. The wifi networks are the same. Please help, thanks.

    To use AirPlay, you need the following:
    1. iPhone 4s (or later), iPad 2 (or later), iPad mini, or iPod touch (5th generation)
    2. Apple TV (2nd or 3rd generation)
    3. AirPort Express
    4. Wi-Fi (802.11a/g/n) network
    http://support.apple.com/kb/ht4437

  • Hi i have an ipad mini and i have not used it for 2 month or more. Today i have tried to use it i came across with a problem. my Ipad is blocked and it asks me to wait 23,401,418 :) what should i do need your help. thanks

    hi i have an ipad mini and i have not used it for 2 month or more. Today i have tried to use it i came across with a problem. my Ipad is blocked and it asks me to wait 23,401,418 what should i do need your help. thanks 

    Have you charged ipad Try a Reboot press & hold power button & menu button hold both down until you see Apple Logo You may need to do this more than once. Bsydd uk

  • I have an hp office jet 4500 and os maverick 10.9.4 and I can't get it to print after last upgrade, multiple malfunctions and error, help?

    I have an hp office jet 4500 and os maverick 10.9.4 and I can’t get it to print after last upgrade, multiple malfunctions and error, help? I have tried deleting and resetting printer and re-installing update 6 times. Last update attempt showed none available??? I can’t load the software directly from HP because their only option is to use the software update option on the mac....frustrated!!! Help!!
    I get blank pages that just run through the printer and a stats window that just 33% complete and goes no further.

    I am going on the guess that an old driver is still installed...
    Use Finder Go > go to folder, and go to /Library/Printers and delete the HP folder(s).
    Reset the Printing System:
    OS X Mavericks: Reset the printing system
    Now, Add the printer in Print & Scan prefs.

  • Hi, I'm unable to use my speaker when I'm using Mac OS. However, I'm able to do so for Windows 7 OS on Bootcamp. Can anyone please advise on how to rectify this problem? I would greatly appreciate your help, thank you.

    Hi, I'm unable to use my speaker when I'm using Mac OS, which means I'm unable to unmute, decrease or increase the volume. However, I'm able to do so for Windows 7 OS on Bootcamp. Can anyone please advise on how to rectify this problem? I would greatly appreciate your help, thank you.

    Hi Zac, sorry to hear about your troubles, but that's why us other users are here to try to help in these instances.
    Open Console in Utilities & see if there are any clues or repeating messages when this connection drop happens.

Maybe you are looking for

  • Adobe Acrobat 9 not including Updater when first installed?

    I install Acrobat 9 for specific client PCs in our domain. After installing, I run all updates until I get up to version 9.5.5. I run updates via Help > Check for Updates. As of today, I am getting an error that reads: "THERE ARE NO UPDATES AVAILABLE

  • Invalid path to MS-Word templates folder

    Hi all!!! I set in System Initialisation -> General Settings -> Path -> Microsoft Word Templates Folder: "C:\Program Files (x86)\SAP\SAP Business One\WordDocs\". When i click on the MS_WORD icon on a Sales Order i get the message "Invalid path to MS-

  • Light on wireless keyboard keeps flashing when trying to pair with ipad2

    When trying to pair my ipad2 to my wireless (bluetooth) keyboard, it will search from the ipad, but the light on the keyboard will jusk keep flashing, any help?

  • SQL Developer 1.5.1 's SQL worksheet. - Verifying Results

    Using SQL Developer 1.5.1 's SQL worksheet.... is there a way to get SQL Developer 1.5.1 's SQL Worksheet to display the number of records deleted, updated, etc? I just deleted a record and I couldn't tell if it actually ran or not. When I ran a 'sel

  • Saving a lock object

    hi every body, I am trying to creat a lock object in se11, but after i gave the respective primary and secondry table , when i am trying to save the lock object to the user defined package , it is saying that "ENQU E_LOCK" can not be assigned to pack