Centric CRM 4.1 (Stable and Released)
Core Team
Assignment
Priority:
Assigned To:
unassigned
Ticket # 181
This ticket is open
Severity:
Important
Category:
Blocker
Entered by:
Jol Blazey
1/10/2008, 11:33 PM
Last modified:
Jol Blazey
2/7/2008, 4:50 PM
Description
Please refer to issue in forums:
Centric CRM Developer Community / XML-HTTP API
"Move uploaded File in a Ticket to a new Folder "
Jol Blazey
I have put lots of detail here including code and stack dumps.
When uploading a file to a Ticket we cannot associate the file with a document folder within the ticket. We can create tickets, and upload files no probs. So we tried updating the file with xml api. no joy. the only thing we can do is insert a fileItem (project_files) data record in the db. this is a messy work around if I can get it working at all, and will require an xml api select first which is not working either.
Solution
A solution hasn't been entered
File Attachments
There are no file attachments
Ticket Activity
Date | Event |
---|---|
Jol Blazey 1/10/2008, 11:33 PM | [ Ticket Opened ] |
Jol Blazey 1/10/2008, 11:33 PM | [ Ticket is unassigned ] |
Jol Blazey 1/10/2008, 11:33 PM | [ Severity set to Important ] |
Jol Blazey 1/14/2008, 2:05 AM |
We found out where the problem is in the code this by modifying : org.aspcfs.modules.service.actions.ProcessDocument.java line 143 FileItem thisItem = new FileItem(); thisItem.setLinkModuleId(linkModuleId); thisItem.setLinkItemId(id); thisItem.setEnteredBy(enteredBy); thisItem.setModifiedBy(enteredBy); // thisItem.setFolderId(Integer.parseInt(folderId)); thisItem.setSubject(subject); thisItem.setClientFilename(newFileInfo.getClientFileName()); thisItem.setFilename(newFileInfo.getRealFilename()); thisItem.setVersion(1.0); thisItem.setSize(newFileInfo.getSize()); by uncommenting folderID we can now post and upload a document to a ticket and have the document saved in the specified foler. Could someone please let us know if / when this code mod can be added to production as we have a client who really needs it. Jol Blazey. |
Jol Blazey 2/7/2008, 4:50 PM | This issue is fixed for us. The main reason I posted the code was to ask someone to fix it in 4.1 SVN so that we know it will be in the SVN Head whenever we checkout. |
Distribution List |
---|
Jol B. |