Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Not applicable

Urgent: How to redirect app in mobile device

Hi All,

I have a qlikview report in full version (detailed) & lite version (less data). Is its possible to redirect the users if they login from mobile browser (Safari/Chrome) in Ipad/Iphone to lite version and if they login from desktop to full version? EX: websites are redirected automatically to mobile version if they open it from mobile. if so, please tell me the process & steps to achieve this.

Thanks in Advance

11 Replies

Re: Urgent: How to redirect app in mobile device

Hi

Would the ClientPlatform() function help you ?

Using that you could show / hide the Full / Lite sheets as per your needs.

You would also then only need one qvw dashboard.

Best Regards,     Bill

Not applicable

Re: Urgent: How to redirect app in mobile device

Hi Bill, Thanks for your reply.

ClientPlatform() is not working from load script. Can be used from load script?

Ex: - Let vClient = ClientPlatform(); Returns nothing.

Partner
Partner

Re: Urgent: How to redirect app in mobile device

Hi,

it is correct that ClientPlatform(), returns nothing when you run script. However you need to test this function in server in order to work. You can test it by setting a conditional in sheet properties. Something like this:

wildmatch(Clientplatform(), '*Mobile*')  --> this is for the sheet(s) you want to show just in Mobile

and

not wildmatch(Clientplatform(), '*Mobile*') --> this for sheets you want to show in desktop devices

I use wildmatch, because i'm not sure really how every client is detected when accessing QlikView. I just tested it and it works,

regards

brindlogcool
Contributor III

Re: Re: Urgent: How to redirect app in mobile device

I dont think you will be able use the ClientPlatform() in your loadscript.  The ClientPlatform() will always returns an empty string for Desktop.

  • For AJAX: browser,browsername
  • For iPad Client: mobile.iPhone
  • For IE Plugin: empty String
  • For Desktop: empty String


Also the function will only return the client type for those clients using the QVPX protocol, that is the mobile clients and the AJAX client.

Partner
Partner

Re: Urgent: How to redirect app in mobile device

Hi,

refer to the attached example,

mount it on your root folder in server and try to open it on a mobile device and then on a desktop PC. I tested it using mobile Chrome and "Desktop" Chrome. Depending on the device, you will see a different tab in the qvw document,

regards

Not applicable

Re: Urgent: How to redirect app in mobile device

Thanks all for your replies. my target is to reduce data based on mobile or desktop accesspoint. not show or hide tabs.

what am trying to achieve is one qvw document with 2 yrs data. When I open it from desktop browser I should be able to see 2 yrs data and when I open it from mobile I should able to see 1 yr data. I tried to reduce the data using clientplatform() if its mobile browser, but looks like I cannot do this way. Is any other option available?

Partner
Partner

Re: Urgent: How to redirect app in mobile device

is it possible to host 2 different apps? may be based on same datamodel but a skinned down version for mobile?

brindlogcool
Contributor III

Re: Urgent: How to redirect app in mobile device

1. May be you can have the flag for mobile. While opening the dashboard enable or disable the filter the data for the environment.

Hope you are trying to reduce the data to improve the performance.

Not applicable

Re: Urgent: How to redirect app in mobile device

How do I find find its mobile or desktop? any suggestions?