Gets the only document ( further data source ) for a source document and transfers data from it into a target document. Use the function instead of consequent calls of two other functions - DEgetD4D and DEprD2D, to reduce count of code lines and exclude presence of data source in them.
Syntax
DEgetSrcD4D( D4Dname$, D4DtrgCond$, D4DsrcDoc D4Dsilent, D2Dnames$, D2Dprocess%, D2DtrgDoc )
Arguments
D4Dname$ - string, input. The name of DocExt\DocForDoc config's item which the data source should be got by. Read more about this name in the help topic - DocExt\DocForDoc config. To use several configs items at the same time, type their names in the string through a space.
D4DtrgCond$ - string, input. An additional condition in Formula Language to select the data source from got ones using the DocExt\DocForDoc config's item.
D4DsrcDoc - NotesDocument, input. The source document which the data source should be got for.
D4Dsilent - boolean, input. The value is True (-1) means that if the data source has not been got, no message box will be displayed.
D2Dname$ - string, input. The name of DocToDoc config by which the data from the got data source should be transferred into the target document. To use several configs at the same time, type their names in the string through a space.
D2Dprocess% - integer, input. The number of a transfer process: 1 - to add data, 3 - to erase data. Other values are also provided. Read more about this number in the help topic - Function DEprD2D.
D2DtrgDoc - NotesDocument, modified. The target document which the data from the got data source should be transferred into. The function can change the document but doesn't save it.
Return
Boolean. The result True (1) means that the data source was got and some its data have been transferred into the target document, and False (0) that at least one of this hasn't occurred.
Configs used
DocExt\DocForDoc, DocToDoc.
Topic links:
See also: