djc728 Posted September 4, 2009 Posted September 4, 2009 Hello all: I know this is probably a simple answer but I am using the "Export Field Contents" script and that all works fine. I export a document to the desktop and all is well. But how do I delete the document on the desktop after I export it there? Do I need a plugin or can I do this natively? DJ
bcooney Posted September 4, 2009 Posted September 4, 2009 It depends on why you are exporting the document. Exporting a zero found set with the same name will delete the doc on the desktop, but that may be disconcerting to a user. They can just trash it when they are done. You could export to the Get (TemporaryPath) so that the user never sees the doc.
djc728 Posted September 4, 2009 Author Posted September 4, 2009 Barbara: I am storing a link to the document. When the user needs to modify it I want to save the old copy in an Archive table but I want to save the whole document in the archive so I'm exporting to the desktop and then I want to delete it after storing it in the Archive table. DJ
bcooney Posted September 4, 2009 Posted September 4, 2009 So, you're exporting and then importing into a different table? But as a reference ("link to document")? I'm really not following the workflow, and if you are only doing references, there is no Export Field Contents, that's for embedded docs. You'd need two documents with unique names, each separately referenced: version 1 and version 2.
djc728 Posted September 4, 2009 Author Posted September 4, 2009 I have a field where I'm storing a link to the file. When I export the filed contents to the desktop I am getting the file (not the link) on the desktop. I then create a new record in my Archive table and use insert file from the file I just exported to the desktop and save it in my Archive table. I then used your suggestion of exporting field contents with a NO FOUND SET and it deletes the file so I'm good. Thank you. I did not know you could issue the command export field contents without a found set and have it delete the file.
Recommended Posts
This topic is 5558 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