cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

What is the describe link between WTDocument and Content Holder?

SHRI_HARI
10-Marble

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

ACCEPTED SOLUTION

Accepted Solutions
avillanueva
22-Sapphire II
(To:SHRI_HARI)

 

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.

 

View solution in original post

3 REPLIES 3
avillanueva
22-Sapphire II
(To:SHRI_HARI)

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?

avillanueva
22-Sapphire II
(To:SHRI_HARI)

 

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.

 

Announcements

Top Tags