rohan_rege
20th September 2002, 21:42
hi ,
i have used AFS/ API to simulate the session tfacp1110s000 which then calls tfacp1130s00......

when i checked the baan shell for processes active ..it showed me
tfacp1100m000
tfacp1101s000
tfacp1110s000
tfacp1130s000
.........as i wanted
but when i use stpapi.get.field() on fields of tfacp1130s000 to cross check whether it has zoomed from tfacp1110s000 with the proper records......it shows no values for all fields ..indicating that the tfacp1130s000 which zoomed from tfacp1110s000 doesnt have the occurence filled.

any suggestions why this is happening ?



rgsd
Rohan

gfasbender
21st September 2002, 02:47
Rohan,

You still have to position yourself on the correct record in the session using stpapi.find() or stpapi.change.view(). Don't assume the session is controlling the record set.

rohan_rege
3rd October 2002, 19:27
hi ,

i am posting the code in tfacp1130s000
as u see the tfacp200.appr decides ....zooming to tfacp1131s000
automatically...

so i reset it to a other value ...so i can get control over when to say continue in tfacp1130s000 and zoom to tfacp1131s000
(the automatic zooming is avoided)


choice.cont.process:

on.choice:

on case tfacp200.appr
case tfacp.matc.pur:
zoom.to$("tfacp1131s000",z.session,"tfacp1130","",0)



now the problem is , some times when i change.view to get to a particular record...it works...but other times it doesnt work
if a Matching/approving has already been done ....in tfacp1131s000...this is ok functionally ..since it shudnt update matched/approved record

but currently for my record no matching has been done btw the receipts and invoice ...even then it shows Update cancelled error and hence change.view returns 0

any ideas...????

rgds
Rohan