cancel
Showing results for 
Search instead for 
Did you mean: 

OpenDocument - Bypass login screen from iPhone / iPad

Former Member
0 Kudos

Hello,

I am trying to display a dashboard from my custom app via an OpenDocument link. The dashboard can be displayed with no problems. The question is how can I avoid the login screen?

The user is already logged in to my app, no need to show the login page for the SAP BO Mobile Server. I have seen solutions for it that use the Java SDK (CrystalEnterprise.getSessionMgr().logon) but I am wondering how I can do the same from an iOS device.

Thanks,

Guven.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In other words, how can I retrieve the 'token' or the 'serSes' values so that I can pass them as parameters in the OpenDocument URL?

ashutosh_rastogi
Active Contributor
0 Kudos

HI Guven,

I can think of two scenarios

One - When you have username and password and you want to use API to logon. And then get the token and use the same session to logon.

In this case you can get IEnterpriseSession of BOE using following API

ISessionMgr mgr = CrystalEnterprise.getSessionMgr();

IEnterpriseSession es = mgr.logonEx(username, password, cmsServer, authType, logonInfo);

Second - You don't have username/password however you have the session token, and you want to use that to logon.


In this case you can get IEnterpriseSession of BOE using following API

ISessionMgr mgr = CrystalEnterprise.getSessionMgr();

IEnterpriseSession es = mgr.logonWithTokenEx(token, logonInfo);

Once you have token you need to add that to http session object.

httpSession.setAttribute("boe_session", es);

After this, your open document link should work.

Regards,

Ashutosh

Former Member
0 Kudos

Hello Ashutosh,

I haven't come across such SDK for iOS. Your examples use the Java SDK.

Thanks,

Guven.

ashutosh_rastogi
Active Contributor
0 Kudos

Hi Guven,

I though you were trying to achieve this on a custom application written in between mobile server and IOS client.

There are no libraries available on IOS client to logon to BOE. However, you can consider using BOE Rest API's for logon.

Regards,

Ashutosh

Former Member
0 Kudos

Hello Ashutosh,

The BO REST API would be a very good solution, I hadn't heard of that before.

I have looked around for any documentation and come across this link: http://scn.sap.com/docs/DOC-38841. Unfortunately, I am not authorized to view this page.

Do you have any pointers for the REST API?

Thanks,

Guven.

Former Member
0 Kudos

Hi Guven,

I'm trying to embed Webi view in my iOS application with the latest SAP IB SDK (MOBSBOPIOSSDK600_3-80000036).  However, it always report getDocumentFailed with the message "Document with given CUID does not exist".  I double checked that CUID exists and the corresponding webi report supports mobile.

Here's the code and any suggestions are highly appreciated:

   [_mobiOperation getDocumentView:@"DacD254GGjtVDs7DCI1HXY67" type:WebIntelligenceDocument additionalProps:@{REPORT_INDEX: @"0"}];

Can you help me?

Thanks in advance!

Regards,

ashutosh_rastogi
Active Contributor
0 Kudos

You can have a look at section 3.3.1

https://help.sap.com/businessobject/product_guides/boexir4/en/xi4_bip_rest_ws_en.pdf

Hope that helps.

Regards,

Ashutosh

Former Member
0 Kudos

Hello Shaobo,

I gave up on using the SAP BI SDK; I am instead going with OpenDocument URLs. So, I can't help you with that issue. You can post a new question for that.

Thanks,

Guven.

Answers (0)