Paul P
15th October 2002, 12:41
Dear all,
After I issued stpapi.put.field to every single field in type 4 form, I issued an stpapi.form.command. The outcome seems OK, meaning the session being controlled by API really does what I want it to do. Funny thing is that the stpapi.form.command still returns a "not allowed" error message although the processing was done completely and satisfactorily. This "not allowed" message is result of not filling up a mandatory form field. But I've issued stpapi.put.field to every field. Should I then just ignore such message whenever it comes because the processing was completed well anyway?

Thanks very much

Rgds,
Paul

mark_h
15th October 2002, 14:32
I have had several function servers return errors, when it appears everything worked. So I do ignore the errors. I would suggest that you verify that the record did get inserted appropriately and everything works with it. So verify that everything does work and then decide if you want to skip the error.

I actually do this check in FS:

f4107s000.insert(1,fserr)
if(strip$(fserr)<>"" and strip$(fserr)<>"Command cancelled" and
fserr(1;5)<> "Note:") then


So as long as I get a "Command cancelled" or "Note:" error everything is fine.

Mark