Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
How can I display the attachment(s) which are on the change task(s) on the change notice the change tasks belong to ?
Or how can i get the attachments of a change tasks ?
Adding/removing of Attachments is supported directly in the Change Task.
You won't see that table in the Change Notice wizard, but will be seen on the Change Task information pages and can be edited from the Change Task edit actions.
Thanks, I managed to get the names of the change task attachments displayed but that was not enough for customer
Ok, how did you do it and what was the result? I see shortly after this posting a PTC article was created with this very topic:
However, this gives what appears to be an incomplete mapping nor does it show how the output looks:
Something appears missing. File attachments have multiple attributes and can be numerous. You can also have multiple change tasks each with their own attachments. Will it show were that attachment was from?
What is “enough for the customer”?
I'm guessing they want a link that allows them to open/download the attachment rather than just seeing text that displays a file name. I say this because this is what I would want.
If I have that right, there are two ways (that I know of) to do this.
I'll wait to hear back before elaborating.
David
According to the case, the customer would have liked a better solution than I provided but wanted to work internally on this .
The only want I see this truly working is to create a custom table that collects all attachments and displays then in a single table like the attachments table does now. You would need to add a column or two to show where file came from (CN or CA).
I got it working using a “Calculated” attribute that displays the CA number, Attachment filename and a link to open the attachment.
A listener could also be used to update a URL attribute on the CN which displays the CA number and Attachment filename as the link text while the link points to the attachment.
I’m sure there are more ways to do this. There always are.
Can you send screen shots or text on calculated attribute definition?
Formula: execute("ext.change.CalculateChangeOrdersChangeActivitysAttachments")
Data Type: java.lang.String
Create Hyperlink: Yes
I left all other fields empty except Internal Name and Display Name.
Note: You probably know this but I'll mention it anyway, "Calculated" attributes do NOT use Reusable Attributes.