tan.wang
9th January 2014, 05:05
When I use ASF,to run a session and call a form command,by:

stpapi.form.command("tisfc0130m000", 5, "complete.oper.with.commit", error.msg)

there return a error by show.dal.messages ( MSG.ALL)
in this situation i can't get the error message.

I also try to use
error.code = stpapi.get.mess.code("tisfc0130m000", error.msg)
but also can't get the errorcode and error mssage.

when threre use show.dal.messages ( MSG.ERROR)
error mssage can be get bystpapi.form.command("tisfc0130m000", 5, "complete.oper.with.commit", error.msg)

does any body know how to get error return by show.dal.messages ( MSG.ALL),In AFS?

thanks a lot

bhushanchanda
9th January 2014, 07:23
Hi,

I guess you need to get the error message before showing.

Try :-

dal.get.last.message () or dal.get.error.message()

And then show it.

tan.wang
10th January 2014, 07:50
Hi,

I guess you need to get the error message before showing.

Try :-

dal.get.last.message () or dal.get.error.message()

And then show it.
------------------------------------------------
;)thank you,bhushanchand