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
AnyOne about MIMEType
NetSys_(Delete)_271892
Hello,I am having a problem that I just cant get past.I am adding documents into Livelink 8.2 using VBAddDocument() works fine Problem now is that the MIMEType is empty and therefore my textdocument shows up with double space. (If I add a document with a filename .TXT for example the MIME is set to plain/text and works fine).To change the MimeType I am nowGetVersionInfo()AssocSetString (x,"MimeType","plain/text")UpdateVersionInfo(...)I've got two problems first the GetVersionInfo fails, no big deal (maybe) and the UpdateVersionInfo fails......Guess I always can use CreateObjectEX() and then AddVersionBut I would like to use AddDocument as it is easy and straight forward.I would appreciate any help in this matter.Bert
Find more posts tagged with
Comments
Jim_Leitch_(inputsw_jleitch_(Delete)_2062556)
Using LL_UpdateVersionInfo should get your mime type set properply.LL_ValueAlloc tmp2lRet = LL_AssocSetString(tmp2, "MIMEType", gstrDocType) lRet = Check(glSession, "LL_UpdateVersionInfo", _ LL_UpdateVersionInfo(glSession, _ glWSVol, lNewNodeID, 0, tmp2))LL_ValueFree tmp2In addition, you may want to replace adddocument with createobjectex since if your parent folder uses required attributes in the category, you will need to use createobjectex to add document with the required attributes too.
NetSys_(Delete)_271892
thanx I appreciate that, so basically I should doCreateObjectEx ....CreateVersion .....UpdateVersionInfo ....Bert