joepte
7th February 2007, 20:16
Hi - I have question regarding the stpapi.put.field function.
ex. stpapi.put.field.("tdslsc101m000", "tdsls999.cprj", cprj.901)

so in the ex. I want to start tdslsc101m000 and pass the project number but I am confused as to what the 2nd and 3rd fields are.
From the Baan AFS doc I get field 2 is "Name of the field whose value is desired" so is that the name of the form field in tdslsc101m000?

or is the 3rd field the form field.

Thanks for any help

mark_h
7th February 2007, 21:29
This is the appropriate forum for questions on AFS. There is a sticky post at the top of the forum with documentation - I recommend reading it and just looking throught the forum at examples. To answer your questions - yes field two is the name of the field on the session form. Field 3 is the string representation of the field containing the data to be sent to the form.

mark_h
7th February 2007, 21:32
Forgot to mention - things that work at one site might not work at yours. It is always best to current on the tools and stpapi patches - I even recommend the current patch for the session. Also on each SP you will need to re-test functionality to just make sure baan did not do something to break your AFS code.