Is getViewRoot().getLocale() depend on user's PC language?

Hi guys,
is the FacesContext.getCurrentInstance().getViewRoot().getLocale() depend on user's PC language? If the user PC is installed with Chinese (zh_CN) version of Windows XP, then the getLocale() will sure return 'zh_CN' ? Please help, Thanks in advance !
regards,
Mark

Users should select their preferred language in the profile tab for the configurable text to show up properly. Otherwise, you need to ensure the product text entered uses the same language codes as the browser (de for German for example) in order to show up properly.
The order of preference in how OiL determines what to display is:
-- Preferred Language at the user level (mapped to a language code which must match the language code of the product text)
-- Browser Language (language code must match the language code of the product text), otherwise default is displayed (ensure the language code for default english is set to en-us and not en)
-- English (en-us)
Scott Morris
www,seertechsolutions.com

Similar Messages

  • Show report in different currency depending on user parameter

    hi all,
    i'm trying to show my report in different currency, depending on users given parameter.
    i hold my account balance in USD based. User should select one parameter, in which currency they want to see their account balance. (e.g. EURO, GBP ...) and depending on their selection, i want to convert USD based info into chosen currency, by fetching field from currency table and making some calculation.
    also i want to include in report currency($, £ ...) accordingly ().
    how can i achieve this, has somebody any suggestion to me?
    thanks in advance.
    bogi.

    hi,
    i think i need to explain my problem more detailed. anyone who has suggestion, please help me.
    i have 3 tables account, times and currency.
    - times table has time_key, date, day_of_week fields.
    - account table has - account_balance and time_key_FK fields.
    - currency table has currency_type, amount, time_key_FK fields.
    1. i have function decode(:Currency,'USD',account_balance,'EURO',--here i want to replace my calculation CALC1---)
    CALC1- this calculation need to some calculation like this: account_balance * (fetched field from this sql)(select amount from currency, account where currency.currency_type='EURO' and account.time_key_FK=currency.time_key_FK)
    i tried to do this, but discoverer plus doesn't let me make condition and calc. i'm very confused.
    2. after i achieve this query, somehow i want to display on worksheet on which currency is it based. can i get parameter value, and show this value as in column heading?
    tnx!!!

  • I'd like to select print paper size with using AxAcroPDFLib method depend on user

    I'd like to select print paper size with using AxAcroPDFLib method depend on user
    request. Is it possible? in AxAcroPDFLib?
    Is there any method to select print paper size in the C# programming.
    Or if you know another method, please introduce how to use.
    Thank you for your cooperation always.

    I am pretty sure that you can only do this from JavaScript or from C/C++ APIs.

  • Report data filters depending on user

    I have web intelligence report returning data grouped by departments. Is it possible to filter report data by department for user logged in depending on user's department?
    Thanks
    Edited by: Denis Sapunkov on Aug 19, 2010 12:58 PM

    This can be achieved in 3 ways:
    1. In Web Intelligence
    Providing you have a table in your database that holds username and department you create a webi report where you select "Dept. Username", "Department" and all other objects you require for your report.
    - Run the Query
    - Create a new variable called CurrentUser => Formula: =CurrentUser()
    - Create a new variable called "Department Filter" => Formula: =If([CurrentUser] = "Dept. Username" ; "Yes" ; "No")
    - Create a new report filter: Department Filter = "Yes"
    This will only return the deprtment for the user that is currently logged on to BO.
    2. On universe level you could use access restrictions to achieve this
    3. If you require to schedule the report, you could create a group for each department and assign this group to a profile that filters on department.
    Hope this helps!

  • 2 columns dependent on user parameter, others are not - complicated

    Hi
    My select statement (for reporting purposes) contains 8-9 columns from a number of tables.
    My problem is that 2 out of these columns will depend on the following:
    a. user entered parameter
    b. more complex joins needed for just this column - on difefrent tables than used by most of the columns
    ex: of above (excluding other columns that do not depend of user parameter):
    select sum(col1), sum(col2)
    from tab1, tab2, tab3
    where tab1.col1 = tab2.col1
    and tab1.col2 = tab3.col2
    and tab1.col3 = (select col1 from tab4 where tmstmp = (select max(tmstmp) from tab4)) and tab1.col5 = (select col1 from tab6 where col1 = <userparameter>)
    How can I combine the above with my main sql statement that looks like
    select...
    from tab10, tab11,tab12,tab13,tab14........
    where ...........
    order by
    Any ways to resolve the above problem without affecting performance too much ... greatly appreciated.
    Thx!

    that looks like a dba's nightmare. I wouldn't want that running on my server.
    Perhaps you can simplify it using functions.

  • Display different portal page or portlet depend on user's

    can I display different portal page or portlet depend on user's
    profile,such as: if user's gender is male, display a portal
    page named "malePortal",if the user's gender is female, display
    a portal page named "femalePortal"

    This can be accomplished by using Entitlements Segments.
    You can define them in EBCC. you will have to define a user profile which
    will contain user information (like gender).
    Once you have two segments defined, you can use portal administration site
    to configure entitlements for pages and portlets.
    Regards
    Mike
    "Joshua Davies" <[email protected]> wrote in message
    news:3d1c78cb$[email protected]..
    >
    "xxxx" <[email protected]> wrote:
    can I display different portal page or portlet depend on user's
    profile,such as: if user's gender is male, display a portal
    page named "malePortal",if the user's gender is female, display
    a portal page named "femalePortal"If it has to be a portlet, you'll have to create a custom web flow thatstarts with
    a custom IP class. If you just want to show different content based on auser profile
    value, take a look at "Content Selectors" in EBCC; this sounds like aneasier way
    to get where you're trying to go.
    I don't think there's a way to display different portal pages/portalsbased on user's
    profile settings.

  • Pipelined function, select from table t1 or t2 depending on user's choise

    Hi all,
    My need is to select data from table t1 or t2 depending on user's choise using pipelined function. You can find my first guess below. Maybe someone can help me to save some code, I mean getting the same result without writing "PIPE ROW" twice.
    FUNCTION fn_indicators (p_datbeg date, p_datend date, p_indicatorid number) return cl_risk_act pipelined IS
    v_obj cl_user_type;
    BEGIN
    case when p_indicatorid = 1 then
    FOR e IN (
    select trunc(sysdate-1) as adate, 0 as cid, 0 as indicatorid, '0' as code, '0' as indicatorname, 0 as value, 0 as cnt, '0' as cname from dual
    LOOP
    v_obj.adate              := e.adate;
    v_obj.cid                  := e.cid;
    v_obj.indicatorid       := e.indicatorid;
    v_obj.code               := e.code;
    v_obj.indicatorname  := e.indicatorname;
    v_obj.value              := e.value;
    v_obj.cnt                 := e.cnt;
    v_obj.cname            := e.cname;
    PIPE ROW (v_obj);
    END LOOP;
    when p_indicatorid = 2 then
    FOR e IN (
    select trunc(sysdate-2) as adate, 1 as cid, 1 as indicatorid, '1' as code, '1' as indicatorname, 1 as value, 1 as cnt, '1' as cname from dual
    LOOP
    v_obj.adate              := e.adate;
    v_obj.cid                  := e.cid;
    v_obj.indicatorid       := e.indicatorid;
    v_obj.code               := e.code;
    v_obj.indicatorname  := e.indicatorname;
    v_obj.value              := e.value;
    v_obj.cnt                 := e.cnt;
    v_obj.cname            := e.cname;
    PIPE ROW (v_obj);
    END LOOP;
    end case;
    RETURN;
    end;

    marco wrote:
    Justin,
    In my real code table real_t1 or pipelinedfn_t2 is joined to other tables, so surely real code is bigger than sample one. It is not wise to keep code twise with only one table name changed. I think about dynamic sql to choose from two tables:
    with t1 as
    (select * from real_t1
    t2 as
    (select * from pipelinedfn_t2
    t3 as (
    [dynamic selection of t1 or t2 depending on user's choise]
    select * from t3, t... where...I don't know correct syntax.
    Any ideas?
    >Justin,
    In my real code table real_t1 or pipelinedfn_t2 is joined to other tables, so surely real code is bigger than sample one. It is not wise to keep code twise with only one table name changed. I think about dynamic sql to choose from two tables:
    with t1 as
    (select * from real_t1
    t2 as
    (select * from pipelinedfn_t2
    t3 as (
    [dynamic selection of t1 or t2 depending on user's choise]
    select * from t3, t... where...I don't know correct syntax.
    Any ideas?
    Dynamic code does NOT scale.
    Making the tradeoff of smaller code size for reduced performance is not one that I would make.

  • Chioce of KF depending on user entry

    Hello,
    I have 3 different key figures that separate transaction currency, company code currency and controlling area currency per record.
    The requirement is to be able to display one of these key figures based on user entry. That is, I'd like to choose for example company code currency and thereby use that particular key figure in the query.
    Traditionally, a currency type is used for this, but in this case I doesn't exist. How would you solve this issue? Via a virtual KF?
    Regards,
    F C

    Hello,
    I want the query to select one of the mentioned key figures depending on the user entry. Hence, I cannot use variables. I reccon I need to fill a virtual KF with the value of either one of the real KF's.
    I could create an own column per KF and hide/unhide, but this is not the requirement. Only one should be chosen depending on user entry.
    Any other ideas?
    Regards,
    F C

  • Mandatory filter which value depends on user choice

    I've just start my experience with SAP BO, and I have big problem to solve. Iu2019m using Universe Designer and I need a mandatory filter, which can have one of two values. The value of filter depends on user choice. Filter should have default value. Eg. when user choose "internal view" filter will add expression tabe.column = 'X' to a query, when user choose "external view" filter will add expression table.column = 'Y'. The main problem is that chosen value should be remembered in report. So user cannot be prompted every time to choose a value. Does anyone has any idea how to solve this problem? The best solution would be when one filter could reference to another. Or to use internal report variable, but I think there is no such thing. Thanks for any advice.

    It should be solved by using an @prompt in the mandatory filter.
    eg. table.column = @Prompt('Select internal or external','A',{'internal view','external view'},Mono,Constrained,Persistent)

  • Vlan depend on user account

    i`m asking, is possible to assign  the vlan depend on user account 
    i have a lot of sub nets and i need to link between user account  and vlan,
    the current solution  is to divide the vlan on switches 

    You can do this with Windows server and NPS server.  Here are some attributes you can send over from NPS server to make this happen:
    http://technet.microsoft.com/en-us/library/cc754422%28v=ws.10%29.aspx
    Also, you will need the switches configured like this as well:
    http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750xscg/sw8021x.html#wp1207975
    I hope that helps.  Its certainly not a simple undertaking when using 802.1x but that is the best way to do it by user.
    Be user to rate if this is helpful!

  • Showing applets depending upon user input in one web page

    hi, I have three applets. I want to create a webpage, put three buttons (or other interactions) on it. If button one is clicked, applet one is shown. If button two is clicked, applet two is shown. I want this to happen in one web page only and one applet at a time depending on user input. Is there a way to do it? Do I need to use javascript? I am new to javascript ,but if you can point me to relevant javascript topics, i am willing to learn it. Thanks.

    There are a couple of ways I can think of off the bat...
    1) Create an IFrame that the Applet will be displayed in. The button you press submits a form whose target is the IFrame and whose action is a page with the correct Applet.
    2) Actually load all 3 Applets on the page and hide them all in a invisible divs. The button calls a javascript function that unhides a specific div (and hides all the others to be sure only one is displayed at a time).
    3) Uber-javascript AJAX like control that when the button is pushed makes a request to a page that returns the applet tag which the javascript control then inserts into the page at the proper location.
    I would toss up between 1 & 2.
    For code, search Google for important key words (like "form target iframe", or "javascript make divs invisible").

  • VLAN depend on user credentials

    Hi all
    We have plan to implement Cisco WiFi controller 2504 with APs 1602.
    In the network there is the ACS server.
    The goal is to authenticate users, and depend on users credentials AP/WLC will deploy appropriate VLAN.
    For example
    Guest user will be pushed in the VLAN100, corporate users will get VLAN 10...
    Does it possible with equipment we have/will have:
    ACS server
    WLC: AIR-CT2504-50-K9
    AP: AIR-CAP1602E-EK910
    If not, what we need to implement our request?
    Thanks

    You can look at dynamic vlan assignments using AAA override on the WLC. However, if your using WebAuth/captive portal for guest, you can't change their vlan. This is a layer 3 authentication so it requires the device to have an IP address prior to hitting the portal page. For other authentication methods, has to be 802.1, you can do that.
    Sent from Cisco Technical Support iPhone App

  • How can event reminders be delivered in a user's preferred language?

    Can the event reminder function of iPlanet Calendar Server(iCS) 2.1 P1 be
    configured to send reminders in a user's preferred language if the language is
    not English (e.g., French, Italian, or German)?
    <P>
    In iCS 2.1 P1, there is a server parameter in the server.conf
    file called
    caldb.smtpmsgfmtdir for
    configuring the email notification tag lines. Setting the
    caldb.smtpmsgfmtdir
    parameter indicates which locale iCS will use for email messages. The default
    value is "en," or English.
    <P>
    Unlike the user interface, iCS 2.1 does not automatically attempt to change
    the locale on a per-user basis. A future release of iCS will address this
    issue of automatically changing the locale on a per-user basis.

    Hi,
    All you need to do is to create the condition in the discoverer instead of in the query.
    Create a custom folder containing the following sq (note that i removed the condition)l:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    Then create a discoverer report using this folder using all fields.
    Create a new calculation as (use this exact syntax):
    Sysdate + :No_of_Days_in_the_Future
    Create a new condition:
    pca.expiration_date <= <your calculation>
    To complete it add a sort as you did in the SQL.
    That's it.
    Tamir

  • Using JSP Get User's Default Language

    Hi!
    I have to get the User's Default language using JSP that the client is accessing website and u want to rederict him automatically to his default language which he is using. Like in google aur other websites.
    If it is also possible in Javascript then it is also acceptable for me.

    this can only be done if the request has the Accept-Language header set. You can read this using either request.getHeader("Accept-Language") or request.getHeaders("Accept-Language") for an enumeration of all the languages that the user will accept. Look at this page for details on the Accept-Language header: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Note that the user agent (browser) does not have to provide this information (my Netscape browser does not, and I always get English from Google. My IE browser does, so I will get German if my default lang is set for German).

  • Detectng User's PC language (idiom)...

    Hi folks. New question: my customer is asking for a way to
    enter the website in the user's native language.. Of course it has
    the option of changing languages, but he wants to enter by default
    with the User' s PC prefixed language... how to do it ? Appreciate
    any help,
    Thanx in advance,

    Gary White wrote:
    > Just curious, but the OP mentioned that the user would
    be able to select
    > the language of choice. He/she is just looking for a way
    to set the
    > default language. I'm not sure I see the problem with
    that.
    If the content negotiation can be overridden, there's no
    problem.
    However, I found the implementation of content negotiation on
    the Apache
    website to be a complete nightmare. Even if I managed to
    bring up a page
    in English, as soon as I clicked on a link, it took me back
    to a
    Japanese page. I could find no way of overriding it, even
    though I had
    my browser configured to give preference to pages in English.
    Since the release of Dreamweaver MX 2004, which supports
    Japanese even
    on an English OS, I no longer use a Japanese operating
    system, so I
    haven't been able to test how the Apache site handles content
    negotiation recently. It may have improved, but the point
    remains that
    making assumptions about a user purely on the basis of
    software is
    fraught with danger. Any setup that uses content negotiation
    to serve up
    a default language needs to be fully tested to make sure that
    it doesn't
    lead to the nightmare scenario I endured.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for