Trigger Loop help

Hi guys,
I have 3 (status='Yes') records in 'a_info' table. This trigger only insert 1st one into 'a_save' table not the 3 of them. How can we loop it to all 3 ?
Thanks
create or replace TRIGGER autorec_trg
BEFORE INSERT ON a_info
DECLARE
CURSOR cursor_rec IS
SELECT idnum, email FROM a_info WHERE (status = 'Yes');
rec cursor_rec%ROWTYPE;
BEGIN
OPEN cursor_rec;
LOOP
FETCH cursor_rec INTO rec;
IF ( cursor_rec%notfound ) THEN
EXIT WHEN cursor_rec%notfound;
END IF;
IF ( cursor_rec%found ) THEN
INSERT INTO a_save (idnum, email) VALUES (rec.idnum, rec.email);
EXIT WHEN cursor_rec%found;
END IF;
END LOOP;
CLOSE cursor_rec;
END;

Cursor loops are obsolete: TOTALLY OBSOLETE.
And even if they were not this would be an inappropriate use of one.
The syntax you should use is:
INSERT INTO a_save
SELECT ...
FROM a_info
WHERE ...;Never use PL/SQL to do what you can do with SQL.
I should also point out too that your business statement may be fatally flawed.
Suppose you insert records "A", "B", "C", "D", "A", "C".
What is going to happen?
First "A" copies what?
Second "A" copies what?
What will the third "A" copy?

Similar Messages

  • WHEN-VALIDATE-TRIGGER trigger looping so many times

    Hi,
    Below is the code written in WHEN-VALIDATE-TRIGGER trigger and after raise FORM-TRIGGER_FAILURE
    the process is not stopping and the trigger message looping without end when
    I tab to the next field or try to save the record. I am not sure why the flow did not stop
    after the raise FORM_TRIGGER_FAILURE exception and the trigger looping again and again.
    Please help me to know what is wrong in the code. This trigger written in ITEM level.
    declare
                     msg_type varchar2(3);
                  msg_text varchar2(2000);
                  continue       boolean;
                begin
                  if :pom1_b22.qty < 0 then
                    message_ppkg.get_msg_from_db('RET','04060',msg_type,msg_text);
                    message(msg_text || '.');
                    bell;
                    raise form_trigger_failure;
                  else
                    continue := TRUE;
                    if :pom1_b22.qty is not null and :pom1_b22a.b22_query = 'FALSE' then
                      if nvl(:pom1_b22.irt_created,'N') = 'Y' then
                        if :pom1_b22.qty <> :pom1_b22.save_qty and
                          :pom1_b22.save_qty is not null then                    
                          if check_order_status then
                            continue := TRUE;
                          else
                            continue := FALSE;
                             message_ppkg.get_msg_from_db('RET','04061',msg_type,msg_text);
                             message(msg_text);   
                            bell;
                            :pom1_b22.qty := :pom1_b22.save_qty;
                            raise form_trigger_failure;
                          end if;
                        end if;
                      end if;                
                      if continue then
                        if :pom1_b22.save_qty is null then
                          if :pom1_b22.qty > :pom1_b22a.total_qty then
                             message_ppkg.get_msg_from_db('RET','04057',msg_type,msg_text);
                             message(msg_text || to_char(:pom1_b22a.total_qty) || '.');   
                            bell;
                            raise form_trigger_failure;
                          end if;
                        else
                          if :pom1_b22.qty <> nvl(:pom1_b22.save_qty,0) then
                            if :pom1_b22.qty > :pom1_b22a.total_qty +
                                               (nvl(:pom1_b22.save_qty,0) -
                                                :pom1_b22.qty) then
                                                    message_ppkg.get_msg_from_db('RET','04056',msg_type,msg_text);
                             message(msg_text || to_char(:pom1_b22a.total_qty +
                                              (nvl(:pom1_b22.save_qty,0) -
                                               :pom1_b22.qty)));                 
                              bell;
                              raise form_trigger_failure;
                            end if;
                          end if;
                        end if;
                      end if;
                    end if;
                  end if;
                end;

    Your Raise form_Trigger_failure Condition is not met hence not stopping the rest trigger body.

  • Help with Trigger - looping through SELECT results

    How do I loop through a SELECT query within a Custom Trigger? I can
    execute the query fine, but the PHP mysql_xxx_xxx() functions don't
    appear to work inside a custom trigger. For example:
    This ends up empty:
    $totalRows_rsRecordset = mysql_num_rows($rsRecordset);
    While this returns the correct # of records:
    $totalRows_rsRecordset = $rsRecordset->recordCount();
    I need to loop through the records like I would with
    mysql_fetch_assoc(), but those mysql_xxx_xxx() don't seem to work.
    This works great outside a custom trigger, but fails inside a custom
    trigger:
    do {
    array_push($myArray,$row_Recordset['id_usr']);
    while ($row_Recordset= mysql_fetch_assoc($Recordset));
    What am I missing?
    Alec
    Adobe Community Expert

    Although the create trigger documentation does use the word "must", you are quite free to let the trigger fire during a refresh of the materialized view. Generally, you don't want the trigger to fire during a materialized view refresh-- in a multi-master replication environment, for example, you can easily end up with a situation where a change made in A gets replicated to B, the change fired by the trigger in B gets replicated back to A, the change made by the trigger in A gets replicated back to B, in an infinite loop that quickly brings both systems to their knees. But there is nothing that prevents you from letting it run assuming you are confident that you're not going to create any problems for yourself.
    You do need to be aware, however, that there is no guarantee that your trigger will fire only for new rows. For example, it is very likely that at some point in the future, you'll need to do a full refresh of the materialized view in which case all the rows will be deleted and re-inserted (thus causing your trigger to fire for every row). And if your materialized view does anything other than a simple "SELECT * FROM table@db_link", it is possible that an incremental refresh will update a row that actually didn't change because Oracle couldn't guarantee that the row would be unchanged.
    Justin

  • Error in Trigger - Pls Help~!

    Dear All
    I've written a Trigger but have encountered some error during compilation.
    Can someone help me out pls?
    This is some sample code that i have:
    declare
    dup_count2 char(4);
    begin
    when (p_order.ORD_STATUS = 5)
    if (dup_count2 <=0) then
    insert into partial_filled_trigger
              (TRADE_DT, REF_NO)
              VALUES (p_order.TRADE_DT, p_order.REF_NO)
                   ELSE
    UPDATE PARTIAL_FILLED_TRIGGER set
    TRADE_DT=p_order.TRADE_DT, REF_NO=p_order.REF_NO
              where REF_NO = p_order.REF_NO;     
                   END IF;
    END LOOP;
    COMMIT;
    END;      
    My error msg:
    "1 Error Text = OLS-00103: Encountered the symbol ..."
    it is referring to line 5 and 6 and 15 (hightlighted in bold)
    Kindly help~! Thank you.

    Please check the formatted code - i think will be easier to understand --
    CREATE OR REPLACE TRIGGER "ITRADESYS"."PARTIAL_FILLED_TRIGGER" AFTER INSERT OR
    UPDATE ON "ITRADESYS"."ORD_MST" FOR EACH ROW
    DECLARE dup_count2 CHAR(4);
    BEGIN
    WHEN(p_order.ord_status = 5) THEN
      IF(dup_count2 <= 0) THEN
        INSERT INTO partial_filled_trigger(trade_dt,  
                                           ref_no,  
                                           ord_no,  
                                           ord_seq_no,  
                                           cust_id,  
                                           acc_id,  
                                           cust_name,  
                                           ord_side,  
                                           xchg_id,  
                                           mkt_id,  
                                           symbol,  
                                           ord_pr,  
                                           stop_pr,  
                                           ord_qty,  
                                           filled_qty,  
                                           outstd_qty,  
                                           ord_type,  
                                           ord_term,  
                                           expiry_dt,  
                                           aon,  
                                           short_sell,  
                                           disposal_sale,  
                                           scrip,  
                                           odd_lot,  
                                           channel_id,  
                                           src_ref_no,  
                                           trader_id,  
                                           trader_tm,  
                                           terminal_id,  
                                           ams_id,  
                                           ams_tm,  
                                           approval_id,  
                                           approval_tm,  
                                           cancel_qty,  
                                           reduce_qty,  
                                           ord_status,  
                                           ACTION,  
                                           excpt_remark,  
                                           reason_code,  
                                           notify_flg,  
                                           notify_tm,  
                                           ord_task,  
                                           queue_tm,  
                                           ord_queued,  
                                           amend_from,  
                                           amend_to,  
                                           next_day,  
                                           group_id,  
                                           business_dt,  
                                           new_pr,  
                                           new_qty,  
                                           REMARK,
                                           BSK_FLG,
                                           BSK_PARENT,
                                           INDEX_CODE,
                                           AVG_FILLED_PR,
                                           OMNIBUSAC,
                                           CONTRA,
                                           SETT_TYPE,
                                           SETT_CCY,
                                           CHANNEL_REF_NO,
                                           DISCLOSED_QTY,
                                           MANUAL_TRADE,
                                           DIRECT_TRADE,
                                           COUNTERPARTY,
                                           ALERTFLG,ACKFLG)
          VALUES (p_order.TRADE_DT,
                  p_order.REF_NO,
                  p_order.ORD_NO,
                  p_order.ORD_SEQ_NO,
                  p_order.CUST_ID,
                  p_order.ACC_ID,
                  p_order.CUST_NAME,
                  p_order.ORD_SIDE,
                  p_order.XCHG_ID,
                  p_order.MKT_ID,
                  p_order.SYMBOL,
                  p_order.ORD_PR,
                  p_order.STOP_PR,
                  p_order.ORD_QTY,
                  p_order.FILLED_QTY,
                  p_order.OUTSTD_QTY,
                  p_order.ORD_TYPE,
                  p_order.ORD_TERM,
                  p_order.EXPIRY_DT,
                  p_order.AON,
                  p_order.SHORT_SELL,
                  p_order.DISPOSAL_SALE,
                  p_order.SCRIP,
                  p_order.ODD_LOT,
                  p_order.CHANNEL_ID,
                  p_order.SRC_REF_NO,
                  p_order.TRADER_ID,
                  p_order.TRADER_TM,
                  p_order.TERMINAL_ID,
                  p_order.AMS_ID,
                  p_order.AMS_TM,
                  p_order.APPROVAL_ID,
                  p_order.APPROVAL_TM,
                  p_order.CANCEL_QTY,
                  p_order.REDUCE_QTY,
                  p_order.ORD_STATUS,
                  p_order.ACTION,
                  p_order.EXCPT_REMARK,
                  p_order.REASON_CODE,
                  p_order.NOTIFY_FLG,
                  p_order.NOTIFY_TM,
                  p_order.ORD_TASK,
                  p_order.QUEUE_TM,
                  p_order.ORD_QUEUED,
                  p_order.AMEND_FROM,
                  p_order.AMEND_TO,
                  p_order.NEXT_DAY,
                  p_order.GROUP_ID,
                  p_order.BUSINESS_DT,
                  p_order.NEW_PR,
                  p_order.NEW_QTY,
                  p_order.REMARK,
                  p_order.BSK_FLG,
                  p_order.BSK_PARENT,
                  p_order.INDEX_CODE,
                  p_order.AVG_FILLED_PR,
                  p_order.OMNIBUSAC,
                  p_order.CONTRA,
                  p_order.SETT_TYPE,
                  p_order.SETT_CCY,
                  p_order.CHANNEL_REF_NO,
                  p_order.DISCLOSED_QTY,
                  p_order.MANUAL_TRADE,
                  p_order.DIRECT_TRADE,
                  p_order.COUNTERPARTY,
                  '0',
                  '0');
      ELSE
        UPDATE PARTIAL_FILLED_TRIGGER
        set TRADE_DT=p_order.TRADE_DT,
            REF_NO=p_order.REF_NO,
            ORD_NO=p_order.ORD_NO,
            ORD_SEQ_NO=p_order.ORD_SEQ_NO,
            CUST_ID= p_order.CUST_ID,
            ACC_ID= p_order.ACC_ID,
            CUST_NAME=p_order.CUST_NAME,
            ORD_SIDE=p_order.ORD_SIDE,
            XCHG_ID=p_order.XCHG_ID,
            MKT_ID=p_order.MKT_ID,
            SYMBOL=p_order.SYMBOL,
            ORD_PR=p_order.ORD_PR,
            STOP_PR=p_order.STOP_PR,
            ORD_QTY=p_order.ORD_QTY,
            FILLED_QTY=p_order.FILLED_QTY,
            OUTSTD_QTY=p_order.OUTSTD_QTY,
            ORD_TYPE=p_order.ORD_TYPE,
            ORD_TERM=p_order.ORD_TERM,
            EXPIRY_DT=p_order.EXPIRY_DT,
            AON=p_order.AON,
            SHORT_SELL=p_order.SHORT_SELL,
            DISPOSAL_SALE=p_order.DISPOSAL_SALE,
            SCRIP=p_order.SCRIP,
            ODD_LOT=p_order.ODD_LOT,
            CHANNEL_ID=p_order.CHANNEL_ID,
            SRC_REF_NO=p_order.SRC_REF_NO,
            TRADER_ID=p_order.TRADER_ID,
            TRADER_TM=p_order.TRADER_TM,
            TERMINAL_ID=p_order.TERMINAL_ID,
            AMS_ID=p_order.AMS_ID,
            AMS_TM=p_order.AMS_TM,
            APPROVAL_ID=p_order.APPROVAL_ID,
            APPROVAL_TM=p_order.APPROVAL_TM,
            CANCEL_QTY=p_order.CANCEL_QTY,
            REDUCE_QTY=p_order.REDUCE_QTY,
            ORD_STATUS=p_order.ORD_STATUS,
            ACTION=p_order.ACTION,
            EXCPT_REMARK=p_order.EXCPT_REMARK,
            REASON_CODE=p_order.REASON_CODE,
            NOTIFY_FLG=p_order.NOTIFY_FLG,
            NOTIFY_TM=p_order.NOTIFY_TM,
            ORD_TASK=p_order.ORD_TASK,
            QUEUE_TM=p_order.QUEUE_TM,
            ORD_QUEUED=p_order.ORD_QUEUED,
            AMEND_FROM=p_order.AMEND_FROM,
            AMEND_TO=p_order.AMEND_TO,
            NEXT_DAY=p_order.NEXT_DAY,
            GROUP_ID=p_order.GROUP_ID,
            BUSINESS_DT=p_order.BUSINESS_DT,
            NEW_PR=p_order.NEW_PR,
            NEW_QTY=p_order.NEW_QTY,
            REMARK=p_order.REMARK,
            BSK_FLG=p_order.BSK_FLG,
            BSK_PARENT=p_order.BSK_PARENT,
            INDEX_CODE=p_order.INDEX_CODE,
            AVG_FILLED_PR=p_order.AVG_FILLED_PR,
            OMNIBUSAC=p_order.OMNIBUSAC,
            CONTRA=p_order.CONTRA,
            SETT_TYPE=p_order.SETT_TYPE,
            SETT_CCY=p_order.SETT_CCY,
            CHANNEL_REF_NO=p_order.CHANNEL_REF_NO,
            DISCLOSED_QTY=p_order.DISCLOSED_QTY,
            MANUAL_TRADE=p_order.MANUAL_TRADE,
            DIRECT_TRADE=p_order.DIRECT_TRADE,
            COUNTERPARTY=p_order.COUNTERPARTY,
            ALERTFLG='0',
            ACKFLG='0'
        where REF_NO = p_order.REF_NO;
      END IF;
    END LOOP;
    COMMIT;
    END;Regards.
    Satyaki De.

  • Trigger code Help.

    Hi I have a trigger, it is giving error at the BOLD location. Please suggest what is the issue? Is the variable not in scope.
    Error(52,25): PLS-00049: bad bind variable 'L_DM_EMAIL'
    create or replace
    TRIGGER SCHEDULER.ADD_VAC_REQ_AFTER_INS_UPD
    AFTER INSERT OR UPDATE
    ON SCHEDULER.VACATION_REQUESTS
    REFERENCING NEW AS New OLD AS Old
    FOR EACH ROW
    declare
    l_loc_id vacation_requests.location_id%type;
    l_user_id user_profiles.user_id%type;
    l_from_email user_profiles.email%type;
    l_to_email user_profiles.email%type;
    l_dm_email user_profiles.email%type;
    l_to_user_id user_profiles.user_id%type;
    l_vacation_id vacation_requests.vacation_id%type;
    CURSOR c_get_to_email is
    select c.email,c.user_id,a.location_id location_id,a.role boss_role, b.role user_role,e.district district
    from rosters a, rosters b, user_profiles c
    where a.location_id=b.location_id
    and a.role='RSM' and a.del_ind is NULL
    and b.user_id=:new.user_id
    and a.user_id=c.user_id
    and b.location_id = e.location_id
    and a.location_id=:new.location_id;
    CURSOR c_get_dm_email is
    select b.email dm_email from dm_profiles a, user_profiles b
    where a.district = new.district
    and a.user_id=b.user_id;
    BEGIN
    l_loc_id := :new.location_id;
    l_user_id := :new.user_id;
    l_vacation_id := :new.vacation_id;
    select email INTO l_from_email from user_profiles where user_id = l_user_id;
    for cur_email in c_get_to_email
    loop
    l_dm_email := cur_email.email;
    IF cur_email.boss_role = 'RSM' and cur_email.user_role = 'RSM'
    THEN
    l_dm_email := '';
    for cur_dm_email in c_get_dm_email
    loop
    l_dm_email := :l_dm_email||cur_dm_email.dm_email||';';
    end loop;
    END IF;
    IF :new.approved_status ='APPROVED' or (:new.approved_status <> 'APPROVED' and l_loc_id=cur_email.location_id)
    THEN
    IF inserting then
    INSERT INTO EMAIL_JOBS
    (EMAIL_SEQ,FROM_EMAIL_ID,TO_EMAIL_ID,MESSAGE_TYPE,
    SEND_STATUS,CREATED_BY,CREATED_DATE,UPDATED_BY,UPDATED_DATE,TO_USER_ID,VACATION_ID,location_id)
    VALUES
    (email_job_seq.nextval,l_from_email,l_dm_email,:new.approved_status,'PENDING',l_user_id,
    sysdate,null,null,cur_email.user_id,l_vacation_id,cur_email.location_id);
    END IF;
    IF updating and (:old.approved_status <> :new.approved_status) then
    INSERT INTO EMAIL_JOBS
    (EMAIL_SEQ,FROM_EMAIL_ID,TO_EMAIL_ID,MESSAGE_TYPE,
    SEND_STATUS,CREATED_BY,CREATED_DATE,UPDATED_BY,UPDATED_DATE,TO_USER_ID,VACATION_ID,location_id)
    VALUES
    (email_job_seq.nextval,l_from_email,l_dm_email,:new.approved_status,'PENDING',l_user_id,
    sysdate,null,null,cur_email.user_id,l_vacation_id,cur_email.location_id);
    END IF;
    END IF;
    END LOOP;
    END add_VAC_REQ_after_ins_upd;
    Regards
    Edited by: skvaish1 on Nov 10, 2009 12:32 PM

    Remove the colon in front of :l_dm_email.... should be just l_dm_email

  • Trigger loop in MS

    I apologize if this seems like a duplicate question, but I've read many postings on this topic and nobody seems to have this exact scenario.
    During live performance using MainStage, I need to trigger a short audio file (a few seconds long) as an endless loop. I want to hit a key on my keyboard controller, and have the loop start. I want to leave it "running" (looping) forever until I decide to hit a key to stop it. The entire file is the loop, so there's no need to set start and end points, or crossfade, etc. I have no need for adjusting tempo or doing anything sophisticated.
    I've tried the AUAudioFilePlayer in a channel strip but that can't be triggered from the controller. I've tried EXS24 but I can't get the file to loop properly. I'd even be OK hitting a key on my laptop to start/stop the loop if necessary. Any suggestions? Thanks!
    Rich

    OK, I re-read your post a few times because I wasn't sure what you meant I couldn't figure out from your second post what you meant by a "One Shoot Loop" because those are a little contradictory..a sample either loops or is one shot. However, from reading your first post again, I see what you mean, you want to be able trigger the sample once and have it loop continuously. AIAK, that's not directly possible using what we've mentioned so far. (Note: from my post history it should be evident that I'm new to Mainstage and not an expert)
    Two possibilities:
    1) Not likely but if the length of the looping is static (same every time you play the song). Then you might be able to use Logic to create a long sample which is your loop played many many times and just use the EXS24 to trigger that long sample. One variation on that to make a sample longer than you will ever play and then trigger it from the EXS24 and have another button to stop the loop
    2) Probably more flexible is to look at "SooperLooper" (http://www.essej.net/sooperlooper/) Set up a controller for record/play/etc... have your channel strip feed a Bus that has SooperLooper on it. Set your sample as a One Shot. Trigger it from Mainstage, trigger SooperLooper to record your one shot loop sample and loop it back. You may need to do some clever stuff to get the time right, such as making your sample twice as long with two repetitions of your 'loop' in order to give you time to start the same and then start the loop record, or having SooperLooper set up to listen to record on them same MIDI event that triggers your sample so your sample starts at the same time as your loop record starts
    Same Greene has a demo for setting up Mainstage and SooperLooper together. http://www.samgreene.com/drupal_samgreene/node/98 The difference in your case would be that your channel strip would be for the ESX24 sample rather than a live (software) instrument

  • Smartform - Field not outputting more than 255 characters in a loop - Help!

    Hi,
    I have the following problem with my Smartform:
    I am looping from a table and into a structure (Loop function).
    1 of those fields is 1000 characters long and will be filled usually at 500 characters inside.
    However, when looping and outputting the field (text node) in the format &Tablename-Fieldname&, only up to 255 characters are output.
    To give you a better idea - I have a Loop Node and there, I am looping from a table (type table of) into a header
    (type).
    Using LCHR does not help.
    Why does this happen? How can I fix this? Are any symbols available in Smartforms, like they are in SAPscript?
    Any possible solutions will help.
    Please help – this is very important and very urgent.
    Best Regards,
    John

    Hi,
    if you want to output a long string in a smartform putting it as &name& in a text will not help you. For printing such an information you use temp include texts you create an delete on the fly while processing the SF.
    To Do so:
    - define GV_SUFFIX type char2, GS_HEAD a structure with fields TDOBJECT type TDOBJECT, TDNAME type TDOBNAME, TDID type TDID, TDSPRAS type SPRAS
    - define a code step importing the text, the language and the GV_SUFFIX, in the coding , you convert the string to itf and than use function module SAVE_TEXT to save the include text and put the information into GS_HEAD
    - define an include text where you put out the newly created include text
    - define a code step to delete the temporary text with function module DELETE_TEXT
    Best Regards
    Roman Weise

  • Patchadd stuck in infinite loop -HELP!!

    Hi all,
    Iam trying to install some OS patches in SunOS 5.8 machine[sun4u sparc SUNW,Sun-Fire-280R]
    But after the process starts, it seems to get stuck in an endless loop. I get the following messages.
    Checking installed patches...
    Verifying sufficient filesystem capacity (dry run method)...
    After the second line, the process of installing patch does not seem to end.
    I did the install in single mode.
    Rebootted the machine and did an fsck. But didnt help. Tried downloading a patch to patch 'patchadd' , but could not install it as well.
    I tried debugging the patchadd. Here is a debugging trace.
    required utlsa are available
    Checking installed patches...
    Verifying sufficient filesystem capacity (dry run method)...
    + exit_code=0
    + pkgInst=
    + pkgDispList=
    + dryrunFailure=
    + ReqArrCount=0
    + firstTimeThru=yes
    + cd /var/spool/patch/112396-02
    + + pwd
    curdir=/var/spool/patch/112396-02
    + typeset -i pkgInsCtr=0
    + newpkglist= SUNWcsr
    + pkgInst= SUNWcsr
    + newpkglist= SUNWcsr SUNWcsu
    + pkgInst= SUNWcsr SUNWcsu
    + pkglist= SUNWcsr SUNWcsu
    + [[ -f SUNWcsr/pkginfo ]]
    + echo inside. . . .
    inside. . . .
    + /usr/bin/cp /tmp/patchadd-127541250/response.1250 /tmp/patchadd-127541250/response.1250.1
    + [[ yes == no ]]
    + [[ yes == yes ]]
    + echo first time thru
    first time thru
    + [[ no == yes ]]
    + pkgadd -D /tmp/patchadd-127541250/112396-02.1250 -S -n -a /tmp/patchadd-127541250/admin.tmp.1250 -r /tmp/patchadd-127541250/
    response.1250.1 -R / -d . SUNWcsr SUNWcsu
    + 1>> /tmp/patchadd-127541250/pkgaddlog.1250 0< /dev/null 2>& 1
    It seems like it is getting stuck in the pkgadd command .
    Any help on this would be highly appreciated.
    Thanks,
    Vimalnath. A

    HI,
    Make sure the patch doesn't exists in the system.
    Ski

  • Iphone stuck in infinite loop, HELP!

    my iphone after resetting all settings through settings>general>reset, is stuck in an infinite loop.
    it turns on, shows the apple logo, then about a minute later the loading symbol appears, after 10mins it quickly flashs black and then starts the loop again, i have left it for over 12 hours, to see if it will fix itself, but it wont.
    i cant get it into dfu or recovery mode, it wont even turn off until it runs out of battery and then repeats its loop. when i charge it it just starts the loop again!
    please i really need help, if i cant resolve this problem, im not going to buy the ipad and the iphone 4g as i planned to do so.
    please could anyone help!

    If you can't get your iPhone into DFU or recovery mode, there is a major problem. You can make an appointment at an Apple store if there is one nearby.
    This is a user to user help forum only, so doubtful if any fellow users will lose any sleep over your threat not to purchase an iPad or the next generation iPhone when released if this problem cannot be resolved. If not, more than likely there is a hardware problem or failure. If a problem arises with your PC that you cannot resolve, are you not going to purchase another PC either?

  • Nested Loop Help

    Hello,
    I have generated a simple VI, to make multiplication and division operations. I have the following operation performed with the following inputs.
    A1 has a value range from 1 -10 fixed
    A2 has an input range of 1 - 5
    A3,A4 are constants.
    so Result  = (A1*A3 ) / (A4*A2)*100 ,
    I want to  plot "Result Vs. A1" with a current value of A2, increment A2 and repeat the procedure. So I generate 5 graphs and display it in only one. I need to write a nested loop to perform this operation.however I am able to do it only once.
    I am trying to use for loop structure in one another but havent gone ahead in this.Any help will be appreciable..Thanks in advance.

    altenbach wrote:
    Dravi99 wrote:
    The Problem is that I want to plot the division result vs. the # of array out elements and i am unsuccessful at it. May be i am missing on the waveform graph properties.
    You should make the current values default before saving so we have some typical data to play with.
    Currently, your code makes very little sense, because the inner loop has no purpose.
    If you plot the division result versus array index (I assume that's what you want, I don't understand what you mean by "the # of array out elements "), you only have one plot. What should be on the other plots???
    Please explain or even attach an image of the desired output. Thanks!
    Thanks Altenbach for the inputs.
    I have made the values default. Srry for the previous one.
    Now the inner loop was placed so that i can create a 2D array.
    I need to plot the division result vs. the value of the element in the arry out. i.e. currently my array out has 0.0...,0.3 I want that to be the X axis.
     The graph plotted   is for 1st value of "in", this value will change like from 4.5 to 4.7 to 4.9, not necesarily in steps.
    Thus my one graph should have multiple plots of "in" which has the above mentioned axis.
    Hope this time i was clear in my msg. I have attached the modified VI.
    Attachments:
    For_loop_prob.vi ‏17 KB

  • Trigger creation - Help Required

    Hi,
    New to pl/sql and would like some help in trying to achieve the following.
    I have 2 tables with one being a history table. When someone insert into the first table not the history table. I'd like to create a trigger that will retrieve the last entry for the given id in the history table, then manipulate it to have the same values that have been inserted into the main table, which will result in an insert statement being executed on the history table.
    I've created 2 small test table with
    create table cs1 (name varchar2(6), age number(3), ins_date date);
    create table cs2 (name varchar2(6), age number(3));
    What I'd like to trigger to looks like
    create or replace trigger cs_trig
    after insert on cs2
    begin
    insert into cs1 (name,age.ins_date)
    values (col_value_of_cs2.name, col_values_of_cs2.age, sysdate);
    end;
    I'm unsure as to how to populate the name and age variable.
    This is my first attempt. Sorry if it simple.
    Thanks
    Caron

    Hi Andrew,
    Thanks for your help. Could you explain what and are? As I've tried to the create and I'm receiving errors.
    SQL> create or replace trigger cs_trig
    2 after insert on cs2 fro each row
    3 begin
    4 insert into cs1 (name,age.ins_date)
    5 values (:NEW.name, (:NEW..age, sysdate);
    6 end;
    7 /
    after insert on cs2 fro each row
    ERROR at line 2:
    ORA-04079: invalid trigger specification

  • Key-Others Trigger (Please help!!!)

    Hi everybody,
    We are trying to restrict the end user from pressing some
    'dangerous' keys, i.e clear block, execute query, even the DOWN
    key causes us problems in some (1 record) blocks.
    I know there is a way to do it using Oracle terminal but it
    seems that we need greater degree of flexibility.
    I certainly don't want to go to every <KEY> trigger on every
    form (block) and put null; statements there. I know from Oracle
    Docs that I'm supposed to use the key-others trigger..
    So here are my questions:
    1.Is there any way to find out which key has been pressed?
    2.Can someone post a sample code of a KEY-OTHERS triggers?
    3.Is there another way to achieve what we need?
    Thanks is advance for any help.
    Mike
    null

    You have two options.
    1) Turn off all keys not wanted. This is what you said
    you did not want to do.
    2) Tun on all keys you want to use by creating a trigger for
    each key. i.e.
    trigger KEY-NXTREC trigger KEY-UP
    NEXT_RECORD; UP;
    Then turn off all keys not explicitly turned on.
    trigger KEY-OTHERS
    NULL;
    ET (guest) wrote:
    : Hope that it may be helpful.
    : Answer :
    : 1. In command line, add debug option so that you may know what
    : trigger is executing.
    : e.g. runform module= userid= debug=yes
    : 2. Sample code for Key-others trigger
    : null;
    : Rgds,
    : ET
    : Mike Braude (guest) wrote:
    : : Hi everybody,
    : : We are trying to restrict the end user from pressing some
    : : 'dangerous' keys, i.e clear block, execute query, even the
    : DOWN
    : : key causes us problems in some (1 record) blocks.
    : : I know there is a way to do it using Oracle terminal but it
    : : seems that we need greater degree of flexibility.
    : : I certainly don't want to go to every <KEY> trigger on every
    : : form (block) and put null; statements there. I know from
    : Oracle
    : : Docs that I'm supposed to use the key-others trigger..
    : : So here are my questions:
    : : 1.Is there any way to find out which key has been pressed?
    : : 2.Can someone post a sample code of a KEY-OTHERS triggers?
    : : 3.Is there another way to achieve what we need?
    : : Thanks is advance for any help.
    : : Mike
    null

  • Error in trigger, pls help,10g,xp

    Please help me out from the following err in trigger
    Solved
    Thank you
    Edited by: Smile on Feb 19, 2013 2:15 AM                                                                                                                                                                                                                                                           

    83  exception
    84  when others then
    85  dbms_output.put_line('error');
    86  end;The most dangerous code one could write. Must be removed immediately
    http://tkyte.blogspot.com/2007/03/dreaded-others-then-null-strikes-again.html
    Message was edited by:
    karthick_arp

  • CcBpm Loop Help

    Hi,
    Can someone help me with this? I did some searches on sdn but I can't seem to find some sort of step by step for how a loop works?
    I have multiple account numbers which I sent to a 1:1 web service which returns 1 account. I neet to loop through all my acc nrs and combine the responses from the web service into 1 message structure..
    Thanks.
    Jan

    Hi,
         The loop in bpm is a while loop. The loop is executed till the specified condiotion is true.
    To use the loop, use the contained object to define a counter variable and increment the counter using container operation --.assign value to element. Use this counter variable to check if the condition is true, i.e, in the loop step, check if the value of the container variable exceed some specified value.
    Regards

  • Foreach loop help

    I am trying to create a foreach loop that takes all txt files in Program Files and print only the names of files over 10KB.
    This is what I got:
    foreach($file in (Get-ChildItem -Path "c:\Program Files" -recurse -Include *.txt |
    Select-Object FullName ))
    if($file.size -gt 10KB)
    Write-Host $file
    I've been testing around with this for a bit now and doing some Googling to no avail, it'll work if I don't try to sort it by size and ask it just to print the name of all text files in Program Files. Any nudge in the right direction would be appreciated.

    Let me be more explicit.  Whatou posted is not a loop.
    Always start with HELP when you are learning.  Ask your teacher to explain to you how to use HELP.
    help foreach.
    A ForEach loop cannot solve your issue here. You need to filter the results of a recursive search. In PowerShell this is almost never done with a loop. If your teacher tries to tell you otherwise you need to fire the teacher or take your money to a different
    school.
    Of course it may be more likly that you just didn't pay attention in class and are now asking us to do your homework for you.
    Sorry.  We don't do homework for children. This is a site for technicians who use scripting professionally. If you want to be a professional you need to do your homework No cheating. We are watching.
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Safari Won't open password protected Graphite Filesharing Public folder

    Dear people, Using Homepage I made my Public folder available to a small group of people, whom I gave my password. I chose Graphite Filesharing. Starting about half a year ago, I got mor and more complaints from people not being able to Login. The pa

  • Specifying table with jdbc-class-map-name

    Greetings How do I specify the name of the table to map to when using the jdbc- class-map-name hint? In my jdo file, I have specified: <class name="Customer" objectid-class="CustomerId"> <extension vendor-name="kodo" key="jdbc-class-map-name" value="

  • Dropped Call. No Service. Call Failed!

    Hi, I have for a number of months experienced these problems with o2 on a number of different handsets. I have been sent a new handset and new sims but it does not make a difference.  My question is what has changed? I used to get perfect call qualit

  • OIM 11G R2: OIM server configuration failed.

    Hi, oim server configuration failed because of below error. Please check the logs.kindly suggest a solution to fix it. isJVMVendorIBM:false updateMLSLocale:ORACLE_HOME :/home/oracle/app/Oracle/Middleware/Oracle_IDM1 updateMLSLocale:LOCALE_PROPERTIES_

  • In CS3 i cant find my plug ins folder

    I downloaded the camera raw 4.1 update and per the instructions your supposed to drop the plug in at Library/Application Support/Adobe/Plug-Ins/CS3/File Formats . I followed that path but there is no folder titled "plug-ins" inside of the Adobe folde