1049
Points
Questions
25
Answers
144
-
Thanks for your help, Swagoto,
The input stream is precisely the end goal of my original question – thanks for reading my mind!
It didn’t work for me though – if it does for anyone else, that’s great. Looks like within Agile API I can make it work off of an InputStream is = ((IAttachmentFile)row).getFile() per the Agile API user guide. I have both ‘C:AgileFiles’ (test server) and ‘D:AgileFiles’ as my base_storage directory so when I tried InputStream is = new FileInputStream(new File(“C:/Agile/Files/000/770/474/agile77047443.pdf”)); I received the java.io.FileNotFoundException “C:AgileFiles?0’4agile77047443 (The system cannot find the file specified)”.- 2602 views
- 8 answers
- 0 votes
-
Hi Swagoto,
I might be missing some small detail but I can’t seem to figure it out. I’ve tried many combinations but keep getting a Tomcat “The requested resource XXXX is not available” error.
Is this anywhere close to how we should get a file directly (to give out a more concrete example)?
http://[agile]:[port]/Filemgr/AttachmentServlet/000/770/474/agile77047111.pdf- 2602 views
- 8 answers
- 0 votes
-
I’ve been able to get the file off of the CONTENT_URL using BufferedOutputStream from a URL.openStream() via Java, though the CONTENT_URL field only lasts a little bit before it’s nullified. I’m looking to see if I can run that same method using the IFS_FILEPATH instead. I tried appending the FileManger URL +’C:AgileFiles’ (base_storaged_dir) + IFS_FILEPATH to see if I can use a direct URL to a file but it hasn’t succeeded. Any ideas there?
- 2602 views
- 8 answers
- 0 votes
-
- 1412 views
- 1 answers
- 0 votes
-
Thanks Kevin, I think you might be on to something there. Looks like only doc, pdf, txt, xls, and xml files are being indexed in our system as those are some of the file types supported under Full Text Search. Docx is not supported so its content_url field remains null.
Looks like we can use content_url as a sort of ‘back door’ to get files. Is there a way to use the ifs_filepath column in SDK to get and read files?
- 2602 views
- 8 answers
- 0 votes
-
Easy – just throw a regular exception. This is kind of what I use. Let me know if it doesn’t work for you.
try {
//condition 1
//must use -Pre, Synchronous, and Stop event subscriber settings and an equivalent catch blockBoolean valid = false
if (!valid) {
throw new Exception (“Hi, your ECO failed validation checks because of some reason. Please fix.”)
}} catch (Exception ex) {
obj.logMonitor(ex.getMessage().toString());
throw new AgileDSLException(ex);
}- 1511 views
- 2 answers
- 0 votes
-
Thanks Swagoto – that’s usual but not exactly for my purposes.
I was wondering if there’s a way to actually copy the file into a database table cell (blob or text type, specifically). What you gave me helps me get a link like C:AgileFiles 00?0%9agile77041234.pdf but that’s not the same has having an external (internal to firewall but external to Agile) database actually have a copy of the file. Is there a way to push the byte data of a file into a database cell?
- 2060 views
- 3 answers
- 0 votes
-
- 1499 views
- 3 answers
- 0 votes
-
You received a null pointer exception which does indicate that Agile tried to get an object but that object was null. It’s like adding an item number to the affected items tab versus IItem. Looks like you figured it out. In my earlier answer, if you didn’t have enough required fields to create the row, I think the normal error message you would have received there should have been an “Invalid Parameter”.
- 1499 views
- 3 answers
- 0 votes
-
- 2060 views
- 3 answers
- 0 votes