@GetStartDocInfo
Syntax
@GetStartDocInfo(DBHANDLE1;ID2);
@GetStartDocInfo(DBHANDLE1;ID2;NUMBER3);
Description
This @Function returns the DBHANDLE and the NOTEID of the document that caused this program to start.
In DBHANDLE1 is the DBHANDLE of the database containing the triggering document is returned.
In ID2 the NOTEID of the triggering document is returned.
In NUMBER NUMBER3 the @CallPRC depth is returned.
Examples for NUMBER3 values:
0=Not called by @CallPRC called.
1=Wurde von @CallPRC called.
2=Zwei @CallPRC Ebenen Tief.(z.B. AEF COMMAND PROCESS -> @CallPRC -> @CallPRC)
If the start of the program was triggered by the APIJOB-DB ausgelöst ist the ReturnWert the @Function NUMBER 1.
If the start of the program was triggered by the LOAPI-DB ausgelöst ist the ReturnWert the @Function NUMBER 0.
Example: @GetStartDocInfo(DBHANDLE1;ID1):
Ret:=@GetStartDocInfo(dbh1;id2);
@LogReport(@GetDataTyp(Ret));
@LogReport(Ret);
@LogReport(@GetDataTyp(dbh1));
@LogReport(dbh1);
@LogReport(@GetDataTyp(id2));
@LogReport(id2);
Note : This text was machine-translated and may contain inaccuracies.
