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
Using LL_AccessWorkPackage to access workflow attributes
Kevin_Lin_(klin_(Delete)_2436386)
I did the following:1) AccessWorkPackage, get a value object of Table2) TableGetInteger(2,"subtype")=3 which means the 3rd record is the one of attributes3) TableGetValue(2,"userdata",catVersion), get a value object of Assoc (catVersion)Then I'm having trouble when I call following functions with this assoc object AttrListNamesAttrGetValuesI tried Assoc value object returned by fetchCategoryVersion without any problems. It seems to me the value object in workpackage is an Assoc, but not a valid catVersion. Any idea? Please help.Thanks
Find more posts tagged with
Comments
eLink User
Message from Jeremy O'Connor via eLinkI think you are missing one step. You need to pull the userdata out of theworkpackage first and then pull the catVersion out of the userdata.1) AccessWorkPackage, get a value object of Table2) TableGetValue(WorkPackage, 2, "UserData", userdata)3) AssocGetValue(userdata, "CatVersion", catVersion)Jeremy____________________Jeremy O'ConnorSDK Product SpecialistOpen Text Corp.joconnor@opentext.com1-800-540-7292-----Original Message-----From: eLink Discussion: LAPI Discussion[mailto:lapi@elinkkc.opentext.com]Sent: November 8, 2002 3:32 PMTo: eLink RecipientSubject: Using LL_AccessWorkPackage to access workflow attributesUsing LL_AccessWorkPackage to access workflow attributesPosted by klin on 11/08/2002 03:22 PMI did the following:1) AccessWorkPackage, get a value object of Table2) TableGetInteger(2,"subtype")=3 which means the 3rd record is the one ofattributes3) TableGetValue(2,"userdata",catVersion), get a value object of Assoc(catVersion)Then I'm having trouble when I call following functions with this assocobjectAttrListNamesAttrGetValuesI tried Assoc value object returned by fetchCategoryVersion without anyproblems. It seems to me the value object in workpackage is an Assoc, butnot a valid catVersion. Any idea? Please help.Thanks[To reply to this thread, use your normal e-mail reply function.]============================================================Discussion: LAPI Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=765428&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
eLink User
Message from Kevin X Lin via eLinkThank you very much, Jeremy. It worked!I guess we need improve the documentation, I can't find the step youmentioned in the online help:WorkPackage RecArray DescriptionDid I miss anything?-----Original Message-----From: eLink Discussion: LAPI Discussion [mailto:lapi@elinkkc.opentext.com]Sent: Friday, November 08, 2002 3:45 PMTo: eLink RecipientSubject: RE Using LL_AccessWorkPackage to access workflow attributesRE Using LL_AccessWorkPackage to access workflow attributesPosted by eLink on 11/08/2002 03:45 PMMessage from Jeremy O'Connor via eLinkI think you are missing one step. You need to pull the userdata out of theworkpackage first and then pull the catVersion out of the userdata.1) AccessWorkPackage, get a value object of Table2) TableGetValue(WorkPackage, 2, "UserData", userdata)3) AssocGetValue(userdata, "CatVersion", catVersion)Jeremy____________________Jeremy O'ConnorSDK Product SpecialistOpen Text Corp.joconnor@opentext.com1-800-540-7292-----Original Message-----From: eLink Discussion: LAPI Discussion[mailto:lapi@elinkkc.opentext.com]Sent: November 8, 2002 3:32 PMTo: eLink RecipientSubject: Using LL_AccessWorkPackage to access workflow attributesUsing LL_AccessWorkPackage to access workflow attributesPosted by klin on 11/08/2002 03:22 PMI did the following:1) AccessWorkPackage, get a value object of Table2) TableGetInteger(2,"subtype")=3 which means the 3rd record is the one ofattributes3) TableGetValue(2,"userdata",catVersion), get a value object of Assoc(catVersion)Then I'm having trouble when I call following functions with this assocobjectAttrListNamesAttrGetValuesI tried Assoc value object returned by fetchCategoryVersion without anyproblems. It seems to me the value object in workpackage is an Assoc, butnot a valid catVersion. Any idea? Please help.Thanks[To reply to this thread, use your normal e-mail reply function.]============================================================Discussion: LAPI Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=765428&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe[To
reply to this thread, use your normal e-mail reply function.]============================================================Topic: Using LL_AccessWorkPackage to access workflow attributes
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2900359&objAction=viewDiscussion
: LAPI Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=765428&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
Richard_Ma_(mtrcadmin_-_(deleted))
Here is the whole definition of workpackage i want to share with you all. As I also think that the LAPI Documentation is very rough indeed. Hope can help you.Comments--------- name = TYPE type = INTEGER == 2 name = SUBTYPE type = INTEGER name = USERDATA type = LIST name = DESCRIPTION type = STRINGAttributes---------- name = TYPE type = INTEGER == 1 name = SUBTYPE type = INTEGER == 3 name = USERDATA type = ASSOC name = catVersion type = ASSOC name = data type = ASSOC name = ID type = INTEGER == 1 name = Values type = LIST toValue(0).toValue("XXXX") name = XXXX type = ASSOC name = ID type = INTEGER name = Values type = LIST toValue(0) name = catID type = ASSOC name = Type type = INTEGER == 2 name = definition type = ASSOC name = DisplayName type = STRING == Attributes name = ValueTemplate type = ASSOC name = ID type = INTEGER name = Values type = LIST toValue(0) name = XXXX type = ASSOC name = ID type = INTEGER name = Values type = LIST name = Children type = LIST list value 0 type = ASSOC =============== INTEGER FIELD REquired BOOLEAN name = DisplayName type = STRING name = Type type = INTEGER name = NumRows type = INTEGER name = ID type = INTEGER name = Columns type = INTEGER name = MaxRows type = INTEGER name = Rows type = INTEGER name = Search type = BOOLEAN name = FixedRows type = BOOLEAN name = Name type = STRING ============== list value 1 type = ASSOC Required BOOLEAN name = DisplayName type = STRING name = Type type = INTEGER name = NumRows type = INTEGER name = ID type = INTEGER name = Columns type = INTEGER name = MaxRows type = INTEGER name = Rows type = INTEGER name = Search type = BOOLEAN name = FixedRows type = BOOLEAN name = Name type = STRING ================== INTEGER POPUP ===== name = Required type = BOOLEAN name = DisplayName type = STRING name = ValidValues type = LIST integer popup 0 = 1 integer popup 1 = 2 integer popup 2 = 3 integer popup 3 = 5 name = Type type = INTEGER name = NumRows type = INTEGER name = ID type = INTEGER name = MaxRows type = INTEGER name = Search type = BOOLEAN name = FixedRows type = BOOLEAN name = Name type = STRING name = Type type = INTEGER == -18 name = NumRows type = INTEGER name = ID type = INTEGER name = MaxRows type = INTEGER name = NextID type = INTEGER name = FixedRows type = BOOLEAN name = Name type = STRING == Attributes (may not exist) name = DESCRIPTION type = STRINGAttachments----------- name = TYPE type = INTEGER name = SUBTYPE type = INTEGER name = USERDATA type = INTEGER folderID name = DESCRIPTION type = STRING