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

We are happy to announce the new Windchill Customization board! Learn more.

What is the describe link between WTDocument and Content Holder?

SHRI_HARI
6-Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
avillanueva
22-Sapphire I
(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 I
(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.

SHRI_HARI
6-Contributor
(To:avillanueva)

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

avillanueva
22-Sapphire I
(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.

 

Top Tags