rmarles
3rd June 2010, 17:38
Hi All

Linking the Release Outbound and Print Packing Slips sessions using AFS.

Finally have the sessions running correctly, however, prior to linking the sessions, Release Outbound was typically run to a Display device, the data skimmed for errors, and then Print Packing Slips was run.

What I'm finding is that the display device does appear, but then disappears when the stpapi.end.session("tdilc4202m000") call is made. (Which is pretty quick, doesn't give the user time to review)

Anyone figure out a way around this?

Thanks.

NPRao
3rd June 2010, 20:16
I don't think the D-display works for the AFS. Alternatively, you can get the spool.fileout or the output file and then call the function - display.file() (http://www.baanboard.com/baanboard/showthread.php?t=7823&highlight=display.file)

mark_h
3rd June 2010, 20:33
Well - I don't use the plain old D device, but d66 all the time. I have never had a problem with this. I even just tested it again to make sure. What SP are you on? I know SP-27 has had some issues.

rmarles
3rd June 2010, 20:37
SP20.

I put NPRao's suggestion in place, with the idea of capturing the spooled file and displaying it.

Strangely enough, when I was debugging it this time, the display window remained open, before it hit the "display.file" line.

Maybe just adding the #pragma used dll ottdlldisplay delcaration was all that was needed.