on 01-20-2015 1:40 PM
Hi Friends,
I am new to SAP Crystal reports. is it possible to do following things using java SDK?
if so, give me some suggestions or sample code snippets Regarding this. Thanks for your help
Thanks
Jayan.M
It is possible to do everything except item 2 fairly easily using the SDK. Are you using BusinessObjects or Crystal Reports Server, or are you trying to do this with just Crystal? Sample code will depend on the answer to this question.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that makes it easier!
For each report that you want to update, you'll do the following to change the password:
1. Query for the report which will be returned as an IInfoObject.
2. Cast the IInfoObject as an IReport.
3. Use IReport.getProcessingInfo() to get the IReportProcessingInfo for the report.
4. Iterate through the list of IReportLogon in IReportProcessingInfo.getReportLogons(). You can also use this information to create the web page that allows the user to change the password. Since there can be more than one IReportLogon, you'll want to make sure that you display all of them.
5. Use IReportLogon.setPassword() to set the new password.
6. Use IReport.save() to commit the changes back to the CMS.
You can find sample code by going here: http://scn.sap.com/community/bi-platform/java-sdk. Scroll down a bit and look for "Java Sample Applications" on the left of the page. The samples are mostly for earlier versions of BO, but this part of the SDK hasn't changed much.
To display the report, you need to look at using OpenDocument, which uses a URL from your BusinessObjects system. Assuming that you're on BO 4.1, 6ou can find the documentation for OpenDocument at SAP BusinessObjects Business Intelligence platform 4.1 – SAP Help Portal Page. Click on "Development Information" and look for "Viewing Documents Using OpenDocument".
-Dell
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.