cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the serializedSession then logonToken from within a document using Javascript in BO 4.3

12-08-2022 12:35 PM
chrismugdan Explorer
17951 views 4 comments
0 Likes
SAP Managed Tags
Subscribe

We have developed a Custom Element for BO that needs the logonToken to function.

How do I get the default logonToken from within the document using Javascript in BO 4.3? I have not yet found anything satisfactory that can do this. From what I have read, you can get it using the serializedSession but then how do you get that? Is it available in the document?

Cheers,
Chris Mugdan

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

chrismugdan
Explorer
0 Likes

I need to elaborate here:

Our product Map Intelligence uses the data in a BO report to generate a map. The map visualization is a Custom Element that, up to BO 4.2, has been working. We did this by inserting jsp's into the Business Objects Tomcat hierarchy and invoking those to generate the map. The method used the BO standard viewer to find the jsp's. Unfortunately this is no longer available to us. I am new to this and have been given the task of making it work. Our Custom Element is a service that (usually) runs on the same host as the BO server. Currently I have an html page that gets sent as the visualization instead of invoking the jsp's.

Can someone please tell me how I can get the document id, occurrence id and session id from within the visualization page, then I need to get the logon token for further operations?

Cheers,
Chris Mugdan

chrismugdan
Explorer
0 Likes

Hi Yogananda,

Thanks for the response. Can you direct me to some documentation for this please? Also, which Javascript files to I need to include in my Custom Element HTML page to use this call and how do I reach them (URL)?

Cheers,
Chris Mugdan

Yogananda
Product and Topic Expert
Product and Topic Expert
0 Likes

chrismugdan

You can use the JavaScript API (sap.bc.ina.api.sina.getSerializedSession) to get the serialized session and logon token from within a BO 4.3 document. The API takes in the current BO 4.3 session as an argument and returns the serialized session and logon token.