Newbies VinMan Posted January 9, 2011 Newbies Posted January 9, 2011 I'm trying to upload multiple files with SC but i can't get it done. I'm using the code below as described in the documentation. "http://yourServer.com:8020/SuperContainer/Files/Asset/" & myTable::ID & "/1" "http://yourServer.com:8020/SuperContainer/Files/Asset/" & myTable::ID & "/2" "http://yourServer.com:8020/SuperContainer/Files/Asset/" & myTable::ID & "/3" But FM says it needs an operator When i use the code below to upload just one file it works ok. "http://yourServer.com:8020/SuperContainer/Files/Asset/" & myTable::ID Does anyone know what my problem might be? TIA Vincent.
Smef Posted January 10, 2011 Posted January 10, 2011 It sounds like there is an extra character in there which is preventing filemaker from recognizing the calculation. Try deleting the calculation and re-typing it, as there may be some character you're missing or have an extra one of, such as '' (two single quotes) instead of " (double-quotes) or a return character, if you copied it in from another field. EDIT: OH! I think i see what's happening. Did you put all three of those URLs in a single web viewer? Each web viewer can only show one URL. You need to put three web viewers on your layout, and each web viewer should have one of those three URLS.
fmbiz.net Posted April 28, 2011 Posted April 28, 2011 It sounds like there is an extra character in there which is preventing filemaker from recognizing the calculation. Try deleting the calculation and re-typing it, as there may be some character you're missing or have an extra one of, such as '' (two single quotes) instead of " (double-quotes) or a return character, if you copied it in from another field. EDIT: OH! I think i see what's happening. Did you put all three of those URLs in a single web viewer? Each web viewer can only show one URL. You need to put three web viewers on your layout, and each web viewer should have one of those three URLS. Hello 360works Support, I have just started to look at SuperContainer as a possible solution to providing upload capability to my database, but there has to be a way to upload multiple files other than a dedicated web viewer per upload. Is your description above the only way to do this? Do I have to move the file after it is uploaded to manage multiple uploads? Thanks for your advice.
Smef Posted April 29, 2011 Posted April 29, 2011 SuperContainer works like a regular container field in that you can only store one file per URL. If you are going to have multiple files attached to a record you would handle it the same way you would with a container field: A) Make multiple URLs using the /1 /2 /3... method Make a related table of documents with one URL per record, and a relationship back to your original record (this is what I would recommend) You would probably want to display this using a portal on your layout and a single web viewer which would display the contents of the document record you had selected. Again, think about it just like you would a regular container field. Instead of adding a container to your table you add a URL calculation. Instead of adding a container field to your layout you add a web viewer.
Recommended Posts
This topic is 4955 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now