Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Getting object attributes in OScript
Ray_Peterson_(rpeterso_-_(deleted))
Hi all,I'm trying to get the attributes of an object within Oscript, and am having quite a bit of difficulty. I can get the attribute category by calling the "DCATEGORY" element of the "CONTENTS", but how do I get the attributes associated with the document from there? I need to look through the attribute information so I can filter out specific documents. Any help would be greatly appreciated.Assoc data = .fResponse.datafor contentlist in data.contents String name = contentlist.name Integer id = contentlist.dataid String category = contentlist.dcategory // get the attribute information associated // with this object so we can filter on a // specific value.endThanksMichael Dailous
Find more posts tagged with
Comments
eLink User
Message from Dylan Wright via eLinkone way to do it is:(insert after "String category = ...")DAPINODE node = DAPI.GetNodeByID( prgCtx.DSession().fSession,DAPI.BY_DATAID, id)Dynamic attrValue = \DAPI.GetNodeUserAttr(node,"NAME OF THE ATTRIBUTE",DAPI.ATTR_SET_CAT)> -----Original Message-----> From: eLink Discussion: Development Discussion> [mailto:development@elinkkc.opentext.com]> Sent: Friday, March 17, 2000 8:31 AM> To: eLink Recipient> Subject: Getting object attributes in OScript>>> Getting object attributes in OScript> Posted by rpeterso on 03/17/2000 11:29 AM>> Hi all,>> I'm trying to get the attributes of an object within Oscript, and> am having quite a bit of difficulty. I can get the attribute> category by calling the "DCATEGORY" element of the "CONTENTS",> but how do I get the attributes associated with the document from> there? I need to look through the attribute information so I can> filter out specific documents. Any help would be greatly appreciated.>> Assoc data = .fResponse.data> for contentlist in data.contents> String name = contentlist.name> Integer id = contentlist.dataid> String category = contentlist.dcategory> // get the attribute information associated> // with this object so we can filter on a> // specific value.> end>> Thanks> Michael Dailous >> [To reply to this thread, use your normal e-mail reply function.]>> ============================================================>> Discussion: Development Discussion>
http://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId>
; =786303&objAction=view>> Livelink Server:>
http://knowledge.opentext.com/knowledge/livelink.exe>>>
;
Fernanda_Formia
I tried to use this function (and the function DAPI.SetNodeUserAttr too) in the Livelink Builder 9.0.0, but it seems they don't work, returning the following message error:The user attribute is invalid.Did someone else try to use them?Any other suggestions?Thanks
eLink User
Message from Sean M Alderman via eLinkYes...I've actually got a system working now. If you want to email me off line I'll explain it.At 11:40 AM 03/22/2001 -0500, you (eLink Discussion: Development Discussion) wrote:>DAPI.GetNodeUserAttr doesn't work in Livelink 9?>Posted by ap_trizzante on 03/22/2001 11:34 AM>>I tried to use this function (and the function DAPI.SetNodeUserAttr too) in the Livelink Builder 9.0.0, but it seems they don't work, returning the following message error:>The user attribute is invalid.>>Did someone else try to use them?>>Any other suggestions?>>Thanks>>>>[To reply to this thread, use your normal e-mail reply function.]>>============================================================>>Topic: Getting object attributes in OScript>
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2266804&objAction=view>>Discussion
: Development Discussion>
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=view>>Livelink
Server:>
https://knowledge.opentext.com/knowledge/livelink.exe-
Sean M. AldermaniTrack Systems Analyst,Acting System AdministratorNASA Glenn Research CenterCleveland, OH 44135(216) 433-2795
eLink User
Message from Kevin Ward via eLinkDAPI.GetNodeUserAttr and the other DAPI Attribute functions in Livelink 9 donot work like they did in previous versions. These functions were scaledback to work only with System Attributes due to the new complex categoriesand attributes.The best way to set, retrieve, or modify categories and attributes on a nodein Livelink 9 is to use the $LLIAPI.AttrData object. After allocating a newframe object of AttrData, there is a variety of scripts available to add orremove categories from your node. You can then manually traverse the treethat is created and set the attributes to whatever you want.If you require assistance, SDK support would be more than willing to help.Regards-----Original Message-----From: knowledge@opentext.com [mailto:knowledge@opentext.com]On Behalf OfeLink Discussion: Development DiscussionSent: Thursday, March 22, 2001 11:51 AMTo: eLink RecipientSubject: Re DAPI.GetNodeUserAttr doesn't work in LivelJrIGluIExpdmVsink9?k/Re DAPI.GetNodeUserAttr doesn't work in LivelJrIGluIExpdmVsink 9?k/Posted by eLink on 03/22/2001 11:51 AMMessage from Sean M Alderman via eLinkYes...I've actually got a system working now. If you want to email me offline I'll explain it.At 11:40 AM 03/22/2001 -0500, you (eLink Discussion: Development Discussion)wrote:>DAPI.GetNodeUserAttr doesn't work in Livelink 9?>Posted by ap_trizzante on 03/22/2001 11:34 AM>>I tried to use this function (and the function DAPI.SetNodeUserAttr too) inthe Livelink Builder 9.0.0, but it seems they don't work, returning thefollowing message error:>The user attribute is invalid.>>Did someone else try to use them?>>Any other suggestions?>>Thanks>>>>[To reply to this thread, use your normal e-mail reply function.]>>============================================================>>Topic: Getting object attributes in OScript>
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2266804&objAction=view>>Discussion
: Development Discussion>
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=view>>Livelink
Server:>
https://knowledge.opentext.com/knowledge/livelink.exe-
Sean M. AldermaniTrack Systems Analyst,Acting System AdministratorNASA Glenn Research CenterCleveland, OH 44135(216) 433-2795[To reply to this thread, use your normal e-mail reply function.]============================================================Topic: Getting object attributes in OScript
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2266804&objAction=viewDiscussion
: Development Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe