Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Attaching files
mon
Hi,
Am using Addfile() to attach files which include the dcr, generated html page and some documents which user uploads in the template.
Is there any way i can specify the order in which files are attached ?? I basically want the html pg to be the first doc, then the dcr n then the uploaded docs.
Also, i want a comment against each file that is attached. Is this posiible ??
Thanks,
monica.
Find more posts tagged with
Comments
Adam Stoller
I'm not sure whether adding files in a specific order determines the order in which they are retrieved, but if anything will - that would be the way to try and do it - however - looking at the area-relative path and/or EAs is the most sure-proof way to verify which type of file you have (unfortunately iwextattr is a somewhat expensive call to make since it involves invoking a shell process to run it within).
When you add each file, you can supply a comment for it: $task->AddFile($path, $comment); - all you need to do, if you want unique comments per file, is to prompt for the information so that you can supply a unique comment per file when adding them.
The alternative is to add all files at once with the same comment: $task->AddMultipleFiles(\
@paths
, $comment) - unfortunately, I believe that AddMultipleFiles() will error out if any of the files being asked to be added are already associated with the task (rather than ignoring them silently).
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
mon
hi fish,
You are right.. attaching is done with respect to the relative area paths of files which i dont think i can change. But regd comments, it doesnt display against the files attached.. !!
This is with respect to ts6 - std interface.
Also, i had posted another query regd editing of dcrs.. do you have any idea about that ??
Thanks,
monica.
Adam Stoller
Not sure what the issue is with the file comments - don't have time to play around with it right now.
If I have ideas for response to a post - I generally make them. If you don't see a response from me, it probably means I didn't have a response, or at least not one worth posting.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com