wikizhou
4th July 2007, 08:47
When I use stpapi.insert to insert data,but show error message;

the error message is Command Disabled;

but refer the document : Command disabled: no insert is possible in the current state of the session.

Please tell me which state of session cannot insert?

thanks
B.R
Wiki Zhou

george7a
4th July 2007, 09:23
Hi,

Can you please post your code?

- George

wikizhou
4th July 2007, 10:15
stpapi.put.field( "tisfc9102m01t", "timfc010.pdno",impt.pdno)
stpapi.put.field( "tisfc9102m01t", "timfc010.mitm",impt.mitm)
stpapi.put.field( "tisfc9102m01t", "timfc010.mser",impt.serl)
stpapi.insert("tisfc9102m01t",1,error)

then the error message is "Command Disabled"

bigjack
4th July 2007, 18:21
HI,

What is the baan version. If on LN, is the session tisfc9102m01t a overview session? If yes then you need to start the synchronised dialog session first and issue the put.fields on the child session.

Bye