This topic explains how to add components to a mapping. To add a component, you need to create a new mapping design first and then do one of the following:
•In the Insert menu, choose a component type (e.g., XML Schema/File).
•Drag a file from Windows File Explorer into the mapping area. Note that this operation is only possible for compatible file-based components.
•Click the relevant button in the Insert Component toolbar (see screenshot below).
Each component type has a specific purpose and function. To get an overview of components, see Components. To find out more about data structures that can be used as sources and targets, see Structural Components. For information about MapForce built-in components used to store data temporarily or to transform it, see Transformation Components.
For a complete list of components, see the component icon reference below.
Besides adding local files as mapping components, you can also add files from a URL. Note that this operation is supported when you add a file as a source component. The supported protocols are HTTP, HTTPS, and FTP. To add a component from a URL, take the following steps:
1.In the Insert menu, select the component type you wish to add (e.g., XML Schema/File).
2.In the Open dialog box (screenshot below), click Switch to URL.
3.Enter the URL of the file in the File URL text box and click Open. Make sure that the file type in the File URL text box is the same as the file type you specified in Step 1.
The list below describes the available options in the Open dialog.
•Remember the password: If the server requires password authentication, you will be prompted to enter the user name and password. If you want your user name and password to be remembered next time, start MapForce, enter your user name and password in the Open dialog box and select the check box Remember password between application starts.
•Open as: Defines the grammar for the parser. The default and recommended option is Auto.
•Use cache/proxy: If the file you are loading is not likely to change, select the Use cache/proxy option to cache the data and speed up file loading. Otherwise, select Reload if you want the file to be reloaded every time you open the mapping.
•Server URL: For servers with Web Distributed Authoring and Versioning (WebDAV) support, you can browse files after entering the server URL in the Server URL text box and clicking Browse. Although the preview shows all file types, make sure to choose to open the same file type as in Step 1 above. Otherwise, errors will occur.
•Check in/out: If you use a Microsoft SharePoint Server, select the check box This is a Microsoft SharePoint Server. This displays the check-in or check-out state of the file in the preview area. If you want to make sure that no one else can edit the file on the server while you are using it, right-click the file and select Check Out (see screenshot above). To check in any file that you previously checked out, right-click the file and select Check In.