jholdrid
1st March 2002, 18:24
I am new to using Baan API calls. My users have requested that
they have a single key stroke to execute tipcf5280s000.
My buffer is filled correctly and the session starts correctly wtih the following code.
stpapi.put.field("tipcf5280s000", "proj.code", tdsls041.cprj)
stpapi.put.field("tipcf5280s000", "pvar.code", tdsls041.cpva)
stpapi.put.field("tipcf5280s000", "item.code", tipcf500.item)
stpapi.continue.process("tipcf5280s000", o.mess)
After the user would hit the continue button of the session, several question dialog boxes
pop up. THe api script appears to blow right by these questions (I have used the
debugging tools to analyze). My Bill of materials consequently does not reflect any
configurator modifications.
I have placed the following code both before the stpapi.continue.process and after
with the same results. The stpapi.enum.answer scripts change the default answers -
but I have removed these calls and modficied the questions to be the ones that I
want and the api session still by passes these questions.
stpapi.enum.answer("tipcf5280s000", "tipcf52805", tcyesno.no)
stpapi.enum.answer("tipcf5280s000", "tipcf51208", tcyesno.no)
stpapi.enum.answer("tipcf5280s000", "tipcf52806", tcyesno.yes)
Can anyone make a suggestion as to how I get the questions to be asnwered and
the process to work. I do not have access to Baan code to review what is happening
within this session.
Thanks
they have a single key stroke to execute tipcf5280s000.
My buffer is filled correctly and the session starts correctly wtih the following code.
stpapi.put.field("tipcf5280s000", "proj.code", tdsls041.cprj)
stpapi.put.field("tipcf5280s000", "pvar.code", tdsls041.cpva)
stpapi.put.field("tipcf5280s000", "item.code", tipcf500.item)
stpapi.continue.process("tipcf5280s000", o.mess)
After the user would hit the continue button of the session, several question dialog boxes
pop up. THe api script appears to blow right by these questions (I have used the
debugging tools to analyze). My Bill of materials consequently does not reflect any
configurator modifications.
I have placed the following code both before the stpapi.continue.process and after
with the same results. The stpapi.enum.answer scripts change the default answers -
but I have removed these calls and modficied the questions to be the ones that I
want and the api session still by passes these questions.
stpapi.enum.answer("tipcf5280s000", "tipcf52805", tcyesno.no)
stpapi.enum.answer("tipcf5280s000", "tipcf51208", tcyesno.no)
stpapi.enum.answer("tipcf5280s000", "tipcf52806", tcyesno.yes)
Can anyone make a suggestion as to how I get the questions to be asnwered and
the process to work. I do not have access to Baan code to review what is happening
within this session.
Thanks