January 20, 200719 yr I created one field and 1 web viewer. [color:green]1)container Field 2)Web View The container is holding the pdf file. {I did a insert file to put pdf in container} Now, my problem is with the Web Viewer Setup. If go to custom. {I tried specifying the container field name, but that doesn't work.} Thus, I went next to a file// and it kinda works. If I put in this command below it show the pdf fine. [color:red]file:///C:/Documents%20and%20Settings/Owner/My%20Documents/File_Maker_Pro_Databases/test.pdf The problem of course is this would show for each and every record and be incorrect. What I need is the field name to be put into the above calculation. [color:red]{file:///C:/Documents%20and%20Settings/Owner/My%20Documents/File_Maker_Pro_Databases/} So, if I keep the above part that will alway be the location. [color:red]Now how would I add the field name contents of the container to the end. eg. Dealers::pdf file I am sure this will work, but my format is not right. "file:///C:/Documents%20and%20Settings/Owner/My%20Documents/File_Maker_Pro_Databases/"Dealers::pdf"" But of course the above doesn't work. [color:red]Any help on attaching the container field contents to the end of the above file:/// command Edited January 20, 200719 yr by Guest
January 20, 200719 yr ... It has to be external to filemaker i.e. an actual pdf that's not in a container field but somewhere in the file structure on the OS. And for the concatentation (not that it will fix your problem) but you would use: "file:///C:/Documents%20a nd%20Settings/Owner/My%20 Documents/File_Maker_Pro_ Databases/" & Dealers::pdf If you want, you can export to "temp.pdf" in the same location as your DB, and just use a static reference to that e.g. "file:///C:/Documents%20a nd%20Settings/Owner/My%20 Documents/File_Maker_Pro_ Databases/temp.pdf"
January 20, 200719 yr Author Actually Genx that seem to work. I agree with what you are saying but for some reason it is actually working correctly. So with web viewer I am calling a container field and it is showing my pdf just fine. Go figure, not sure why at the moment, but maybe it will fail as I add more records.
January 20, 200719 yr Hold on so it's working as: "file:///C:/Documents%20a nd%20Settings/Owner/My%20 Documents/File_Maker_Pro_ Databases/" & Dealers::pdf ?? Where Dealers::PDF is your container field?
January 20, 200719 yr Are you sure you don't actually have a PDF in your File_Maker_Pro_Databases folder with the same name as the PDF your storing in the container field?
January 21, 200719 yr Author [color:orange]Are you sure you don't actually have a PDF in your File_Maker_Pro_Databases folder with the same name as the PDF your storing in the container field? Yes, I do have a PDF file with the same name as the container field. Thinking about it, I probably don't even need a container field. I could make it a Text field to take up less room. What I really want is to store the pdf file and then have a portal page display them. What I was trying to do is use web viewer, but it doesn't work within a portal. The actual program has different clients and I want to be able to make another table to hold their faxes which are pdf. Currenlty, I have to convert the pdf to tiff. Then I can store them in the portal page and it works. The problem is it means I have to do extra work to convert the orginal pdf file to tiff.
Create an account or sign in to comment