rustem
3rd June 2003, 09:44
Problem: I need to execute session, then fill its variables and execute its choice (cont.process). How can manage it? I mean executing of choice (the rest is not a problem)

richard
3rd June 2003, 15:51
The api handling is a good and simple solution.

Example:

stpapi.put.field("tiedm1201m000","eitm.f",lu.eitm)
stpapi.put.field("tiedm1201m000","revi.f",lu.revi)
stpapi.put.field("tiedm1201m000","cprj.t"," ")
stpapi.put.field("tiedm1201m000","item.t",lu.item)
stpapi.put.field("tiedm1201m000","citg.t",lu.citg)
stpapi.continue.process("tiedm1201m000",rpt.mess)

regards

rustem
3rd June 2003, 15:59
But where are they declared? Which library do I have to use (link or include) to use those functions?

Han Brinkman
3rd June 2003, 16:08
To compile programs that use the AFS functions, the library ottstpapihand must
be linked to the program or code #pragma used dll ottstpapihand in the script.


Rgrds,
Han

rustem
3rd June 2003, 16:12
Thanx a lot!! But I have a final question: where can I find manuals/documents/web pages that describe usage of stpapi* functions?

richard
3rd June 2003, 16:16
Zip-file attached

mark_h
3rd June 2003, 17:49
For other questions and answers please see the AFS/DDC/OLE: Function servers (http://www.baanboard.com/baanboard/forumdisplay.php?s=&forumid=59). This forum is dedicated to this type function servers. If you search the forum you may even find some examples.

Good Luck!

Mark

rustem
3rd June 2003, 17:55
Thanx a lot!