thomas_b
4th March 2002, 19:43
I've created a custom api session which runs a standard Baan session and prints a modified Baan report. The report script has been modified so it delivers a message to the user.

My problem is when running the api session, the message which is generated from the report script appears as a shell message (ie black screen). Is there anyway to suppress this message, or at least retrieve the message code so that the message can be displayed in gui format? I've tried the stpapi.get.mess function, but it doesn't work. I believe this function works when the message is generated from the session program script, rather than via a report script.

Any advice would be appreciated.

Thanks,
thomas_b

mark_h
4th March 2002, 20:20
Not sure if this would work in the report or not, but you could try checking the api.mode in the report script.

if not api.mode then
message()
endif

Right off hand I can not think of a way to trap the message from the report script.

Mark

NPRao
4th March 2002, 22:33
Hi Thomas and Mark,

I am looking for the API documents. If you have then can you please post them up here?

Thanks!