Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to determine device (desktop or mobile) connected to Apex

737189Jan 7 2013 — edited Jan 9 2013

Hi!
I have developed many triggers that fire after login. One of them to redirect app to user defined start page.
Now when mobile apps are introduced (Apex 4.2), many things has to be changed in mine logic.
User might have one startup page for mobile and other one for desktop app.
So I have to implement the same logic as it is built in Apex (when user go to app to be redirected to desktop or mobile login page).

Mine question is how to achieve something in PLSQ. Like this code:

IF desktop_ver=1 then 
  :STARTUP_PAGE = 123;
ELSIF desktop_ver=2 THEN
  :STARTUP_PAGE = 1123;
ELSE
   :STARTUP_PAGE = 1;
END IF;

Where desktop_ver is something (variable, function or anything else, "1"=desktop, "2"=mobile ... "something else" as not recognized device) that must be able to recognize previously mention device (mobile or desktop) that called the page.

Rg
Damir

Edited by: Damir Vadas on Jan 7, 2013 3:17 AM

This post has been answered by Christian Neumueller-Oracle on Jan 9 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2013
Added on Jan 7 2013
9 comments
3,220 views