COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Mobile => Topic started by: ordotan on 19 Mar 2015 09:34:47 AM

Title: Mobile or Browser Indication
Post by: ordotan on 19 Mar 2015 09:34:47 AM
Hi,

I have a report that I want to be use in both browser and mobile application. However, I need to get different behavior (images/prompts/ect..) per platform (browser or mobile).

Is there some macro or session parameter that I can use, that will provide me with an indication to whether this report is being run from browser or mobile application?

Thanks !
Title: Re: Mobile or Browser Indication
Post by: MFGF on 20 Mar 2015 05:58:33 AM
Quote from: ordotan on 19 Mar 2015 09:34:47 AM
Hi,

I have a report that I want to be use in both browser and mobile application. However, I need to get different behavior (images/prompts/ect..) per platform (browser or mobile).

Is there some macro or session parameter that I can use, that will provide me with an indication to whether this report is being run from browser or mobile application?

Thanks !

Hi,

For Active Reports you have properties you can define for visibility in landscape vs portrait on a mobile device. These don't exist for non-active reports though. One of IBM's key selling points is that you can "author once, consume anywhere", which means reports look and behave the same regardless of the method of consumption. It sounds like you are trying to go the other way, and have a report behave differently? I'm not sure there is easy way to do this.

MF.
Title: Re: Mobile or Browser Indication
Post by: ordotan on 22 Mar 2015 01:06:31 AM
My issue is that we had implemented various JS elements in our reports, which look and behave good in the browser, but when running it in mobile, it doesn't always look good, as JS isn't officially supported in mobile.

I don't want to create 2 versions of the same report, so as a workaround, I want to control the rendering of specific elements, but for this I need to get an indication whether it's a mobile or browser report...