Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object importer - import a "Link: Field" Attribute

Status
Not open for further replies.

fdaude

Programmer
Apr 12, 2011
2
FR
Hello,

I have a Category named "Compounds" which contains the following attribute: Name: "Child Doc" , Type: "Link: Field"

I try to import a value "Child Doc" like that:

<category name="Livelink Categories:Tests:Compounds">
<attribute name="Child Doc">Enterprise:myDoc1.doc</attribute>
<attribute name="Child Doc">user Home:myDoc2.doc</attribute>
</category>

but the importer report say : "The data type is not compatible."

Which tag or XML format I must used ?

Thanks.
 
can you stay away from the colon:)) character.It is used in livelink to parse out locations.


<category name="Livelink Categories:Tests:Compounds">
<attribute name="Child Doc">Enterprise_myDoc1.doc</attribute>
<attribute name="Child Doc">user Home_myDoc2.doc</attribute>
</category>

you can also use cadata representation on the start just a thought.When the sax parser sees the cdata part it will interpret it as literal and you may get around it.To get the right sysntax what I would do is create a document in livelink and add this category to it including the colon character like you have.If livelink accepts it then I would use Object exporter to export the file out.Open it up and you should see the cadata section

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
I have already tried with CDATA like that:

<category name="Livelink Categories:Tests:Compounds">
<attribute name="Child Doc"><![CDATA[Enterprise:myDoc1.doc]]></attribute>
<attribute name="Child Doc"><![CDATA[user Home:myDoc2.doc]]></attribute>
</category>

but it is the same thing.

With "Enterprise_myDoc1.doc" it is not good because it seems that Livelink want a location, look at the Attachment: when I click on "Browse Livelink" and select manually a document it is "Enterprise:myDoc1.doc". And when I save, the value become myDoc1.doc.
 
 http://www.mediafire.com/?qkkarnbb7n54by2
that is not a standard livelink category attribute type. You have used a item reference or something similar to it. OI may not support its use . hence your only option is to look at extending OI for that attribute type.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
another ides may be to put in the dataid of the actual document and see if livelink will resolve it to a path

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top