(See job below)

 

I though I would see in the infolog "1,2,3,1,2,3" but that is not he case, I see "1,2,3".  It seems like p1 and p2 use the same cursor for temporary table.  Is it possible to browse the same temporary table with different cursor?

 

Steeve…

 

static void Job1(Args _args){

    TmpSum tmpSum, p1, p2;

    ;

    tmpSum.Key = "1";

    tmpSum.insert();

    tmpSum.Key = "2";

    tmpSum.insert();

    tmpSum.Key = "3";

    tmpSum.insert();

 

    p1 = tmpSum;

    p2 = tmpSum;

 

    select p1;

    select p2;

 

    while (p1) {

        info(p1.Key);

        next p1;

    }

 

    while (p2) {

        info(p2.Key);

        next p2;

    }

 

}

 

Steeve...

 



Sharing the knowledge on Axapta.



Yahoo! Groups Links

Reply via email to