Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hello All,
I am trying to do customization in Information Structure in which I should show the Service Effectivity details of all the content in it as a table. As I was working on it, I was not able to find any describe link between Document and Content Holder. Can someone suggest me what describe link I can use so that I would be able to get my values?
Thanks
Solved! Go to Solution.
WTDocument doc = (WTDocument) qrLatest.nextElement();
ContentHolder ch = (ContentHolder)ContentHelper.service.getContents(doc);
if (type.equals("PRIMARY"))
{
ApplicationData ad = (ApplicationData)ContentHelper.getPrimary((FormatContentHolder)ch);
url = ContentHelper.getDownloadURL(ch, ad, false).toString();
break;
}
Here is a snippet of getting application data from a doc.
WTDocuments are content holder. ContentHolder is an interface that WTDocument inherits. WTDocuments table links to ApplicationData table which has infromation about the holder and the FVItem which holds the file. You can simply case WTDocument as a content holder.
Can you provide me a model code for this which would be easier for me to understand?
WTDocument doc = (WTDocument) qrLatest.nextElement();
ContentHolder ch = (ContentHolder)ContentHelper.service.getContents(doc);
if (type.equals("PRIMARY"))
{
ApplicationData ad = (ApplicationData)ContentHelper.getPrimary((FormatContentHolder)ch);
url = ContentHelper.getDownloadURL(ch, ad, false).toString();
break;
}
Here is a snippet of getting application data from a doc.