This builds on BSV built in two posts below:
Export Reports using AwareIM data & Displaying same (#3)
Hi!
Is it possible to display url containing path where document was exported IN FOLDER ?
Is it possible to display url containing path where document was exported IN FOLDER ?
It should be possible.
You would have to modify the syntax here to use the folder name in the URL being build for display:
DISPLAY URL SystemSettings.DisplayURLPrefix_Temp+'Report_300__City_'+City.Name+'.pdf' IN NEW WINDOW
I meant
The FOLDER keyword specified after the TO keyword identifies the directory in the file system where the file will be written. Note that if the file with this name already exists in the specified folder, it will not be overwritten. Instead another file with the variation of the original name (for example, originalName0) will be created.
So how is it possible to get path of that created file?
EXPORT DOCUMENT OneCityReport TO FILE SystemSettings.ExportPath_Temp+'Report_300__City_'+City.Name+'.pdf'
DISPLAY URL SystemSettings.DisplayURLPrefix_Temp+'Report_300__City_'+City.Name+'.pdf' IN NEW WINDOW
Notice in my rules that I use EXPORT .. TO FILE syntax
but I allow the configurator or user to determine the folder / path that is used for file storage in SystemSettings.DisplayURLPrefix_Temp
I am trying to construct process of Order BO that:
1) Exports Document based on Order BO to folder A
2) Gets the Path to exported document
3) Stores Path to Order BO attribute DocPath
All Documents are exporting to the same folder A. I think the solution is to use Order.ID as a filename so documents in folder will not be overwritten.
Using Order.ID seems to makes sense in your situation.
Do you have additional questions?
No, thanks! I think it should work.