Finnigan
28th August 2008, 13:42
Greetings,

is there a problem with ERP/LN and the command
stpapi.zoom.option ?

This command ends everytime with a compiler error unresolved reference.
Other commands like stpapi.put.field works fine.

the directive #pragma used dll ottstpapihand is present.

george7a
28th August 2008, 13:55
Hi,

Here are the functions that are available in LN's ottstpapihand (at least on my system)function extern long stpapi.browse.set(
const string session(),
const string option(),
[ ref string err.mesg() ] )


function extern long stpapi.browse.view(
const string session(),
const string option(),
[ ref string err.mesg() ] )


function extern long stpapi.change.view(
const string session(),
[ ref string err.mesg() ] )


function extern stpapi.clear(
const string session() )


function extern stpapi.continue.process(
const string session(),
ref string err.mesg() )


function extern long stpapi.delete(
const string session(),
boolean do.save,
ref string err.mesg() )


function extern stpapi.end.session(
const string session(),
[ ref string err.mesg() ] )


function extern long stpapi.enum.answer(
const string session(),
const string question(),
bset answer )


function extern long stpapi.find(
const string session(),
[ ref string err.mesg() ] )


function extern stpapi.form.command(
const string session(),
long command.type,
const string command.prog(),
ref string err.mesg() )


function extern string stpapi.get.error(
)


function extern stpapi.get.field(
const string session(),
const string field.name(),
ref string value(),
[ long element ] )


function extern string stpapi.get.mess.code(
const string session(),
[ ref string err.mesg() ] )


function extern stpapi.handle.subproc(
const string session(),
const string sub.prog(),
const string action(),
[ const string callbackobject() ],
[ const string callbackfunction() ] )


function extern long stpapi.insert(
const string session(),
boolean do.save,
ref string err.mesg() )


function extern long stpapi.mark(
const string session(),
[ ref string err.mesg() ] )


function extern stpapi.print.report(
const string session(),
ref string err.mesg() )


function extern stpapi.put.field(
const string session(),
const string field.name(),
const string value(),
[ long element ] )


function extern long stpapi.recover(
const string session(),
ref string err.mesg() )


function extern long stpapi.save(
const string session(),
ref string err.mesg() )


function extern stpapi.set.report(
const string session(),
const string reportname(),
const string device(),
ref string err.mesg() )


function extern long stpapi.synchronize.dialog(
const string session(),
const string mode(),
ref string err.mesg() )


function extern long stpapi.update(
const string session(),
boolean do.save,
ref string err.mesg() )

You might want to check what are the functions that is inside your "ottstpapihand" DLL. You can do that using the bic_info command.

- George

Finnigan
28th August 2008, 15:43
Thank you very much,

i've used baanIV before only.

sjfarinas
2nd November 2009, 20:40
ok, Finnigan what di u do to solve the problem?

Finnigan
2nd November 2009, 20:58
It was quite easy,
i have used stpapi.form.command to start the required function.

The description of George7a to get a list of commands was very helpful.

mark_h
3rd November 2009, 14:04
There is a sticky thread at the top of this forum that lists most if not all of the commands. Also I do not know about ln, but in 4c4 you can run ttstpcreatdll on a session. This will create a library that you can either use(i choose not to anymore) or reference. This library will show you what commands the Baan software thinks are available - note that it is not always 100% correct, but is a good reference point.