Andy..
14th September 2007, 11:03
Hi, found a strange problem using confirm picklist. It seems sometimes when you select a record using api find it marks the next pick sequence line (eg select line 25 and it goes to line 30). The same behaviour is exhibited when running the session in Baan and clicking 'find'. So we coded around this where if it finds the wrong/next record it goes to the previous line using:
stpapi.browse.set( "whinh2525m100", "prev.set" )
this USUALLY works, but sometimes even the prev.set command still gets stuck at the 'next' line. We have run this in debug and checked the prev line is there in the std session and valid and it all checks out fine, but the prev.set still doesnt go to the previous pick sequence. I'd say this is working about 70% of the time at the moment and cannot work out why. It seems more likely to fail with a pick sequence line ending in '5'!
Any suggestions as to
a. why find selects the next line in the session
b. why the workaround of moving to the previous line is not working reliably
Thanks!
stpapi.browse.set( "whinh2525m100", "prev.set" )
this USUALLY works, but sometimes even the prev.set command still gets stuck at the 'next' line. We have run this in debug and checked the prev line is there in the std session and valid and it all checks out fine, but the prev.set still doesnt go to the previous pick sequence. I'd say this is working about 70% of the time at the moment and cannot work out why. It seems more likely to fail with a pick sequence line ending in '5'!
Any suggestions as to
a. why find selects the next line in the session
b. why the workaround of moving to the previous line is not working reliably
Thanks!