Skip to main content
15-Moonstone
August 29, 2023
Solved

Attachments Table

  • August 29, 2023
  • 1 reply
  • 3835 views

Hi community!

 

I am trying to edit the content of the task with jsp.

How do I add the attachments table in Task?
I will upload the file from the table and ask the users to advance their tasks.

 

Best answer by smcvr

Hi @HelesicPetr 

 

I brought the table I wanted into the task with the tablePageLink tag.

Thank you for your support and help.

 

Information on how to use is given at the address below.

 

https://support.ptc.com/help/wnc/r12.1.1.0/en/index.html#page/Windchill_Help_Center/customization/WCCG_BusLogicCust_WorkflowAdmin_CustWorkflowTaskPages_RenderingPBO.html

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
August 29, 2023

Hi @smcvr 

What attachment table do you need? A Workflow Task object does not have attachments. 

The Workflow Task can be linked with an object that does not have the attachments for example baseline. 

 

have you tried to use component ?

 

<%@taglib uri="http://www.ptc.com/windchill/taglib/mvc" prefix="mvc"%>

<jsp:include page="${mvc:getComponentURL('com.custom.Tables.MyAttachementTableBuilder')}"/>

 

PetrH

smcvr15-MoonstoneAuthor
15-Moonstone
August 31, 2023

Hi @HelesicPetr 

I need to pull the attachment table from the content page into the task.
I want to add a file from the task and the file we loaded from the task should appear in the attachment table on the content page.

 

smcvr_0-1693471100786.png

 

 

 

 

HelesicPetr
22-Sapphire II
22-Sapphire II
August 31, 2023

Hi @smcvr 

It is still not clear. for me

What content page? What object type? What task?

Where do you need to show the table? Change Task as a object or Workflow Task as a user's task? 

 

As I mention try to use mvc.getComponent.

In my example of code there is custom table builder but I'm not sure if it works in a workflow task page.

 

I expect that you need to add a table to user's task page that shows Change Task/Activity Attachments

You can try to use Native Form Template where you can define what should be shown

Attachment Table is possible to add there

HelesicPetr_0-1693476687984.png

 

Then just define the task form in the Workflow task where this template should be used. 

 

PetrH