wintergreen Posted August 17, 2006 Posted August 17, 2006 is there a script step or calculation that can be used to get the filename of an imported file (assuming the import is done using a script)?
Lee Smith Posted August 17, 2006 Posted August 17, 2006 See my Reply to your other question in Importing & Exporting.
wintergreen Posted August 17, 2006 Author Posted August 17, 2006 Sorry, I just re-read my question and it's ambiguous. What I actually mean here, is if a user browses and selects a file to import, is there any way to get the "result" of this, e.g. so the original file's filename can be stored automatically in a field somewhere?
Lee Smith Posted August 17, 2006 Posted August 17, 2006 I'm not sure I'm understanding your question. Are you using the Script Step "Import Records" Lee
wintergreen Posted August 17, 2006 Author Posted August 17, 2006 yes. "Import records.." user then selects a file to import, script takes care of the rest. but... I want to capture the name of the file ("importedfile.doc") and store that in a field (if possible)
Lee Smith Posted August 17, 2006 Posted August 17, 2006 Okay, I see what you mean now. I don't have an answer on this, maybe someone else does. In the mean time, I'll fool around with it and see what I can come up with. Lee
Lee Smith Posted August 17, 2006 Posted August 17, 2006 (edited) After playing around with this for awhile, I came up with a cheezy workaround. BTW, I did a search for your keywords, and it didn't turn anything useful up. However, it was very similar, if not identical to to this thread Here that comment pointed to in another Thread just a few minutes ago (also in the Import and Export Topic). What I came up with was to use the Insert File Script Step and inserted the file (by reference) into a new container field in each record via a loop script, and then capture the file name from the file path from it. HTH Lee Edited August 17, 2006 by Guest add some things
wintergreen Posted August 21, 2006 Author Posted August 21, 2006 Very interesting. Thanks, I will experiment with this, but it looks like it will fit my needs perfectly.
Recommended Posts
This topic is 6669 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