If you are unable to create a new account, please email support@bspsoftware.com

 

Redirection after user logs in (based on screen size)

Started by acfsp, 01 Oct 2018 09:23:30 AM

Previous topic - Next topic

acfsp

Hi guys,

I am aware of the complexity of making Cognos any kind of responsive when the only option is for you to base the elements sizes on percentages.

This doesn't seem to be good enough for our project and we are considering creating different reports for different screen sizes. However, in that case we would need to have a previous report/page that would check on your screen size when you log in, and based on those measures redirect you to one of those reports that fit you the best.

I doubt very much that Cognos would have such an option, but you guys have much more knowledge of it than me, so please tell me where to look at if something comes to your mind.

My first intuition would be to do so with an empty report page including a single custom controller on it pointing to an script. However, I'm not sure how I could redirect the user to a specific report from there...

Any help would be really really appreciated.

Thanks a lot.

TomCognos

Hmm. Ok I have mucked around with this type of thing in the past.

I would javascript a prompt page with just the standard cognos waiting logo, that auto submitted after 1 second. (Google javascript and auto page submit)

On this prompt page I would also use javascript to read the screen size and update an optional value prompt (hidden).

Then on the main page just conditional variable the report objects sizes based on the optional prompts screen size.

When users run the report a screen will pop up waiting, flicker to waiting if you can line up the waiting logo with official Cognos one. Then the report will run. Adjust accordingly. An the users will be none the wiser.

Make sure you use Conditional Styles. That way you can copy them from report to report.

An alternative is to have a second prompt page that is the same as the first though now that the screen size is set in the optional prompt you can now use a page set to drive the users to one page or another. This way you can preset the sizes.

Either way should work.

acfsp

Hi GrumbleNuts,

Thanks for such a detailed reply. That sounds like a good approach, so I'll give it a go today and will come back to share my results :)

Cheers!