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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Attachments Table

smcvr
14-Alexandrite

Attachments Table

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.

 

ACCEPTED SOLUTION

Accepted Solutions
smcvr
14-Alexandrite
(To:HelesicPetr)

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

View solution in original post

12 REPLIES 12
HelesicPetr
22-Sapphire I
(To:smcvr)

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

smcvr
14-Alexandrite
(To:HelesicPetr)

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 I
(To:smcvr)

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

 

smcvr
14-Alexandrite
(To:HelesicPetr)

Hi @HelesicPetr 

 

I am editing a task page with jsp for users.

It will download the excel file that users need to edit from the task sheet and then upload the excel file they have edited from the task to the system from the "Attachments" table.

I have the users download the excel file but I cannot show the "Attachments" table on the task screen.

HelesicPetr
22-Sapphire I
(To:smcvr)

Hi @smcvr 

What object type is the the attachment table on ? 

As I mentioned earlier the Attachment Table is possible to add to the task page by Native Form Template 

PetrH

smcvr
14-Alexandrite
(To:HelesicPetr)

smcvr_0-1693553625390.png

 

Hi @HelesicPetr 

The attachment table in task will depend on the attachment table in the content page.

The excel file we loaded from the task should appear on the content page.

 

HelesicPetr
22-Sapphire I
(To:smcvr)

Hi @smcvr 

So does the workflow run directly on the WTDocument?

PetrH

smcvr
14-Alexandrite
(To:HelesicPetr)

Hi @HelesicPetr 

 

yes, it works on WTDocument

HelesicPetr
22-Sapphire I
(To:smcvr)

@smcvr 

So try what I've advised you

Task Form Template

HelesicPetr_0-1693562910228.png

HelesicPetr_2-1693563430651.png

 

HelesicPetr_1-1693563364794.png

PetrH

 

 

 

smcvr
14-Alexandrite
(To:HelesicPetr)

Hi @HelesicPetr 

I know I can do this.

I will also make different edits in the task, so I cannot edit the content of the task as you showed.

How can I get that table there with JSP?

HelesicPetr
22-Sapphire I
(To:smcvr)

Hi @smcvr 

I usually use component method to show table in a jsp page....

as I wrote 

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

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

You may just need to identify component ID for the attachment table..

 

PetrH

smcvr
14-Alexandrite
(To:HelesicPetr)

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

Announcements

Top Tags