Creating an object structure for importing work assets to an existing data sheet
Belinda Fuller 2700006M39 Visits (12078)
In the following example, I will show you how you can create a simple object structure to import multiple work assets to an existing data sheet.
The Data Sheet Template application is installed with the installation of the Calibration offering.
1. Navigate to the object structure application and create a new object structure.
The processing order for the parent and child above is set to 1.
Remember if using flat file structure for your import that you eliminate any duplication aliases prior to proceeding.
2. Navigate to database configuration, and bring up the PLUSCDSASSETLINK object. From the select action menu, select "Restrict Attributes". Search for the DSASSETLINKID attribute, and then check the "Restricted" check box. This ensures that the link id value is auto-numbered using the default sequence for each new work asset added to the data sheet. Apply the changes and configure the database.
3. Create an enterprise service (and publish channel if you desired) to use the integration framework to import the data, and assign them to an external system.
If you wish to simply use application import and export, you can use this document for reference to enable the Data Sheet Template application to use this method.
4. Now you can create your XML or flat file to import the work assets for a particular data sheet.
The example XML data below was used in this example to import two work assets (asset numbers T2003 and 12710) to the existing data sheet DS101:
<?xml version="1.0" encoding="UTF-8"?>
You should now be able to navigate to your data sheet template application, bring up the data sheet DS101, and see the above two work assets linked to the data sheet on the work assets tab.