Tags:
view all tags
---+ .XML IMPORT _This subroutine processes an XML file and optionally imports it._ <br />%TOC% ---++ Usage: <pre> SET 0DX .XML IMPORT = PASS <key> FIELD SHARE? Y PASS <XML_file> FIELD SHARE? N PASS <XML_Map> FIELD SHARE? N PASS <Import_Flag> FIELD SHARE? N PASS <Delete_Flag> FIELD SHARE? N SUBR 0DX .XML IMPORT DETACHED END? N FAIL 0 * Check for errors IF 0DX .XML IMPORT NE </pre> ---++ Description: This subroutine processes an XML file and optionally imports it. The first 2 parameters are required. If any required parameters are missing, the subroutine will CANCEL. <key> is the numeric key that will be assigned to this import (Required). This must be PASSed with Share "Y" to return the value. <XML_file> is the XML file to be processed and optionally imported (Required). This must be a file accessible to the Appx session on the server. <XML_Map> is the mapping to use (Optional). If PASSed, must refer to a previously defined mapping. If you want the API to import your data, the mapping must include a subroutine name and the subroutine must exist. If you are planning to process the extracted identifiers and data yourself, you do not need to pass a map name. <Import_Flag> A Y/N flag to indicate if the data import subroutine specified on the mapping should be run (Optional). If you pass Y, you must pass a valid Map Name in the previous parameter. <Delete_Flag> A Y/N flag to indicate if the XML Source File should be deleted (Optional - Release 5.4 and later only). This flag is not present in releases 5.3.3 and earlier, your XML file will be automatically deleted. After the API is complete, your extracted data will be available in the 0DX XVALUE file. This is true, regardless of whether the API imported the data or not. The XVALUE file is keyed on the <key> that is returned from the API. Remember that there can be more than one imported file in XVALUE, you should use <key> in a BEG AT/END AT to only read the data records for this import. XVALUE is a temporary file and the contents will be lost when the session ends. NOTE: This subroutine must be invoked DETACHED, and cannot be invoked via GOSUB. The 0DX .XML IMPORT field must be intialized in your process before invoking the API, or you will not get a return value. ---++ Comments: _Read what other users have said about this page or add your own comments._ *IMPORTANT -* In APPX versions up to and included 5.3.3, this subroutine will DELETE the original XML file. So if this is not the desired behavior, designers should make a copy of the file first, and pass the path to the copy instead of the original. -- Main.AlKalter - 2014-10-03 %COMMENT% -- Main.JeanNeron - 2013-10-02
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r11
|
r9
<
r8
<
r7
<
r6
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r7 - 2014-10-15
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback