Whay FORALL loop is not Working.....

hi Guys,
I have created a procedure with Object as Argument.......
CREATE OR Replace PROCEDURE Object_Student1(p student_detail1)
AS
BEGIN
FORi in p.first .. p.last loop
INSERT INTO Sample_mix VALUES (p(i));
end loop;
COMMIT;
END Object_Student1;
This above was not working..........After I have changed the PL/SQL in the INSERT statement....
CREATE OR Replace PROCEDURE Object_Student1(p student_detail1)
AS
BEGIN
FOR i in p.first .. p.last loop
INSERT INTO Sample_mix VALUES (p(i).roll,P(i).SALARY,P(i).ADDRESS,P(i).Name,P(i).mobile);
end Loop;
COMMIT;
END Object_Student1;
now This is Running Successfully.... But After I changed From FOR Loop TO FORALL loop..
CREATE OR Replace PROCEDURE Object_Student1(p student_detail1)
AS
BEGIN
FORALL i in p.first .. p.last
INSERT INTO Sample_mix VALUES (p(i).roll,P(i).SALARY,P(i).ADDRESS,P(i).Name,P(i).mobile);
COMMIT;
END Object_Student1;
The Above Code is Not working..... giving the folloing ERRORS...
LINE/COL ERROR
5/32 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records
5/42 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records
5/54 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records
5/67 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records
LINE/COL ERROR
Could anybody tell me why should This ForALL loop is not Working....??

Yes Suresgh I tried.... But I got Same Error..... given below...
1 CREATE OR REPLACE PROCEDURE ObjectPassing2(p student_detail1)
2 AS
3 BEGIN
4 FORALL i in 1 .. p.Count
5 INSERT INTO Sample_mix VALUES(p(i).Roll,p(i).Salary,p(i).Address,p(i).Name,p(i).Mobile);
6 COMMIT;
7* END ObjectPassing2;
SQL> /
Warning: Procedure created with compilation errors.
SQL> sho err;
Errors for PROCEDURE OBJECTPASSING2:
LINE/COL ERROR
5/33 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records
5/43 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records
5/55 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records
5/68 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records
LINE/COL ERROR
5/78 PLS-00436: implementation restriction: cannot reference fields of
BULK In-BIND table of records

Similar Messages

  • Frames panel: looping button not working

    Frames panel: looping button not working
    I use Fireworks MX 2004
    Frames panel: looping button:
    When I set looping to 2, it stops after 2, as it should.
    All other values, i.e. 1, 3, 4 etc will go on 'forever'.
    What's wrong?
    Thank you for your help.
    Adrian

    This is just a simple exercise.
    http://www.tudo.co.uk/testing/looping_problem.png
    http://www.tudo.co.uk/testing/looping_problem.gif
    In the png file, Frames panel, bottom left, where I can set
    looping to
    any number, including 'forever', I set the looping frequency
    in this
    case to 1. So I expect it to stop after one movement up into
    the right
    top corner and return to bottom left.
    When I play this in 'original' or in 'preview' in Fireworks,
    the
    animation moves continuously instead of stopping after one
    round. That
    is my 'problem'. Or can I not expect this to work while it is
    still in png?
    When I export it to gif, it works exactly as wanted - once
    only.
    Adrian
    Alex Mari�o wrote:
    > adrian,
    >
    > Could you post the png file online and explain exactly
    what you are
    > trying to achieve?
    >
    > alex
    >
    > adrian stock wrote:
    >
    >> Frames panel: looping button not working
    >>
    >>
    >> I use Fireworks MX 2004
    >>
    >> Frames panel: looping button:
    >>
    >> When I set looping to 2, it stops after 2, as it
    should.
    >>
    >> All other values, i.e. 1, 3, 4 etc will go on
    'forever'.
    >>
    >> What's wrong?
    >>
    >> Thank you for your help.
    >>
    >> Adrian

  • My loop is not working

    Hi Guru's,
    This is my program . There is no syntax error  but while debugging  this below loop it is not working
    ( LOOP AT i_vbrk WHERE vbeln = i_vbak-vbeln. ), Please correct my program if anything is wrong or suggest me what do to.
    REPORT  zsdr_omvsa40.
                              TYPE-POOLS
    TYPE-POOLS: slis.
                           TABLE DECLARATIONS
    TABLES : vbak,  vbkd, zzvbak, kna1, vbrk, vbrp, knvp .
                                INTERNALTABLE DECLARATION                 *
    DATA: BEGIN OF i_vbak OCCURS 0,
           vbeln LIKE vbak-vbeln,               " Sales Order no
           erdat LIKE vbak-erdat,               " Date on Which Record Was Created
           kunnr LIKE vbak-kunnr,
           ps_psp_pnr LIKE vbak-ps_psp_pnr,     " Work Breakdown Structure Element
          END OF i_vbak.
    DATA : BEGIN OF i_zzvbak OCCURS 0,
             vbeln LIKE zzvbak-vbeln,
             zssidc LIKE zzvbak-zssidc,         "Salesman ID
           END OF i_zzvbak.
    DATA : BEGIN OF i_vbrk OCCURS 0,
             vbeln LIKE vbrk-vbeln,
             fkdat LIKE vbrk-fkdat,            "Invoice Date
             END OF i_vbrk.
    DATA : BEGIN OF i_kna1 OCCURS 0,
           pstlz LIKE kna1-pstlz ,               " Postal Code
           kunnr LIKE kna1-kunnr ,               " Customer Number 1
           name1 LIKE kna1-name1,                " Customer Name
           END OF i_kna1.
    DATA : BEGIN OF i_vbrp OCCURS 0,
           vbeln LIKE vbrp-vbeln,
           aubel LIKE vbrp-aubel,
           netwr LIKE vbrp-netwr ,               " Net Value in Document Currency
           kzwi1 LIKE vbrp-kzwi1,               " Subtotal 1 from pricing procedure for condition
          erdat LIKE vbrp-erdat,                "Billing document.
           END OF i_vbrp.
    DATA : BEGIN OF i_knvp OCCURS 0,
           parvw LIKE knvp-parvw ,               " Partner Function
           kunnr LIKE knvp-kunnr ,
           parnr  LIKE knvp-parnr ,              " Number of contact person
           END OF i_knvp .
    DATA : BEGIN OF i_data OCCURS 0,
            erdat LIKE vbak-erdat,               " Date on Which Record Was Created
           vbeln LIKE vbak-vbeln,               " Sales Order no
           fkdat LIKE vbrk-fkdat,               " Invoice date.
           kunnr LIKE kna1-kunnr ,               " Customer Number 1
           ps_psp_pnr LIKE vbak-ps_psp_pnr,      " Work Breakdown Structure Element
           name1 LIKE kna1-name1,                " Customer Name
            netwr LIKE vbrp-netwr ,               " Net Value in Document Currency
            kzwi1 LIKE vbrp-kzwi1,               " Subtotal 1 from pricing procedure for condition
           parvw LIKE knvp-parvw ,               " Partner Function
            parnr  LIKE knvp-parnr ,              " Number of contact person
            zssidc LIKE zzvbak-zssidc,            "Salesman ID
           pstlz LIKE kna1-pstlz ,                " Postal Code
          END OF i_data.
    ALV Declaraton
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
         gd_tab_group TYPE slis_t_sp_group_alv,
         gd_layout    TYPE slis_layout_alv,
        it_listheader TYPE  slis_t_listheader,
         gd_repid     LIKE sy-repid.
    Selection - Screen
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS    creation            FOR vbak-erdat  .          " Sales Order Date
    SELECT-OPTIONS    period              FOR vbrk-fkdat  .          " Invoice Date
    SELECT-OPTIONS    order               FOR vbak-vbeln  .          " Sales order no
    SELECT-OPTIONS    name                FOR kna1-name1  .          " Customer Name
    SELECT-OPTIONS    contact             FOR knvp-parnr  .          " Contact Name.
    SELECT-OPTIONS    ssid                FOR  zzvbak-zssidc    .      " Salesman ID
    SELECT-OPTIONS    project                FOR vbak-ps_psp_pnr .       " Work Breakdown Structure Element
    SELECTION-SCREEN : END OF BLOCK b1.
    START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM build_fieldcatalog.
    PERFORM BUILD_LAYOUT.
    PERFORM top_of_page.
      PERFORM fill_listheader USING it_listheader.
      PERFORM display_alv_report.
    END-OF-SELECTION.
    *TOP-OF-PAGE.
    TOP-OF-PAGE.
    END-OF-PAGE.
    *&      Form  BUILD_FIELDCATALOG
          text
    FORM build_fieldcatalog.
      fieldcatalog-fieldname   = 'KUNNR'.
      fieldcatalog-seltext_m   = 'Sold to Party'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'NAME1'.
      fieldcatalog-seltext_m   = 'Hlev Customer'.
      fieldcatalog-col_pos     = 1.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PARNR'.
      fieldcatalog-seltext_m   = 'Contact name'.
      fieldcatalog-col_pos     = 2.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PS_PSP_PNR'.
      fieldcatalog-seltext_m   = 'Project ID'.
      fieldcatalog-col_pos     = 3.
      fieldcatalog-do_sum = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'VBELN'.
      fieldcatalog-seltext_m   = 'Sales Document Type'.
      fieldcatalog-col_pos     = 4.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'ZSSIDC'.
      fieldcatalog-seltext_m   = 'SSID'.
      fieldcatalog-col_pos     = 5.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'ERDAT'.
      fieldcatalog-seltext_m   = 'so date'.
      fieldcatalog-col_pos     = 6.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'FKDAT'.
      fieldcatalog-seltext_m   = 'inv date'.
      fieldcatalog-col_pos     = 7.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'KWZI1'.
      fieldcatalog-seltext_m   = 'gross amt'.
      fieldcatalog-col_pos     = 8.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'NETWR'.
      fieldcatalog-seltext_m   = 'net amt'.
      fieldcatalog-col_pos     = 9.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PSTLZ'.
      fieldcatalog-seltext_m   = 'Postal code'.
      fieldcatalog-col_pos     = 10.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    ENDFORM.                    "BUILD_FIELDCATALOG
    *&      Form  DATA_RETRIEVAL
          text
    FORM data_retrieval.
      SELECT vbeln erdat kunnr ps_psp_pnr INTO CORRESPONDING FIELDS OF TABLE i_vbak
                         FROM vbak WHERE  erdat IN creation AND vbeln IN ORDER  AND
                          ps_psp_pnr IN project.
      IF NOT i_vbak[] IS INITIAL.
        SELECT vbeln aubel netwr kzwi1 FROM vbrp INTO TABLE i_vbrp
                FOR ALL ENTRIES IN i_vbak
               WHERE aubel = i_vbak-vbeln.
        SELECT vbeln fkdat  FROM vbrk INTO TABLE i_vbrk FOR ALL ENTRIES IN i_vbrp
        WHERE vbeln = i_vbrp-vbeln
        AND fkdat IN period.
        SELECT pstlz name1 kunnr FROM kna1 INTO TABLE i_kna1 FOR ALL ENTRIES IN i_vbak
        WHERE kunnr = i_vbak-kunnr
        AND name1 IN name.
        SELECT vbeln zssidc FROM zzvbak INTO TABLE i_zzvbak FOR ALL ENTRIES IN i_vbak
        WHERE vbeln = i_vbak-vbeln
        AND zssidc IN ssid .
            select netwr kzwi1 erdat from vbrp into table i_vbrp for all entries in i_vbak
            where erdat = i_vbak-erdat.
        SELECT kunnr parnr parvw FROM  knvp  INTO CORRESPONDING FIELDS OF TABLE i_knvp FOR ALL ENTRIES IN i_vbak
        WHERE kunnr = i_vbak-kunnr
        AND   parvw = 'AP'
        AND   parnr IN contact.
      ENDIF .
      LOOP AT i_vbak.
        LOOP AT i_vbrk WHERE vbeln = i_vbak-vbeln. " ( From this loop it'snot working)
          LOOP AT i_kna1 WHERE kunnr = i_vbak-kunnr.
            LOOP AT i_zzvbak WHERE vbeln = i_vbak-vbeln.
              LOOP AT i_vbrp WHERE  aubel = i_vbak-vbeln.
                LOOP AT i_knvp ." where kunnr = i_vbak-kunnr.
                  CLEAR i_data.
                  MOVE  i_kna1-kunnr      TO i_data-kunnr.
                  MOVE  i_kna1-name1      TO i_data-name1.
                  IF i_vbak-kunnr  = i_knvp-kunnr .
                    MOVE i_knvp-parnr      TO i_data-parnr.
                  ENDIF.
                  MOVE  i_vbak-ps_psp_pnr TO i_data-ps_psp_pnr.
                  MOVE  i_vbak-vbeln      TO i_data-vbeln .
                  MOVE i_zzvbak-zssidc    TO i_data-zssidc.
                  MOVE  i_vbak-erdat      TO i_data-erdat.
                  MOVE  i_vbrk-fkdat      TO i_data-fkdat.
                  MOVE  i_vbrp-netwr      TO i_data-netwr  .
                  MOVE  i_vbrp-kzwi1      TO i_data-kzwi1.
                  MOVE  i_kna1-pstlz      TO i_data-pstlz .
                  APPEND i_data.
                ENDLOOP.
              ENDLOOP.
            ENDLOOP.
          ENDLOOP.
        ENDLOOP.
      ENDLOOP.
      DELETE ADJACENT DUPLICATES FROM i_data.
    *refresh : i_data.
    *free  : i_data.
    *LOOP AT i_data.
    ENDFORM.                    "DATA_RETRIEVAL
    *&      Form  DISPLAY_ALV_REPORT
          text
    FORM display_alv_report.
    GD_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
          i_callback_program                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
          i_callback_top_of_page            = 'TOP_OF_PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
          it_fieldcat                       = fieldcatalog[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = i_data.
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2 .
    *IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    ENDFORM.                    "DISPLAY_ALV_REPORT
            FORM FOR FILLING LISTHEADER                                    *
    FORM fill_listheader USING it_listheader TYPE slis_t_listheader.
      DATA : wa_listheader TYPE slis_listheader.
      wa_listheader-typ  = 'H'.
      wa_listheader-info = 'Noel Gifts International Limited '.
      APPEND wa_listheader TO it_listheader.
      wa_listheader-typ  = 'S'.
      wa_listheader-info = 'CUSTOMER CREDIT EXCEPTION REPORT' .
      APPEND wa_listheader TO it_listheader.
      CLEAR wa_listheader.
    ENDFORM.                    "fill_listheader
    *&      Form  top_of_page
          text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = it_listheader.
    ENDFORM.      "top_of_page
    Thanks and regards,
    R.Vinod.

    sorry i sdint go through your entire code but it seems to me may be some conversion problem i.e. with leading zeroes. just check that...
    you may have to use
    fm after first loop at
    LOOP AT i_vbak.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = i_vbak-vbeln
    IMPORTING
       OUTPUT        = i_vbak-vbeln
    LOOP AT i_vbrk WHERE vbeln = i_vbak-vbeln.
    it will give a leading zero.
    if you want to delete the leading zeroes from i_vbak-vbeln then use
    LOOP AT i_vbak.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        INPUT         = i_vbak-vbeln
    IMPORTING
       OUTPUT        = i_vbak-vbeln
    LOOP AT i_vbrk WHERE vbeln = i_vbak-vbeln.
    just check in debugging mode what conversion you need
    regards
    shiba dutta

  • How to disable 'Hello'tried about loop:enabled -not working

    I have the new version of Mozilla Firefox and it starts up with 'Hello' that allows video talking. I have tried to amend about:config, loop:enabled to disable it but this does not work, each time I start up my machine 'Hello' is back.
    Any suggestions? Could the fact that my History clears daily mean the change to Hello is not being saved?

    hello DivaDiva, are you referring to the current hello promotion on the firefox start page? this is different from the actual feature itself which you can disable through the loop.enabled preference & will be featured on the homepage for just a few days...

  • Looping animation not working with Timeline Action...

    I've used the Timline Actions Panel a few other times to loop animations by just selecting 'Complete' and then using sym.play(0); to return to the beginning - pretty hard to mess up I thought.  I have a new animation where this is just not working at all.  Could there be any other reason this is not working or perhaps something I'm just not looking at? 

    Hey,
    Sure, no problem.  Here's a link a a demo of it: http://www.damon9.com/dev/publish/web/EndofDays.html
    Not sure how much you can see from just that, but inside the Edge comp there's nothing crazy going on.  4 layers, 2 rotating 6 degrees a second, stops at 60 seconds (when it should start back from the beginning).  I've tried the usual Timeline Action sym.play(0); on complete and also just adding a trigger at 60 seconds of sym.play(0);
    Just can't imagine what else it could be.
    Thanks
    Damon

  • FOR LOOP EXCEPTION not working !!! please help

    Hi,
    Why is the NO_DATA_FOUND execption not getting executed. ????
    Hereis the code....
    CURSOR newreccur IS
    SELECT * from emp_table;
    BEGIN
    v_file_handle := UTL_FILE.FOPEN('out','new.dat','W');
    BEGIN
    FOR emp_rec IN newreccur LOOP
    -- Write procurement records
    UTL_FILE.PUT(v_file_handle,'emp_rec.num');
    END LOOP;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    dbms_output.put_line ('No data found ')
    END;
    EXCEPTION
    WHEN UTL_FILE.INVALID_PATH
    THEN
    DBMS_OUTPUT.PUT_LINE ( 'Invalid Path ' || TO_CHAR (SQLCODE) );
    UTL_FILE.FCLOSE_ALL;
    END;

    cursor for loops do not raise no_DatA_found - they simply stop looping when they run out of data. you can set a variable within the loop, and then check it after the loop if you need to know if data was returned or not.

  • Non-loop animation not working.

    I am developing a video game for my flash class. This code is not working:
    public function onEvent(e:Event){
    if (constrictMovement){
         bear.gotoAndStop("power");
    if (bear.bearP.currentFrame >= bear.bearP.totalFrames){ // the biggest error is here?
         constrictMovement = false;
    bear is already a variable to a "parent" symbol, containing three "child" symbols (each play a different animation)
    bearP is the instance name of target symbol within a parent symbol.
    constrictMovement is a switch to prevent keyboard input during the event animation is played.
    Everything works fine except for this code snippet. The animation should only complete one cycle, instead of repeating. The switch, constrictMovement should break the repeats by turning bear.gotoAndStop("power") off and activating other parts of code with a !constrictMovement.
    What am I doing wrong? :/ Any help is appreciated, thanks.

    I tried using the trace, there was no response from the problem area. Is there a workaround for bear.bearP.currentFrame = bear.bearP.totalFrames? Here is the pasted code, with unnecessary parts omitted, hopefully you will be able to understand the logic better:
    package  {
              import flash.display.MovieClip;
              import flash.events.Event;
    public class snowBear extends MovieClip {
                        // Environment & Character Controls
                        var constrictMovement:Boolean;
                        // Scene Assets
                        var bear:bearParent;
                        var levelFinisher:powerUp;
                        var cycleOnce:Boolean;
                        var levelAnnouncer:levelFinished;
                        var afterlevelFinisher:Boolean;
                        public function snowBear() {
                                  cycleOnce = true;
                                  bear = new bearParent();
                                  levelFinisher = new powerUp();
                                  levelAnnouncer = new levelFinished;
                                  addChild(bear);
                                  bear.x = stage.stageWidth / 2;
                                  bear.y = stage.stageHeight / 2 + stage.stageHeight * 0.40;
                                  bear.gotoAndStop("idle");
                                  addChild(levelFinisher);
                                  levelFinisher.x = stage.stageWidth * 2;
                                  levelFinisher.y = stage.stageHeight - bear.height * 0.75;
                                  addEventListener(Event.ENTER_FRAME, perFrame);
                        public function perFrame(e:Event){
                                  if (!constrictMovement){
                                  if (!left && !right){
                                            bear.gotoAndStop("idle");
                                            adjSpeed = 0;
                                  if (levelFinisher && bear.hitTestObject(levelFinisher) && cycleOnce){
                                            constrictMovement = true;
                                            removeChild(levelFinisher);
                                            levelFinisher = null;
                                            cycleOnce = false;
                                            trace("cycle complete");
                                  if (constrictMovement){
                                            bear.gotoAndStop("power");
      if (bear.bearP.currentFrame == bear.bearP.totalFrames){
      constrictMovement = false;
      trace("should function");
                                  if (!cycleOnce){
                                            addChild(levelAnnouncer);
                                            levelAnnouncer.x = stage.stageWidth /2 ;
                                            levelAnnouncer.y = stage.stageHeight * 0.23;

  • 9iR2 : FORALL UPDATE is not working with remote table

    Hi,
    I am trying to use BULK COLLECT & FORALL to get records from a remote table (using Dblink) and insert the copy of the data locally and update the remote table to mark the record being processed. FORALL is working well with local tables but with not remote table. Am I missing some thing here interms of permissions or it would n't work that way?
    Thanks
    Sara

    Hello,
    I have the exact same question. I understand I cannot use FORALL with a database link, but what is the best alternative?
    The removte databases are on ships and the bandwidth is very narrow. I need to bulk collect about 8000 records a day; update the loacal database; and then update the remote (ship) database that I have taken these records.
    I can use the database link in a classic cursor FOR loop, but with the narrow bandwidtch it takes hours.
    Short of writing a file on the local server, ftp'ing it to the remote server any suggestions? Would Advanced Queuing be appropriate here?
    Gary

  • For loop is not working

    Hi,
    I am using a if condition that will first check if the above command ran successfully if the errorlevel is 0 then execute the condition inside the if condition. My syntax is as follows
    if %errorlevel%==0 ( for /f "delims=" %%x in ('dir /b/od C:\Folder ') do set recent=%%x
    set FILE=%recent%
    echo %FILE%
    echo "hello world"
    ) else ( exit 1 
    the for loop is finding the latest file inside the C:\Folder .
    The for loop is working fine , if I remove the if condition, but failing when it is inside the if condition. 
    Kindly help.
    Thanks,
    Ashis

    ":eof" is an inbuilt label that is assumed to be at the end of the code. "Goto :eof" causes the program to jump to that label. Now consider this construct. It demonstrates that "goto :eof" terminates the current segment but not necessarily the batch file.
    @echo off
    call :Sub1
    call :Sub2
    goto :eof
    :Sub1
    if  %value% GTR 5 goto :eof
    echo The value is %value%
    goto :eof
    :Sub2
    echo The date is %date%
    if /i %UserName% EQU Ashissau goto :eof
    echo You are not authorised to use this PC.
    goto :eof

  • Save for web gif loop settings not working

    Photoshop CC 2014 Mac Pro 10.8.5
    When I change looping settings from "once" to "forever" when saving a gif it only loops once. I tried multiple times. In the end what got it to work was changing looping back and fourth from "once" to "forever" over and over and over until randomly the preview started looping. At that point when I saved it worked correctly.

    I’m not really sure; it could be a Mac problem.
    This is the Adobe statement on Lion:
    Mac OS 10.7 has some exciting new features such as Autosave, Restore, Versioning, Full Screen Mode, and more multi-touch gestures. For Adobe applications to fully support these features, additional product development is required. Adobe is working to address this issue.
    There is one other thing you could try. Open a photo in the Editor and then hold down the Cmd+Opt+Shift Keys and press the letter S
    It’s also possible to delete the save for web preferences and then re-start the program to re-build them. This involves holding down Cmd+Opt keys and clicking Save for Web under the File menu. However this may not be possible if save for web is grayed out.
    Please let us know if you get it fixed.

  • Consumer Loops Does not work. conflict.

    I am changing a operating project. I attached both of the projects which are the normal one working as desired and problematic one. In problematic project, only the main producer loop operates but consumers do not. I really do not understand why this happens. Most probably, I missed out something but I could not find. Can anyone help me on it. Thanks in advance.
    Egemen
    Attachments:
    Projects.zip ‏1965 KB

    Why are you making the user press the start button so many times to get this thing to run?  The way you have it set up currently, you are setting up those DAQ tasks over and over again until the Start button is pressed.  That is just very inefficient and likely causing memory leaks.  You should only have to hit it once to start your test.  After the first button press of the start, you should sequence through your state machine from Setup, VSC Setup, Record, and Running.  You should not be looking at any of the button presses during this time.
    You also have a lot of redundant waits.  Looking at the running case alone, I see three sets of waits that much happen for that single state.  Just have the outside loop have the wait.  None of the inner cases/states need waits.
    And I don't see your queues to your first set of consumer loops being closed.  The consumer loops are waiting for the queue to be destroyed in order to stop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • While loop is not working properly

    Dear all,
    I have a procedure which takes data form other tables and fill one table.
    See partial code
    DECLARE
    --  WELLS
    CURSOR c_well
    IS
    SELECT *
    FROM   well
    where well_s = 3419740
    -- Welltest
    CURSOR c_welltest ( v_well_s NUMBER )
    IS
    SELECT *
    FROM   welltest_msr
    WHERE  well_s  = 3419740
    AND    check_ind = 1
    ORDER BY msr_date DESC
    -- FBHP
    CURSOR c_fbhp_dsr ( v_well_s NUMBER )
    IS
    select m.pfnu_s
    ,       m.msr_date
    ,      p.value
    from   msr_act m
    ,        msr_act_par p
    ,       r_msr_act_par r
    where  m.msr_act_s       = p.msr_act_s
    and    p.r_msr_act_par_s = r.r_msr_act_par_s
    and    r.abbr            = 'FBH1'
    and    m.pfnu_s             = 3419740
    and    p.check_ind         = 1
    ORDER BY m.msr_date DESC
    r_fbhp_dsr            c_fbhp_dsr%ROWTYPE;
    r_fbhp_dsr_leeg       c_fbhp_dsr%ROWTYPE;
    DELETE FROM so_welltest_plus;
    FOR r_well IN c_well
    LOOP
    r_fbhp_dsr         := r_fbhp_dsr_leeg;
       OPEN  c_fbhp_dsr ( r_well.well_s  );
       FETCH c_fbhp_dsr INTO r_fbhp_dsr;
    FOR r_welltest IN c_welltest ( r_well.well_s )
       LOOP
    WHILE NVL(r_fbhp_dsr.msr_date,r_welltest.msr_date - 1) >=
    r_welltest.msr_date
         LOOP
           FETCH c_fbhp_dsr INTO r_fbhp_dsr;
         -- dbms_output.put_line (r_fbhp_dsr.msr_date);
           IF    c_fbhp_dsr%NOTFOUND
           THEN
              BEGIN
                 r_fbhp_dsr := r_fbhp_dsr_leeg;
                 EXIT;
              END;
           END IF;
         END LOOP;
    INSERT INTO SO_WELLTEST_PLUS
           (    WELL_S
           ,    WELLNAME
           ,    WELLTEST_DATE
           ,    BFPD
           ,    BOPD
           ,    BWPD
           ,    WATERCUT
           ,    FBHP
           ,    FBHP_SRO
           ,    FBHP_DMG
           ,    FBHP_DATE
           ,    FBHP_SRO_DATE
           ,    FBHP_DMG_DATE
    VALUES
            (      r_well.well_s
             ,     r_well.wellname
             ,     r_welltest.msr_date
             ,     r_welltest.fld_rate
             ,     r_welltest.oil_rate
             ,     r_welltest.wtr_rate
             ,       v_watercut
        ,       r_fbhp.value
            ,      r_fbhp_dsr.value
            ,     r_fbhp_dmg.value
        ,    r_fbhp.msr_date
        ,    r_fbhp_dsr.msr_date
        ,    r_fbhp_dmg.msr_date
    END LOOP;
    CLOSE c_fbhp_dsr;
    COMMIT;
    END LOOP;
    END;I will explain what the code is doing now:
    Result cursor C_WELL:
    +WELL_S+ +MSR_DATE+
    3419740     23-OCT-12
    3419740     18-SEP-12
    3419740     28-AUG-12
    3419740     16-JUL-12
    3419740     14-JUN-12
    3419740     11-MAY-12
    3419740     12-APR-12
    3419740     15-MAR-12
    3419740     16-FEB-12
    3419740     23-JAN-12
    3419740     05-JAN-12
    3419740     07-DEC-11Result for CURSOR c_fbhp_dsr:
    +PFNU_S+ +MSR_DATE+ +VALUE+
    3419740     23-OCT-12  445
    3419740     19-SEP-12      447
    3419740     28-AUG-12      441
    3419740     16-JUL-12      449
    3419740     14-JUN-12      449
    3419740     09-MAY-12      451
    3419740     11-APR-12      447
    3419740     12-DEC-11      434
    3419740     01-DEC-11      426After the while loop the data is inserted into the table:
    +well_s+        +wellname+  +welltest_date+  +fbhp_sro+ +fbhp_sro_date+
    3419740            3Z22               23-OCT-12     447                 19-SEP-12
    3419740            3Z22               18-SEP-12     441                 28-AUG-12
    3419740            3Z22               28-AUG-12     449                 16-JUL-12
    3419740            3Z22               16-JUL-12             449                 14-JUN-12
    3419740            3Z22               14-JUN-12     451                 09-MAY-12
    3419740            3Z22               11-MAY-12     451                 09-MAY-12
    3419740            3Z22               12-APR-12     447                 11-APR-12
    3419740            3Z22               15-MAR-12     434                 12-DEC-11
    3419740            3Z22               16-FEB-12     434                 12-DEC-11
    3419740            3Z22               23-JAN-12     434                 12-DEC-11
    3419740            3Z22               05-JAN-12     434                 12-DEC-11
    3419740            3Z22               07-DEC-11     426                 01-DEC-11As you can see the value 23 oct 2012 from CURSOR c_fbhp_dsr is not being inserted.
    That value should also be inserted.
    The result should be like this:
    +well_s+        +wellname+  +welltest_date+  +fbhp_sro+ +fbhp_sro_date+
    3419740            3Z22               23-OCT-12     445                 23-OCT-12
    3419740            3Z22               18-SEP-12     441                 28-AUG-12
    3419740            3Z22               28-AUG-12     441                 28-AUG-12
    3419740            3Z22               16-JUL-12             449                 16-JUL-12
    3419740            3Z22               14-JUN-12     449                 14-JUN-12
    3419740            3Z22               11-MAY-12     451                 09-MAY-12
    3419740            3Z22               12-APR-12     447                 11-APR-12
    3419740            3Z22               15-MAR-12     434                 12-DEC-11
    3419740            3Z22               16-FEB-12     434                 12-DEC-11
    3419740            3Z22               23-JAN-12     434                 12-DEC-11
    3419740            3Z22               05-JAN-12     434                 12-DEC-11
    3419740            3Z22               07-DEC-11     426                 01-DEC-11I did a dbms output on the while loop and it isn't collecting 23-oct-12.
    Some please on this please.
    Thanks,
    Diana

    Hi,
    My procedure is not exactly doing what i want it to do.
    My question is, how can i get it to do this:
    Loop through cursor c_fbhp_dsr and c_welltest based on parameter well_s from c_well (see the data in first post).
    When the MSR_DATE of c_fbhp_dsr is the same as MSR_DATE of c_welltest for the same WELL_S ( see cursor c_well), then data is inserted in the SO_WELLTEST_PLUS table. When the dates are not equal, then insert should be done on condition MSR_DATE of c_fbhp_dsr should be > than MSR_DATE of c_welltest.
    INSERT INTO SO_WELLTEST_PLUS
           (    WELL_S
           ,    WELLNAME
           ,    WELLTEST_DATE
           ,    FBHP_SRO
           ,    FBHP_SRO_DATE
    VALUES
            (      r_well.well_s
             ,     r_well.wellname
             ,     r_welltest.msr_date
             ,      r_fbhp_dsr.value
             ,    r_fbhp.msr_date
            );Example:
    CURSOR C_RBHP:
    +PFNU_S+ +MSR_DATE+ +VALUE+
    3419740     23-OCT-12  445
    3419740     19-SEP-12      447
    3419740     28-AUG-12      441
    3419740     16-JUL-12      449
    3419740     14-JUN-12      449
    3419740     09-MAY-12      451
    3419740     11-APR-12      447
    3419740     12-DEC-11      434
    3419740     01-DEC-11      426CURSOR C_WELLTEST:
    +WELL_S+ +MSR_DATE+
    3419740     23-OCT-12
    3419740     18-SEP-12
    3419740     28-AUG-12
    3419740     16-JUL-12
    3419740     14-JUN-12
    3419740     11-MAY-12
    3419740     12-APR-12
    3419740     15-MAR-12
    3419740     16-FEB-12
    3419740     23-JAN-12
    3419740     05-JAN-12
    3419740     07-DEC-11Desired output:
    +well_s+        +wellname+  +welltest_date+  +fbhp_sro+ +fbhp_sro_date+
    3419740            3Z22               23-OCT-12     445                 23-OCT-12
    3419740            3Z22               18-SEP-12     441                 28-AUG-12
    3419740            3Z22               28-AUG-12     441                 28-AUG-12
    3419740            3Z22               16-JUL-12             449                 16-JUL-12
    3419740            3Z22               14-JUN-12     449                 14-JUN-12
    3419740            3Z22               11-MAY-12     451                 09-MAY-12
    3419740            3Z22               12-APR-12     447                 11-APR-12
    3419740            3Z22               15-MAR-12     434                 12-DEC-11
    3419740            3Z22               16-FEB-12     434                 12-DEC-11
    3419740            3Z22               23-JAN-12     434                 12-DEC-11
    3419740            3Z22               05-JAN-12     434                 12-DEC-11
    3419740            3Z22               07-DEC-11     426                 01-DEC-11

  • Flash export of slideshow keeps looping, hyperlinks not working.

    I have made an intro page for a website using Keynote 3 <http://web.mac.com/archstanton1862/iWeb/Tricktrial/Welcome.html> I can't figure out why the page keeps looping. It should go through it's transitions and then stop. Right? Also, the ENTER hyperlink is supposed to go to <http://web.mac.com/archstanton1862/iWeb/Trickracing1/Menu.html> but it instead goes to www.apple.com/startpage What's the deal? I have loop slideshow "unchecked" in the playback options. I used iWeb Enhancer 1.0.1 to embed the flash animation html, and it worked awesome. It just keeps looping and the hyperlink is wrong. Is what I'm wanting to do even possible? HELP!!

    Looks like everything's working to me. I was having this same problem, but never got around to uploading the flash to the site because it keeps looping for me, too. But your's seems to be fine--did you do anything to correct this, or did it seem to fix itself?!
    Bryan

  • Not woking FORALL loop in  Procedure related to OCCI

    hi Guys,
    I have created a procedure with Object as Argument....... give below details...
    My requirement is:
    Create a Userdefined type which is collection of Attribute e.g (Roll,Salary,Address,Name,Mobile)
    Create Index table OR Varray of Userdefined Type....
    Create a pocedure argument is Object of Type Varray Or IndexTable......
    FORALL.... Loop
    Insert Statement
    This procedure is Calling in OCCI.....
    PROCEDURE
    CREATE OR Replace PROCEDURE Object_Student(p student_detail)
    AS
    BEGIN
    FORi in p.first .. p.last loop
    INSERT INTO Sample_mix VALUES (p(i));
    end loop;
    COMMIT;
    END Object_Student;
    This above was not working..........
    ERROR:Not enough values....
    After that I changed the PL/SQL in the INSERT statement....
    CREATE OR Replace PROCEDURE Object_Student(p student_detail)
    AS
    BEGIN
    FOR i in p.first .. p.last loop
    INSERT INTO Sample_mix VALUES (p(i).roll,P(i).SALARY,P(i).ADDRESS,P(i).Name,P(i).mobile);
    end Loop;
    COMMIT;
    END Object_Student;
    This is Running Successfully....
    Result: Reading Records taking too much time.... OCCI
    Terefore , I changed From FOR Loop TO FORALL loop..
    CREATE OR Replace PROCEDURE Object_Student(p student_detail)
    AS
    BEGIN
    FORALL i in p.first .. p.last
    INSERT INTO Sample_mix VALUES (p(i));
    COMMIT;
    END Object_Student;
    ERROR: Not Enough values......
    then modified the procedure
    CREATE OR Replace PROCEDURE Object_Student(p student_detail)
    AS
    BEGIN
    FORALL i in p.first .. p.last
    INSERT INTO Sample_mix VALUES (p(i).roll,P(i).SALARY,P(i).ADDRESS,P(i).Name,P(i).mobile);
    COMMIT;
    END Object_Student;
    The Above Code is Not working..... giving the following ERRORS...
    LINE/COL ERROR
    5/32 PLS-00436: implementation restriction: cannot reference fields of
    BULK In-BIND table of records
    5/42 PLS-00436: implementation restriction: cannot reference fields of
    BULK In-BIND table of records
    5/54 PLS-00436: implementation restriction: cannot reference fields of
    BULK In-BIND table of records
    5/67 PLS-00436: implementation restriction: cannot reference fields of
    BULK In-BIND table of records
    LINE/COL ERROR
    Could anybody tell me why here ForALL loop is not Working....??
    Everything is successed... Only FORALL loop is not Working in the Procedure....
    Is there any Other way .... Please reply me ASAP
    Advance thanx for them....
    Sanjay

    I alreary added with same structure.....
    Still giving the Same Error
    I searched and got some help........inserted Like below example....
    CREATE OR Replace PROCEDURE emp_Proc(p emp_arr)
    AS
    BEGIN
    forall i in p.first .. p.last
    INSERT INTO emp VALUES p(i);
    COMMIT;
    END emp_Proc;
    LINE/COL ERROR
    5/2 PL/SQL: SQL Statement ignored
    5/2 PL/SQL: ORA-00932: inconsistent datatypes: expected - got -
    Is there any solve of folling Error....

  • Loop not working correctly in smartform

    Hi Experts,
    I have developed a smart form wherein,  the import params of form is a table (multiple records).The design of the form is, the first 10 lines is populated with a static text followed by the import table and follwed by a conclusion text. in simple words the design is, in the header a static text (hard coded text) will be populated in the main body an internal table will be populated and in the footer a static text (hard coded text) will be populated.Initially I have created three seperate windows for header, main body and footer, this was working fine for few records (import table) sometimes it happened the records were very huge and table entries over lapped the footer text. How to handle this kind issue? Can we increase the page size dynamically?? and also as per the user requirement the output of the form should have a provision to download the form on thier desktop in word format. Can some one help me in building this functionality.
    Thanks and Regards,
    Srini...

    Hello Mr. Srinivas,
    There is no provision to download the form in word format, but if you want to still download the form in real means open smartforms --> Utilities(M) --> download form.
    this will download the whole program wahtever you hvae chnge made in this. Make the back copy of form and after edition in form make down load again this form and than find out the differnce. May be this will be helpful. And also if yr loop is not working with smartform. Do write the similar code in yr driver program for the loop this will definetely helpful.
    Regards,
    Akg
    Edited by: akg.amit on Mar 25, 2011 10:08 AM

Maybe you are looking for