cancel
Showing results for 
Search instead for 
Did you mean: 

How can I see that a BSP is running as IView?

RenaldWittwer
Contributor
0 Kudos

Hello,

I have a question that seems very easy.

I have a bsp that is running "standalone" or sometimes as a iview. Depending on the environment I have to build different links.

How can I see on the server that a BSP is running as IView?

Thanks for help!

Best regards

Renald

Accepted Solutions (0)

Answers (3)

Answers (3)

RenaldWittwer
Contributor
0 Kudos

If the bsp is running as iview, the attribute runtime->portal_version has the value '6.2'. If the BSP is running standalone the attribute runtime->portal_version has the value '0.0'.

I think this is the solution for me.

eddy_declercq
Active Contributor
0 Kudos

The referrer stuff is only applicable of course for the first page of your BSP so the runtime->protal_version is indeed a better solution

athavanraja
Active Contributor
0 Kudos

Thanks for sharing the info Renald.

Regards

Raja

RenaldWittwer
Contributor
0 Kudos

Hello Raja,

thank you very much for your reply. I had the idea to use the "opener" or "parent".

Unfortunally I can not see this objects on the server. Ofcourse I can write the needed values in a hidden input-field and send it to the server, my hope was to find a better solution. In values like referrer I can find the url, so I have to build a mapping which url is a portal and which url is not.

Perhaps we can find a better solution.

I found the attribute runtime->portal_version a few minutes ago and try to figure out if this value will help me.

Best regards

Renald

athavanraja
Active Contributor
0 Kudos

Check whether document.referrer can help. (This will tell you from which page user has come into the current page) In a portal scenario they would have navigated to this BSP iview.

How to use document.referrer ? check out this link.

http://www.netmechanic.com/news/vol4/javascript_no14.htm

Regards

Raja