I have an app where I need to generate an XML file. Then save that generated file to a Document Attribute in a BO. Then I need a way for the user to download it.
Part 1: Generating the XML file.... This is working and I can save it to a specific loaction on the server.
Part 2: I can them use IMPORT DOCUMENT to grab that generated XML file and load it into a BO Attribute.
Part 3: Can anyone suggest a way (other than emailing it) for the User to download it?
Saving and Downloading XML File
-
- Posts: 2401
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Saving and Downloading XML File
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: Saving and Downloading XML File
Hmm .. I used to do that with PDFs I generated in a BSV 10+ years ago. Can't remember the specifics, Mark, but once you have it in a BO attribute can't you just show the attribute on a form and allow the user to download from there?
Tom - V8.8 build 3137 - MySql / PostGres
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Saving and Downloading XML File
If your app does not expose REST services, you need to disable the REST servlet that grabs all calls to XML files.
To do this open the file AwareIM/Tomcat/webapps/AwareIM/web-inf/web.xml
and search for ".xml"
You will find the <servlet-mapping> element for the REST servlet. Delete the entire mapping element and restart Aware IM.
To do this open the file AwareIM/Tomcat/webapps/AwareIM/web-inf/web.xml
and search for ".xml"
You will find the <servlet-mapping> element for the REST servlet. Delete the entire mapping element and restart Aware IM.
Aware IM Support Team