Updating 2 distinct regions with "for i in 1..htmldb_application.g_f01.coun

I have 2 different queried regions (PL/SQL Function returning Query). I want to use one SAVE button to save all values in both regions. One is a student's SAT scores, the other is their ACT scores. They reference 2 distinct tables, sat and act.
The problem seems to be that the regions share the f01, etc. identifiers. I tried to get around this by making f01 indicate which test it is, ie. which table to update.
I'm using the "for i in 1..htmldb_application.g_f01.count loop" construct. It works fine when only 1 of the regions has records. But when they both have rows i get this error: ORA-01403: no data found... apparently not retrieving the records? Here is my process code, which is executed when the SAVE button is pressed:
-- There are 2 regions, SAT and ACT. Since they share form identifiers
-- (f02, etc.) the Test Type was needed to distinguish which table to insert
-- the values into, sat or act.
-- SAT
-- f01 = Test Type ( = SAT )
-- f02 = permnum
-- f03 = SAT admindate
-- f04 = SAT testsite
-- f05 = SAT math
-- f06 = SAT verbal
-- f07 = SAT composite
-- ACT
-- f01 = Test Type ( = ACT )
-- f02 = ACT permnum
-- f03 = ACT admindate
-- f04 = ACT testsite
-- f05 = ACT math
-- f06 = ACT english
-- f07 = ACT reading
-- f08 = ACT science
-- f09 = ACT composite
begin
for i in 1..htmldb_application.g_f01.count
loop
if htmldb_application.g_f01(i) = 'SAT' then
update sat
set testsite = htmldb_application.g_f04(i),
math = replace(htmldb_application.g_f05(i), '', NULL),
verbal = replace(htmldb_application.g_f06(i), '', NULL),
composite = replace(htmldb_application.g_f07(i), '', NULL)
where permnum = :GLOBAL_PERMNUM
and to_char(admindate, 'DD-MON-YYYY') = htmldb_application.g_f03(i);
end if;
if htmldb_application.g_f01(i) = 'ACT' then
update act
set testsite = htmldb_application.g_f04(i),
math = replace(htmldb_application.g_f05(i), '', NULL),
english = replace(htmldb_application.g_f06(i), '', NULL),
reading = replace(htmldb_application.g_f07(i), '', NULL),
science = replace(htmldb_application.g_f08(i), '', NULL),
composite = replace(htmldb_application.g_f09(i), '', NULL)
where permnum = :GLOBAL_PERMNUM
and to_char(admindate, 'DD-MON-YYYY') = htmldb_application.g_f03(i);
end if;
end loop;
end;

Ok i broke them out into 2 separate processes, with a Save button in each region "SAVE_SAT" and "SAVE_ACT". Like this:
// | PROCESS: Save Changes to SATs |
-- There are 2 regions, SAT and ACT. Since they share form identifiers
-- (f02, etc.) the Test Type was needed to distinguish which table to insert
-- the values into, sat or act.
-- SAT
-- f01 = Test Type ( = SAT )
-- f02 = permnum
-- f03 = SAT admindate
-- f04 = SAT testsite
-- f05 = SAT math
-- f06 = SAT verbal
-- f07 = SAT composite
begin
for i in 1..htmldb_application.g_f01.count
loop
if htmldb_application.g_f01(i) = 'SAT' then
update sat
set testsite = htmldb_application.g_f04(i),
math = replace(htmldb_application.g_f05(i), '', NULL),
verbal = replace(htmldb_application.g_f06(i), '', NULL),
composite = replace(htmldb_application.g_f07(i), '', NULL)
where permnum = :GLOBAL_PERMNUM
and to_char(admindate, 'DD-MON-YYYY') = htmldb_application.g_f03(i);
end if;
end loop;
end;
// | PROCESS: Save Changes to ACTs |
-- ACT
-- f01 = Test Type ( = ACT )
-- f02 = ACT permnum
-- f03 = ACT admindate
-- f04 = ACT testsite
-- f05 = ACT math
-- f06 = ACT english
-- f07 = ACT reading
-- f08 = ACT science
-- f09 = ACT composite
begin
for i in 1..htmldb_application.g_f01.count
loop
if htmldb_application.g_f01(i) = 'ACT' then
update act
set testsite = htmldb_application.g_f04(i),
math = replace(htmldb_application.g_f05(i), '', NULL),
english = replace(htmldb_application.g_f06(i), '', NULL),
reading = replace(htmldb_application.g_f07(i), '', NULL),
science = replace(htmldb_application.g_f08(i), '', NULL),
composite = replace(htmldb_application.g_f09(i), '', NULL)
where permnum = :GLOBAL_PERMNUM
and to_char(admindate, 'DD-MON-YYYY') = htmldb_application.g_f03(i);
end if;
end loop;
end;
Now, i can save SAT information (for that region), but i get this error when i try to save changes to the ACT region:
ORA-01403: no data found
?

Similar Messages

  • Editable region with ecommerce

    Can client without dreamweaver update content in an editable region containing Paypal ecommerce buttons?
    My client wants to be able to update region with seasonal item photo and add to cart button.

    <!-- InstanceBeginEditable name="tracking" --><!-- InstanceEndEditable -->
    We need to update this empty region with content across 300+ pages, but the basic Find & Replace will not do the trick, as this is a locked region within the child page and therefore -- I believe -- is not 'findable'. Aside from manually updating each page with the tracking pixel (groan!), is there an Ace up anyone's sleeve to help me expedite this task?
    Help me understand what you are trying to do, please. The region you show above and are wanting to populate (as I understand it) is not a locked region. It would be completely editable in both template and child pages. However, if what you want is to make changes to a NON-EDITABLE region, you could do that several ways:
    1. Use a server-side include to carry the desired content into the non-editable region. The link to the include would be in the non-editable part of the template, but the include file is still editable.
    2. Use a DW Library item in the exact same way.
    3. Add the desired content in a PHP block at the top of the page, and then just echo it where desired.
    The advantage of method 1 is that you edit one file and upload it, and all 300 pages are changed at the server level. The advantage of method 2 is that you edit one library file, and all pages will also be changed, but then you must upload all 300 pages subsequent to that change. The advantage of method 3 is that it, too, is simple both to implement and to Find/Replace when needed, but again, all changed pages need to be uploaded.

  • Multi update region with 5 checkboxes - problem in updating

    Hi,
    I have a multi update region with more 5 checkboxes which 2 tables LO & SCLO. LO ID is the unique id for each row.
    1st checkbox - If we select 1st checkbox, I am adding a record to SCLO with LO ID.
    2nd Checkbox - yes/no attribute in SCLO table.
    3rd - 5th checkboxes - T/F attributes in LO table.
    Everything is working well if there is LO ID, because I will have a hidden item for LO ID and process where I am only updating LO and adding SCLO.
    When I add a new LO, the trouble occurs for updating 3rd - 5th ck boxes because there will be null value for all the columns in the row.
    What I did is, I first insert LO and gets LO ID from OUT parameter, sets 3rd - 5th ckboxs as null. Then get the out parameter (LO ID) and tried to update again the LO table which is causing some problem and the code, loops are getting very tricky.
    Is there any easy way to handle this?

    Try waiting, a lot of people are also interested in updating to iOS 5.1 so it's probably server related.
    Hope I helped,
    Simmm

  • Updating country and regional maps with Nokia Suit...

    Hi Folks
    I am an E72 owner and a frequent user of Nokia Maps. Hence I use Nokia Suite to keep the map data up to date, time to time.
    I normally download all countries by right-clicking the ALL item and choosing 'download all'. I thought I could download all available maps this way. But when all downloads are finished, I still can see some regional maps are NOT downloaded as the 'download' button is available for the regions.
    Initially, I thought the regional maps of a country were NOT necessary if their country map has been downloaded simply because the country map should cover its all regions (comparing the map size of a country and its regions, and the regional maps were not automatically downloaded by default)
    But it seems not that ture, at least for the latest map data v0.1.29.100.
    As shown in the attached screenshot, for some countries, e.g.China, France, India, Italy, Spain and USA, some regional maps were automatically downloaded though most regional maps remain undownloaded (the 'download' button is available).
    Why? Only those regional maps have been updated?
    Do I really need to download ALL regional maps to keep all data up to date?
    FYI
    Model: E72-1
    Type: RM-530
    Software Version: 091.004
    Software Version Date: 02-Jun-2012
    Custom Version: 091.004.C00.01
    Nokia Maps v3.04 10wk32 b04 MW OpenGL L MN
    Map version 0.1.29.100
    Nokia Suite 3.7.22
    Any comments please?
    Regards,
    bbao
    bbao
    * If this post helped you, please click the white Kudo star.
    * If this post has solved your issue, please click Accept as Solution.
    Attachments:
    Scr000078.jpg ‏44 KB
    Nokia_Suite.Maps_1.jpg ‏150 KB
    Nokia_Suite.Maps_2.jpg ‏156 KB

    bbao wrote:
    Thanks so much for effort farby and scoobyman.
    It is interesting that the World Maps of scoobyman's E52 does not show any regional maps of China. The regional map of Heilongjiang will not appear in scoobyman's Nokia Suite, as there is no triangle symbol before 'China' indicating no regional maps for China at all. That definitely looks like the same thing that I saw on my E72 before updating to 00.01.29.100 map data.
    First, scoobyman 's post has created confusion as he has not checked the same way as OP has done. He has checked selecting Maps and Voice Guidance on Phone at the bottom and not by selecting All under Maps at the top. If you see both attachments posted by me you can see the difference how they are displayed. 
    bbao wrote:
    Yes, farby's India map with Nokia 5800xm seems having totally different map data. e.g. India map: 532 MB vs 372 MB, and Delhi map: 51 MB vs 33.7 MB.
    BTW, it notice that you both are using a new version of Nokia Suite 3.8.13 Beta. Not sure if it could make any difference.
    Whether Maps version is same or different is not the point. Even if the Maps version is different in both the cases it is being displayed the SAME way as OP ..only difference being the sizes of the data files ...

  • How do I update my ipod touch with my  new email address for my  itunes account?

    How do I update my ipod touch with my new email address for my itunes account?  I recently changed my email address and updated it on my itunes account but now my ipod keeps asking me for the password associated with my old email address.

    I did this and I still get a error message about either the
    password or the email account is incorrect!

  • HT4623 Please  help!  i have just update my iphone 4s with 7.4 update and my phone is now asking for a password which i dont have.  I have tried my keypad lock i used before the update and also my itunes password and neither work, how do i rectify this ??

    Please  help!  i have just update my iphone 4s with 7.4 update and my phone is now asking for a password which i dont have.  I have tried my keypad lock i used before the update and also my itunes password and neither work, how do i rectify this ???

    Did you buy this iPhone new from an authorized seller?

  • I have just updated my iPhone 4 with latest IOS 7 and now wi fi greyed out and Bluetooth not working. Tried reset, restore everything - no use. Its out of warranty too. I refuse to pay for a new phone when clearly this is an apple issue not phone issue.

    Can anyone help? I updated my iPhone 4 with latest iOS 7 and now wi fi is greyed out, Bluetooth won't work and tbh am so angry! Phone now out of warranty so apple won't help without it costing me. Don't want to pay as its an apple problem not phone problem. It worked ok before. Tried everything, even clearing it down. Can't even back it up now unless I connect to a pc!

    I have not had wifi since November when I upgraded to the newest IOS version.  I called the Apple help line and they told me some things to do and I tried them all and they worked for a few hours and then wifi shut off again.  I kept doing what they told me and it worked for a couple more days and then I could never turn it on again.  My blue tooth doesn't work either.  I had to actually increase my data usage with AT&T becuase of this.  When I did that in December I went to the Apple store and was told that it is a hardware issue and since my phone is out of warranty I would have to pay for a new phone because they could not fix the issue.  My upgrade isn't up until June 2014 so not only do I have to wait for the upgrade and I am not paying for a new phone but I have to pay $10 plus extra a month on my cell phone bill because I was going over on my Data!!!  I have been beyond upset about this and Apple is not doing anything about this nor did they offer up some way to resolve the issue because obviously it is not just some rare incident if several people are having this issue.  Who knows how many people out there have had this issue and have not said anything about it.  Now there is a newer update that I can't do because it requires wifi in order to download.
    June can not get here fast enough and I may not go back to Iphone after dealing with this for so long with no help from Apple.

  • After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks

    After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks

    There are numerous reports of this issue happening on iPhones. It may be a glitch that will need a new update. Some find that a full shut-down and restart fixes that problem, but not always.

  • HT4623 I have updated my iphone 5 with IOS7. Now there is an update 7.0.2 on my cell and the size of update file is showing around 21.0 MB. I tried to update it ITunes but it seems it is downloading the entire IOS. Is there any separate update for the sam

    I have updated my iphone 5 with IOS7. Now there is an update 7.0.2 on my cell and the size of update file is showing around 21.0 MB. I tried to update it ITunes but it seems it is downloading the entire IOS. Is there any separate update for the same or I have to download the entire IOS again?

    Well when you download the update with iTunes it will always download the whole new version (in your case 7.0.2) even if its just an bug fix. If you already have 7.0 download the update over-the-air.
    You already wrote that the update is only 21 MB, so its not the whole firmware package of 7.0.2 you get with iTunes.

  • I have 2 point security for AppleID. My iPhone 4S is listed as my trusted phone to text. No tel. no. is given. I am updating to iPhone 6Plus with same tel. no. Do I need to change anything for the sign in verification?

    I have 2 point security for AppleID. My iPhone 4S is listed as my trusted phone to text. No tel. no. is given. I am updating to iPhone 6Plus with same tel. no. Do I need to change anything for the sign in verification?

    Of course You can also add your iPhone telephone # as a trusted device.
    This way when you insert your SIM card into any phone, Apple will automatically recognize your cell phone # as a
    trusted device (may be handy if iphone breaks but you insert SIM card into another phone).
    HOWEVER:
    Having also your iPhone as a trusted device, is convenient if you travel and use a different SIM card
    at destination. This way you can still use the iphone for verification, even though you are using a different
    phone #.
    Regards

  • I purchased Lightroom on my old Macbook but recently updated to a Mac with Retina display for editing my photos. I don't want to purchase Lightroom again and want to keep my catalog I have been using. Is there a way to access it on my new computer?

    I purchased Lightroom on my old Macbook but recently updated to a Mac with Retina display. How do I access Lightroom on my new computer without purchasing it again?

    If you created a new Apple ID, you have to purchase the app again. If you can still use the old ID, then you can download it again for free by using that ID. But you will run the risk of locking yourself out of your new Apple ID for 90 days by downloading the app with your old ID and associating the iPad with the old ID.
    Is the risk of locking yourself out of your new Apple ID worth not having to pay $.99 again for an app?

  • HT5815 im searching a for a update there makes it possible for mac computer with OS X To play games there aren't Supported for power pc, Like Warcraft 3, Diablo 2 and those kind of old games there worked on the previous versions of the OS

    im searching a for a update there makes it possible for mac computer with OS X To play games there aren't Supported for power pc, Like Warcraft 3, Diablo 2 and those kind of old games there worked on the previous versions of the OS

    Here is a thread for you: Is there any possible way to run PPC...: Apple Support Communities

  • Cursor with for update clause problem

    Hi all,
    We are having this problem with Oracle 8.1.7 where in we have a cursor with for update clause. The PL/SQL script used to work fine with Oracle 8.0.5 but is causing problems with Oracle 8.1.7. What the script is ending up doing in 8.1.7 is that it updates only one record instead of updating close to 60000 which it used to do in Oracle 8.0.5
    The script just hangs after updating one record. We have replicated the same problem.
    Has anyone seen this error before and attained resolution?
    Thanks

    Hello ,
    I have found the same / very close to the same problem. I tried the code below in Oracle 10.2.0.1 and got the following error after the first loop.
    ORA-01002: fetch out of sequence
    ORA-06512: at "DEMO_TEST_RESEARCH_PKG", line 18
    ORA-06512: at line 7
    After trying to debug it , i thought i would try it in Oracle 9.0.2.0.7.0 , and to my suprise it worked fine.
    Am i missing something ? Thanks in advance , ...
    I have included the code i was running ...
    PROCEDURE WhereCurrentOf(Param1 IN NUMBER) IS
    v_title_eng ISSUES.TITLE_ENG%TYPE;
    v_issue_id ISSUES.ISSUE_ID%TYPE;
    CURSOR issues_cur
    IS
    SELECT issue_id,title_eng
    FROM issues
    WHERE title_eng IS NULL
    FOR UPDATE OF title_eng;
    BEGIN
    FOR i IN issues_cur
    LOOP
    FETCH issues_cur INTO v_issue_id,v_title_eng;
    EXIT WHEN issues_cur%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(v_issue_id||' This was the english title before : '||v_title_eng);
    v_title_eng := 'This is my title';
    UPDATE issues
    SET title_eng = v_title_eng
    WHERE CURRENT OF issues_cur;
    DBMS_OUTPUT.PUT_LINE(v_issue_id||' This is the english title after : '||v_title_eng);
    END LOOP;
    END WhereCurrentOf;

  • I updated my payment option details for app store and was charged with Rs. 60 twice. why did that happen?

    i changed my app store from canada to india and for that i'd to update my payment option details for app store and was charged with Rs. 60 twice. once the day i added the card details. and then another one 3 days later. why did that happen?
    i read soemwhere that it automatically gets credited back within 3-5 working days.
    waited for more than 7 days but no credit was given back.
    m feeling bad that i got charged without making any purchase.

    Each time that you add or change the card details on your account (and possibly also if you change your name and address, as the card needs to be registered to the same name and address as on your iTunes account) you will be charged a temporary store holding charge to check that the card details are valid and that the card is active, but it should disappear within a few days or so (the amount of time that it takes will vary by card issuer) : store holding charge.
    Give it a few more days, and if it still hasn't disappeared then try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • [svn:osmf:] 15867: asdocs: Update to accomodate generating OSMF for Flex 4. 0 asdocs from OSMF 1.0 source with as few changes as possible.

    Revision: 15867
    Revision: 15867
    Author:   [email protected]
    Date:     2010-05-02 19:36:51 -0700 (Sun, 02 May 2010)
    Log Message:
    asdocs: Update to accomodate generating OSMF for Flex 4.0 asdocs from OSMF 1.0 source with as few changes as possible.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/display/ScaleMode.as

    bringrags wrote:
    We do indeed recommend replacing the osmf.swc from a Flex 4 project if you're going to use OSMF in Flex 4, but you may (will?) run into issues if you attempt to use Flex's VideoPlayer within that project.  Note also that you'll need to replace osmf.swc for each individual project (or edit your flex-config.xml file to point to the updated SWC).
    In terms of future plans, we are working closely with the Flex team to ensure that their next release ships with the latest OSMF version.  No ETA on that though.
    I have followed the recommendations and removed the old version of swc and replaced it with the release version. And so far the video and audio players work fine without errors.
    But looking at the flex-config.xml I see that it still points to the old version.
    <!-- OSMF SWC -->
        <runtime-shared-library-path>
    <path-element>libs/osmf.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.14159/osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url></policy-file-url>
    </runtime-shared-library-path>
    Could you elaborate a little bit more on editing this part of flex-config.xml?
    Thanks,
    FTQuest

Maybe you are looking for

  • MR11-GR/IR Balances

    Hi, Inorder to  clear GR/IR  balances we normally use MR11. MR11 posts to the purchase price variance accounts .  Is there any possibility to change this account? Thanks

  • How to use internet and airport express at same time?

    I have my airport express set up in a room with my stereo.  I can stream from computer and iTunes music library fine.  My internet net gear modem is in another room connected to the phone line.  My computer is an another room again.  All devices can

  • Making an online IDE for BASIC learning website

    Hello, I am going to make an online learning website for BASIC which has similar user interface like Dreamweaver, i.e. design view (flow chart) and code view (BASIC code) side by side. Is Flex suitalbe for me ? Furthermore, can Flex save some data fi

  • AppStore submission Issue

    Hello There, I exported a release build package for appstore distribution using my provisioning file. When i try to upload my ipa, i get this error: "There is no dwarfdump executable defined" I tried to unzip then rezip the xxx.app folder with no suc

  • How do I specify time of day as a smart collection criteria?

    This seems like an unlikely omission but I cannot find it in the criteria list.  "Date" only appears to deal with date, and that is where I would expect to find a capture time criteria.  I have a need to separate two events in one day by their time o