Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
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.
Solved! Go to Solution.
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.
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
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.
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
Then just define the task form in the Workflow task where this template should be used.
PetrH
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.
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
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.
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?
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
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.