The function exports an object from configuration to an XML document.
Declaration
INT %XML_ExportD2ObjToDocument(
HBJ in objID,
TEXT in eportSettings
)
Parameters
objID
The value of HBJ or INT type which represents the unique identifier of object (HOBJ).
exportSettings
XML Export settings (optional parameter) in form [setting={on/off} [setting={on/off} [...]]].
Return value
Handle to the open XML document.
Description
The function asks the D2000 Server process to export the object (according to unique identifier of the object (HOBJ) which has been entered by parameter objID) to XML documents. If specific object does not exist or the parameter represents an invalid value, the function will get back the invalid value.
Example
INT _doc
_doc := %XML_ExportD2ObjToDocument(_hbj)
INT _doc
_doc := %XML_ExportD2ObjToDocument(Sec\HBJ, "zero_hobj=off exp_logs=on")
Note
Error description can be called by means of the ESL function %XML_GetLastErrorMessage (if the function gets back the invalid value).
0 komentárov