Steeve Gilbert <[EMAIL PROTECTED]> wrote:
Thank Varden for the answer.
Ashi, what seems to be the problem here? It is working has expected. I've tried that :
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.setTmpData(tmpSum);
p2.setTmpData(tmpSum);
while select p1 {
//info(p1.Key);
while select p2 {
info(p1.Key + "-" + p2.Key);
//next p2;
}
//next p1;
}
}
Steeve...
-----Message d'origine-----
De : Ashi Singh [mailto:[EMAIL PROTECTED]
Envoyé : 19 février 2005 01:37
À : Axapta-Knowledge-Village@yahoogroups.com
Objet : Re: [Axapta-Knowledge-Village] Temporary table
Hi Steeve,
Once again i am troubling you. But as a Novice to be in Axapta it is a Normal scenarion.
to be alaways in Fix.
friend as i told you earlier mine problem with movement of Cursor of temporary table .
I got a idea from your mail which you have posted.
One of your mail response in which you have asked with help of a job that why it's not showing 123123 and showing instead just 123
Then i was thinking that why i should not use the same method in my case that is
query_A=new Query();
query_A=element.args().parmObject();
// objSOA_Ash = element.args().parmObject();
objSOA_Ash=element.args().caller().getclassobj();
tmpCustTrans=element.args().caller().gettabledata();
tmpCustTrans1.setTmpData(tmpCustTrans);
offCustTrans.setTmpData(tmpcustTrans);
//tmpCustTrans1=element.args().caller().gettabledata1();
// offCustTrans=element.args().caller().gettabledata2();
// tmpCustTrans=hello.args().record().dataSource();
Share your views but outrightly the one thing that i am seeing is that during scrolling like
while select tmpcusttrans index hint AccountDateIdx
where tmpCustTrans.tmpsreDRNo == SalesTable.SalesId
{
while select tmpcusttrans1 index hint AccountDateIdx
where tmpcusttrans1.tmpRecID==tmpcusttrans.tmpRecID
{
print tmpcusttrans.tmpRecID;
print tmpcusttrans1.tmpRecID;
}
}
may have some problem, enrich me with your views .
Loooking ahead for your views.
Till then bye.
Steeve Gilbert <[EMAIL PROTECTED]> wrote:(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.
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
Sharing the knowledge on Axapta.
Yahoo! Groups Sponsor |
Get unlimited calls to U.S./Canada |
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.