on 09-24-2008 11:50 PM
is there a way to programatically determine what the users browser is?
I have a webdynpro that can run on both Blackberry (WML browser) and IE via the portal.
I need a way to identify the users browser from Webdynpro Java.
Hi,
When I ran the following statement in IE,
TaskBinder.getCurrentTask().getClient().getClientDescription().getName()
I got it as "HtmlClient".
Try from BB, you may get "WmlClient"
-Aarthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes we currently are using 2 URLs to launch the apps, however, we wanted to see if we could just give 1 URL out to the end user....so they wouldn't have to remember which one to go to for Blackberry and which one to go to for IE.
I have a solution working....I just need to find a way to detect the client without using the TaskBinder.
Let me know if you find another way ....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
aarthi mathivanan
I am afraid TaskBinder might not be supported in the future since it is not part of the API ?
see this [thread....|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1222] [original link is broken] [original link is broken] [original link is broken];
let me know your thoughts....
are there any WD or IWD classes that do the same?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
Yes it did return "WmlClient".
now i need to figure out how to call one webdynpro application if the its "HtmlClient" and call a different application if its "WmlClient"...any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.