tianalita
12th December 2001, 14:54
Hi,

I'd like to create a new record on session tdsls4101m000.
It doesn't work => i receive the following message "Command cancelled" after the insert function in API. ( stpapi.insert )

Please help me.

mark_h
12th December 2001, 17:31
Hi Tianalita!!

Did you ever get the inventory adjustment FS working?

Anyway - are all of the appropriate fields being set before the insert? It seems to me that once before when I did not get all of the fields set correctly I got the "command cancelled". Since we do not use that session I do not know what type of quirks the session may have. I know in some places where I thought I should be doing an insert I ended up doing a save or update. Maybe if you post (or attach) the code someone who has experience with this session may catch the problem.

Mark

tianalita
13th December 2001, 09:19
Hi,

tianalita
13th December 2001, 09:23
Hi,

you must avoid the "choice.again" function. The API doesn't work with this function.

For every choice.again in the script, i write the following script:

if not api.mode then
choice.again()
endif

mark_h
13th December 2001, 18:30
Thanks for the response. Since we do not have source code I can not always tell what causes my problems when writing function servers. I am glad you found a solution.

Mark