Skip to main content
1-Visitor
June 10, 2024
Solved

How to add uploadContent / Attachment to column of custom MVC Table

  • June 10, 2024
  • 1 reply
  • 1926 views

Version: Windchill 12.0

 

Use Case:

I have custom MVC table with some pre-defined columns. 

I want to add one more column which is uploadContent i.e, it swould be similar to add attachment so that user should able to browse particular file and add it to this table column


Description:

 

Hello Community,

 

I have custom MVC table with some pre-defined columns. 

I want to add one more column which is uploadContent i.e, it swould be similar to add attachment so that user should able to browse particular file and add it to this table column

Best answer by HelesicPetr

Hi @AKC_301264 

Try to analyze following dataUtility

 com.ptc.windchill.enterprise.attachments.dataUtilities.ContentDataUtility

This utility is used in uploading multiple wtDocuments so it can help you I guess

PetrH

1 reply

Community Moderator
June 14, 2024

Hello @AKC_82440

 

Thank you for your question. 
Your question appears to be well documented, however I'd like to recommend to bring more details and context to your initial inquiry. 

It also helps to have screenshot(s) to better understand what you are trying to do in your process. 

This will increase your chances to receive meaningful help from other Community members. 

Thanks & Regards,
Vivek N
Community Moderation Team.

1-Visitor
June 14, 2024

Thanks for the reply Vivek. I agree with your points. Below  is the detailed requirement. 

I have a custom wizard in which I have implemented a custom MVC table with columns like below

AKC_0-1718363703703.png

Here, in this table, I want to include new column which is uploadContent so that for each record user should browse and attach a document 

 

Regards,

Krishna

 

HelesicPetr
22-Sapphire II
22-Sapphire II
June 14, 2024

Hi @AKC_301264 

Try to analyze following dataUtility

 com.ptc.windchill.enterprise.attachments.dataUtilities.ContentDataUtility

This utility is used in uploading multiple wtDocuments so it can help you I guess

PetrH