baan_afbs
3rd December 2002, 16:27
I have the following code:

stpapi.put.field("tdsls1200m000","cust",str$(collect.by.cust))
stpapi.put.field("tdsls1200m000", "order", str$(dir.del.order))

stpapi.set.report("tdsls1200m000", "rtdsls120001000", "D", afs.err)
stpapi.form.command("tdsls1200m000", 2, "exec.cont.process", afs.err)
if not isspace(afs.err) then
message("%s", afs.err)
endif


The good--If there is data for the report, the report displays to the screen.
The Bad -- if there is no data, then nothing appears...no report, no message, and the value of afs.err remains blank.

I need to display 'no data within selection' as standard baan would.

Any help would be very helpful.

mark_h
3rd December 2002, 19:53
After the stpapi.continue try the stpapi.get.mess.code and see if you get the code for the message. I know I did this somewhere, but I can't find it.


Mark

baan_afbs
3rd December 2002, 20:32
mark_h,

It is working now, my friend...thank you ! may the baan gods grant you many wishes!