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.
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.