Quantcast
Channel: SCN: Message List - Java SDK Application Development
Viewing all 2284 articles
Browse latest View live

Re: BI4 retrieve current BO session from web session attributes

$
0
0

Hi There,

 

Where did you find swd.shared.jar file? I am facing the same issue,  I don't have reference to RequestInfo and

I don't have the below path either

 

<Install DIR>\SAP BusinessObjects\Tomcat6\webapps\BOE\WEB-INF\eclipse\plugins\swd.shared


Please let me know.


Thanks,

Rakhy.


Re: Rescheduling the report using BO SDK jsp

$
0
0

Thanks a lot Dell, this code works perfect!

 

one small change I did,

String eventType = iobj.getSpecificKind(); didnt work, maybe I missed some lib to import, can you please send me list of lib that need to be imported.

For temporarily, I used below code and it works.

String eventType = (String)iobj.properties().getProperty("SI_KIND").getValue();

 

One final doubt, can we list the reports which are based on these events? If yes, can you please help me to achieve it.

Re: Rescheduling the report using BO SDK jsp

$
0
0

Also, for my earlier question, I have got logic to reschedule without a need to fetch all the properties. Posting it here, just in case if it might help you/others.

 

    IEnterpriseSession ceSession = CrystalEnterprise.getSessionMgr().logon( boUsername, boPassword, boCmsName, boAuthType ) ;

    IInfoStore         oInfoStore = (IInfoStore)ceSession.getService( "", "InfoStore" ) ;

   // IInfoObject oI = (IInfoObject) oScheds.get(0);

    IInfoObjects oScheds = oInfoStore.query("select top 1 * from ci_infoobjects where   si_recurring=1 and SI_NAME='"+reportName+"'" );

   

          IInfoObject oSched = (IInfoObject) oScheds.get(0);

          oSched.getSchedulingInfo().setType(CeScheduleType.ONCE);

           oSched.getSchedulingInfo().setRightNow(true);

          

           while(oSched.getSchedulingInfo().getDependencies().size() > 0)

               oSched.getSchedulingInfo().getDependencies().remove(0);

             oInfoStore.schedule(oScheds);

 

Pls let me know if this wont work in all scnerios.

BO SDK

$
0
0

We have two web applications and they are internally redirected. Each web application connect to different version of BO CMS. How can we get credentials of both in same page and create valid session for both. 

Re: BO SDK

$
0
0

Hi,

 

Can you please provide details about the BusinessObjects versions and also a little brief of your requirement.

As far as the question in the post goes, it seems you have two different application which redirects to two different versions of BO. Now if the two versions of BO are different, say for example XI 3.1 and BI 4.0, their libraries(jars) would be different. And if you want to make session to the two versions, you would need to utilize the jars from each version separately. It is not recommended and supported(though might work) to use different version jar files of BO with a different version.

 

Hope I got the question right?

 

Awaiting your response.

 

Thanks,

Prithvi

Re: Rescheduling the report using BO SDK jsp

$
0
0

Instead of getting "SI_KIND" in the query, get SI_SPECIFIC_KIND - I meant to change that.

 

There is no way to get from the event to the schedules that us it.  Instead, you would have to look at all of the schedules - the following query will get this information:

 

Select SI_ID, SI_NAME, SI_SCHEDULEINFO.SI_DEPENDENCIES, SI_SCHEDULEINFO.SI_DEPENDANTS from CI_INFOOBJECTS where SI_SCHEDULE_STATUS = 9

 

SI_DEPENDENCIES will list any events that the schedule waits for.  SI_DEPENDANTS will list any schedule events that will be set when the schedule completes.

 

-Dell

Re: Modify WebI Toolbar in BO 4.0

$
0
0

In 4.1 SP3 (possibly earlier, but I don't have an earlier SP that I can look at to verify...) there is a "Customization" option when you right-click on a User Group other than Everyone or Administrators.  Under this option you can turn off the visibility of various toolbars and buttons in the Webi application.  I'm not sure whether this applies to OpenDocument, though.

 

Other than that, I don't know of any way to specifically turn off buttons or tool bars in an OpenDocument call.

 

-Dell

Getting incorrect list of scheduled reports

$
0
0

Hi Eveyone

 

I want to find the list of reports that are scheduled to run on a particular day.

 

I am executing the following query:

 

select * from ci_infoobjects where si_recurring=1  and si_instance=1 and  si_nextruntime='2014.06.13'.

 

This should give me the list of all reports which are supposed to run on 13TH June 2014.

 

However i am not getting all the reports instances which are supposed to run that day.

 

I have used si_nextruntime and i have observed that it returns inconsistent results.

 

Please guide me on this.


Re: Getting incorrect list of scheduled reports

$
0
0

SI_Next_Runtime is a couple of things:

 

1.  It is a date/time.  So, you probably need to query for SI_NEXT_RUNTIME between 2014.06.13.00.00.00 and 2014.06.13.11.59.59.

 

2.  It is literally the next scheduled run.  So, for example if you have a report that runs every day and you're looking at a date that is two days in the future, it won't appear in your results because SI_NEXT_RUNTIME is tomorrow.

 

-Dell

Re: Conversion issues from CR4E to BOE XI 3.1

$
0
0

Hi Prithvi, thanks for responding.

 

I am using BOE as unmanaged.

 

I have tested the report in CR2008 designer and it displays as expected.  The barcode is not wrapped.

 

I have a separate install of Tomcat to use for simple testing outside of my application to ensure that any issues I am running into are not my application.  I am using jsp files to test with that are based on the sample applications.

 

Running the same app through the jsp as well as my application wraps the text of the barcode.

 

At current I am testing against BOE 3.1 SP7.  For simplicity, I have put all of the jar files from common\4.0\java\lib folder and common\4.0\java\lib\external folder in the tomcat lib folder to ensure that I was not missing one.  The barcode is still wrapping.

Business Objects Enterprise 4.0 SP9 - Where is the crystalreportviewers folder

$
0
0

I have installed Business Objects Enterprise 4.0 SP9 for unmanaged report testing.  I am setting up a small jsp to test connectivity and was setting up the web.xml file.  But I am unable to find the location of the srystalreportviewers folder.  If version 3.1 it was in the "business objects\common\4.0" folder.  Where is it in BOE 4.0?

 

Thanks

Jason

Report Engine API 4.0 (upgrade to 4.1)

$
0
0

Hi,

 

In the incoming days we will face the upgarde of our current SAP BI Platform (4.0 SP8) to next minor release (4.1). One of most challenging points is to ensure the proper behaviour of existing SDK customizations based on Report Engine API available at 4.0. I know that SAP is promoting use of Restful Web Services as a way to implement functionality previously delivered by JAVA API but my question is. Will current Report Engine API based developments work under in 4.1 release? In other words, has SAP planned an smooth transition from Report Engine API to restful Web Services scenario (compatibility scenario ) or code will have to be completely rewriten ?

 

Thanks,

Re: Business Objects Enterprise 4.0 SP9 - Where is the crystalreportviewers folder

$
0
0

Hi Jason,

 

Please refer the below location for the location of crystalreportviewers folder location in SAP BI 4.x:

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports (in windows).

 

If you have other platform try the below location:

<BuinessObjects-Installation-directory>\Crystal Reports.

 

Hope it helps.

 

Thanks,

Shailendra

Re: Business Objects Enterprise 4.0 SP9 - Where is the crystalreportviewers folder

$
0
0

Hi Shailendra,

 

The C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports 2011\crystalreportviewers folder only contains an ActiveXControls folder.

 

The 3.1 version has an ActiveXcontrols folder along with a bunch of other folders and files.

 

Jason

Re: Report Engine API 4.0 (upgrade to 4.1)

$
0
0

Hi Alfons,

 

As per the current situations Report Engines SDKs are still the same in BI 4.1 likewise in BI 4.0 all patches. You can perform the below functionalities with BI 4.x Report Engines SDK :

- Export Webi Report to some other format.

- View a Webi Report.

- Partial drilling.

- Save prompts in Webi reports etc.(Most of the functionalities are deprecated like schedule with prompts etc.)

 

On the other hand with Webi Raylight REST SDKs you can leverage the workflow of legacy functional parity of BusinessObjects XI 3.1 Report Engines SDKs.

 

By seeing as a future, it looks like most of the new development & enhancement are happens in the Webi REST world. So planning to rewrite the code in terms of REST SDKs is beneficial.

 

As you are talking about the compatability, Report Engines Java SDKs are same upto BI 4.1 Patch 4 release. But it might be possible that in future Report Engines Java SDKs are totally deprecated. You can also refer the Object Model Digram of Report Engines SDKs which gives you list of deprecated interfaces, classes & methods.

 

Hope it helps.

 

Thanks,

Shailendra


Re: Business Objects Enterprise 4.0 SP9 - Where is the crystalreportviewers folder

$
0
0

It should contains bunch of files along with other folders.

You can also access from the below location as well:

C:\Program Files (x86)\SAP BusinessObjects\tomcat\webapps\BOE\WEB-INF\eclipse\plugins\webpath.CrystalReports\web

 

Hope it helps.

 

Thanks,

Shailendra

Java application connection to BusinessObjects V6.5 server

$
0
0

Hi,

We have java application running on Websphere. This app is making connection to BusinessObjects V6.5 server at the backend. I am trying to find out where the configuration at java app is done to connect to  this BO server. I can see that our app calls WIServeImpl class present under webi.jar which then utilmately calls clusterconfig class present under boconfig.jar. I could trace out that it is reading some property file called configtool.properties in ClusterConfig class but I am not able to locate it anywhere in my application ear file or on the server.

 

I think this configtool.properties file will have the ORBDomain and port where we configure the BO server details.

 

I have only the BO jar files and not their source code, so it becomes difficult to track it.

Can you guys please help?

 

Thanks,

Gurmat

Use Java SDK to get universe objects referred by webi

$
0
0

Dear Experts,

 

We have a question about BO 4.0  Java SDK.

 

We are writing a java program to:

(1) Retrive all webi reports in a specific public folder

(2) For each webi, list all universe objects (i.e. universe name, dimension/measure name, dimension/measure definition) used.

 

We referred some online references to create a program (attached Programme2-copy.java.txt) but there's error when we try to get dataSource's universe name: com.businessobjects.sdk.core.exception.common.NotImplementedException: This feature is not implemented. (Error: RWI 00013)

 

 

 

After checking SDK, we found that the ReportEngine methods are deprecated

 

https://help.sap.com/javadocs/bip/40/re/en/com/businessobjects/rebean/wi/DataSource.html

 

 

 

Do you know any alternative SDK/method that can help to achieve the task?

Thanks in advance!

Re: Use Java SDK to get universe objects referred by webi

$
0
0

Hi Vicky,

As rightly figured out, Report Engine SDKs many features have become obselete and deprected and an equivalent SDKs known as RestFul Webservices SDKs have been introduced as its replacement.

 

As far as your first question goes about retrieving all webi reports from a specific folder, can still be achieved using the Enterprise Java SDKs.

 

However, as far as your second query goes, you would need to use the Webi Restful webservices.
The first requirement can also be achieved using the Restful Web services SDKs.

Thus it would be best to learn and explore about the Restful webservices.

Below are the links to few of the Blog posts related to the Restful SDKs
http://scn.sap.com/community/restful-sdk/content#filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bblogpost%5D
http://scn.sap.com/community/restful-sdk/content#filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bdocument%5D

 

Also post any of your concerns regarding Restful webservices in the below forum
http://scn.sap.com/community/restful-sdk

 

You can find the relavent guides at
http://help.sap.com


Navigate to Analytics-->Business Intelligence--> Select your Product Version--> Development Information.

 

Refer to the Webi Restful webservices guides.


Lot more features have been added to BI 4.0 SP6 onwards and ongoing BI 4.1 versions.

You would need to go through the guides to figure out which product version currently is offering you the atmost features as per your requirement.

 

Thanks,
Prithvi

Setting PDF format to Publication defaulted to TEXT

$
0
0

The following code snippet failed setting PDF format to the publication.  Everyone I set it, it defaults to TEXT.

IProcessingPublicationInfo processingPublicationInfo = (IProcessingPublicationInfo)newPublication.getDocumentProcessingInfoObject(documentID);

IFormatInfo pdfFormatInfo = processingPublicationInfo.getFormatInfos().add();

pdfFormatInfo.setFormat(CeKind.FullClient, IReportFormatOptions.CeReportFormat.PDF); // Always default to TEXT when viewing in InfoView as well as when the report runs.  It works nicely with EXCEL.  Is this a bug in BO 3.1

Viewing all 2284 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>