Skip to main content
10-Marble
June 16, 2022
Solved

What is the describe link between WTDocument and Content Holder?

  • June 16, 2022
  • 1 reply
  • 1833 views

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

Best answer by avillanueva

 

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.

 

1 reply

avillanueva
23-Emerald I
23-Emerald I
June 16, 2022

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_HARI10-MarbleAuthor
10-Marble
June 16, 2022

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

avillanueva
23-Emerald I
23-Emerald I
June 16, 2022

 

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.