I am trying to invoke a Java program on a remote server and download the resulting PDF report. I finally got it all to work. Sort of. When I click the button the program runs with no sign of error. And, then the browser window goes blank, except for a single form text field. When I expand it I see the following contents.
	If I copy just the URL and paste it into an address field, then the PDF file opens up without problem and displays the report. The DMI call includes downloadResult: true and  downloadToNewWindow:false. So, my expectation was that the URL returned would cause a SAVE dialog to open up for the user to download the PDF file. This is the code on the button.click.
	I did not see any examples in the forum of this particular call. So, I don't know if my usage is a good idea or just plain silly.
If I am close, it would be nice to know it. Anyway, I am making my Java program into a servlet. I needed to do that anyway. I was just hoping to get the result I need in stages.
Thanks,
Rick
P.S. I am running SmartClient Version: v8.2p_2012-07-19/EVAL Development Only on Mozilla Firefox 12.0 with Firebug using Windows XP Pro 32 bit.
					Code:
	
	//isc_RPCResponseStart-->[{status:0,data:"http://planetproject.jelastic.servint.net/temp/MeetingAgenda10.pdf"}]//isc_RPCResponseEnd
Code:
	
		DMI.call({
		appID: "PlanetProject", 
		className: "com.planetproject.server.reports.MeetingAgenda10", 
		methodName: "report",
		arguments: [String(form.getValue("MeetingDate")),
					String(form.getValue("MeetingTime")),
					String(Application.currentMeetingTypeID),
					String(form.getValue("AgendaPrintOptions"))
				   ],
		requestParams: { downloadResult: true, downloadToNewWindow:false } 
	});
If I am close, it would be nice to know it. Anyway, I am making my Java program into a servlet. I needed to do that anyway. I was just hoping to get the result I need in stages.
Thanks,
Rick
P.S. I am running SmartClient Version: v8.2p_2012-07-19/EVAL Development Only on Mozilla Firefox 12.0 with Firebug using Windows XP Pro 32 bit.

Comment