Hello Will
I normally don't work the Eclipse Space, but have a look at the following for possible solution(s):
http://scn.sap.com/thread/1427183
http://scn.sap.com/thread/1427172
http://scn.sap.com/thread/1316341
http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d0d6f979-3e11-2c10-35a8-ac93994a30ed
Perhaps converting the report to connect via ODBC will work?
Now, looking at the code, (I am not sure where that came from(?)), I am not particularly confotable with repeated use of newPropertyBag.putStringValue (I'd expect subsequent uses to overwrite the inital condition so really all you'd be setting is newPropertyBag.putStringValue("Server Name", location); (?).
Now, coming from .NET the way to change flat file datasource such as an XML should be as:
Dim i As Integer
Private Sub Set_Location_XML() crConnectionInfo = New ConnectionInfo crDatabase = crReportDocument.Database crTables = crDatabase.Tables For Each crTable In crTables crTableLogOnInfo = crTable.LogOnInfo crTableLogOnInfo.ConnectionInfo = crConnectionInfo crConnectionInfo.ServerName = "D:\Change XML Native\nativeXML.xml" crTableLogOnInfo = crTable.LogOnInfo crTableLogOnInfo.ConnectionInfo = crConnectionInfo crTable.ApplyLogOnInfo(crTableLogOnInfo) Next End Sub
Not sure if / how that would translate to Java(?).
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place