Skip to main content
Jun 16, 2022 5:58 PM UTC
Solved

What is the describe link between WTDocument and Content Holder?

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

Jun 16, 2022 9:26 PM UTC

 

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.

 

3 replies

Jun 16, 2022 6:46 PM UTC

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.

SHRI_HARIAuthor
Jun 16, 2022 6:56 PM UTC

Can you provide me a model code for this which would be easier for me to understand?

Jun 16, 2022 9:26 PM UTC

 

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.