Session/user language parameter...

Hi guys,
I'm wondering if there is a place where the session/user language is stored..my need is to check the language and display APEX built applications (embedded content) in this lanugage.
EDIT: I'd like to know also how to retrieve this parameter :)
Pleae help ;)
With regards,
PsmakR
Edited by: PsmakR@ on Mar 12, 2009 2:20 PM

Hehe, I've been looking this page earlier..but I have a different goal I don' want to translate the OBI EE objects...in simple words I'd like know how to retrieve the users selected language by SQL query and do sthg about it :)
Edit: select 'VALUEOF(NQ_SESSION.WEBLANGUAGE)' from DUAL is doing the trick but only ofc with the direct request from answers. Does anyboy know how to get ti outside OBI ? I dont know pass through URL, have it in DB or sthg?
PsmakR
Edited by: PsmakR@ on Mar 12, 2009 3:29 PM

Similar Messages

  • Use of session variable to retrieve user language

    Hi,
    I'm converting some ASP code to JSP and I'm having a problem concerning session variables, in ASP I had something like this
    (first.asp)
    <td align="center" width=145px><%=getLabel(1)%>
    and in second.asp
    dim Label(3,2)
    function GetLabel(ndx)
    GetLabel = Label(ndx, Session("Language"))
    end function
    clang_PT = 1 ' Portuguese
    clang_EN = 2 ' English
    Label(0,clang_PT) = "primeira"
    Label(1,clang_PT) = "Segunda"
    Label(0,clang_PT) = "first"
    Label(1,clang_PT) = "second"
    when trying to do the same thing in JSP
    (first.jsp)
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@include file="labels.jsp"%>
    <!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
    <%if (session.isNew()) {
    session.setAttribute("Language","1");
    }%>
    <%= getLabel(1)%>
    (labels.jsp)
    <%@ page language="java" import="java.util.*"%>
    <%@page pageEncoding="UTF-8"%>
    <%! String getlabel(int ndx){
    return label[ndx][session.getAttribute("Language")];
    String[][] label = new String[2][2];
    %>
    <%
    int clang_PT = 0; // Portugu�s
    int clang_EN = 1; // Ingl�s
    label[0][clang_PT] = "primeira";
    label[1][clang_PT] = "segunda";
    label[0][clang_EN] = "first";
    label[1][clang_EN] = "second";
    %>
    I get
    cannot find symbol symbol : variable session location: class org.apache.jsp.experiencia_jsp return label[ndx][session.getAttribute("Language")];
    ^
    and
    cannot find symbol : method getLabel(int)
    location: class org.apache.jsp.experiencia_jsp
    out.print( getLabel(1));
    Should I use a bean to store this kind of info?
    thanks, V

    right...
    actually, cuz doing this:
    <%!
    String getlabel(int ndx){
    int lang = Integer.parseInt((String)session.getAttribute("Language"));
    return label[ndx][lang];
    %>
    there's no session object... that creates a method in the class separate from the main JSP method. So you need to either pass the session object in, or just pass the attribute value..
    <%!
    String getlabel(int ndx, int lang){
    return label[ndx][lang];
    %>
    int lang = Integer.parseInt((String)session.getAttribute("Language"));
    String lable = getLabel(ndx, lang);

  • Query in Portal User-Language-Independent

    Hi all
    Query and Portal: NW04S
    We have some users with different language as Query language.
    So the result is, when a query is developed in german and a user has default language english the query components are shown in technical values.
    We don't want to translate the query in english
    We don't want to change the users language to german
    So my idea was to change the query iview with the parameter "sap-language=DE", but this doesn't have an affect either in iview-Properties "Query-String BEx Web Application" nor in "Parameter forwarded to BEx Web Application"
    How can I solve this problem, so the bex-query is always shown in german.
    Any ideas?
    Thank you
    Roger

    Bex? or Web?
    Bex - no chance I thinkl - at leats not one that I know off
    I have the same problem with Chinese language in a hard coded English BI portal in a multi language Consumer Portal (!

  • ESS: InvalidUrlRuntimeException depend on the user language !?!

    Hi,
    I've a strange behaviour apparently related to the user language:
    - all the ESS JCO connection are set-up with SSO;
    - with an EN user everithing is OK;
    - with an EN IT language I get an InvalidUrlRuntimeException when I use
    "My Trips and Expenses" link.
    This link point to an EP ROLE://.... an it seems correct.
    If I take the complete URL reported in the error I can show the correct WebDynpro without any errors.
    Another strange think is that some services in the sub-area are not dispalied, only with a differen language than EN.
    Thanks a lot for any help.
    Regards,
    Andrea
    Edited by: Andrea Mello on Apr 7, 2010 4:43 AM

    The translated text contain '&' so the URL parameter was wrong

  • How can I pass dynamic value as a user input parameter in discoverer?

    Hi,
    I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
    The sample code as:
    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'
    AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
    order by pca.expiration_date asc
    Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
    Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
    How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
    Please help.

    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

  • How to send a user defined parameter to a web form?

    Hi,
    I4m looking for a solution how to send a user defined parameter to a web form when I start the form from a html-page.
    I think that it should work to add the parameter to the URL.
    Example: I added myparam=myvalue at the end oft the URL
    http://my.server.com:7777/f60cgi?form=myform.fmx&userid=scott/tiger@mydb&otherparams=useSDI=NO&lookAndFeel=generic&colorScheme=teal&myparam=myvalue
    How can I fetch the parameter myparam in forms?

    You have the user the otherParams parameter, which you can specify in the formsweb.cfg file, or override on the url. e.g. http://myhost/servlet/f690servlet?config=myApp&otherParams=myParam=myValue
    In the Forms Builder, in the Navigator window, there is a node called Parameters. Create one in there, and then you can refer to it like a block variable. e.g. if :myparam = 'myvalue' then...
    At runtime, Forms will match up any parameters on the command with parameters defined in your form, and populate them for you. You don't have to do anything.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Table for User language

    Hello friends,
    Where is user language stored in BW. I am looking for table that stores the language entered thru SU01.
    Thanks
    Rahul

    Hi Rahul,
    Check table USR01.
    Hope this helps...

  • Inactive status  - v$session  users list over WEB application

    Hi all
    When user connect through asp or asp.net, we create a connection in the session object. New sid gets created with each session.
    When user normally logs out the application, his sid gets finished in the v$session users list. But when he dees not logs out in the normal way as we can not force thousand of users over WEB to log out normally, what will happen to the v$session ?.
    1st - We wish to know to know that whether the list will run into thousands of inactive status users OR they automatically gets finished over time. We use the default profile as applicable to new user.
    2nd - If the list of inactive status users gets increased to thousands of users which can be possible for the WEB application , there must be some limit fixed by Oracle 8i/ 10g database OR there may be serious performance problems. This simultaneous connection of thousands of users over WEB is easily possible and when connection is created in session object , what could be the scenario. We avoid creating connection object in the application start event to improve performance for the given sesion.
    Any help is appreciated.
    Suresh bansal

    Thanks for prompt reply
    1st - Can u give some idea for create connection pools using asp.net environments. Further in the connection pool environment as to how much simultaneous running connections we should need to open and how.
    2nd - If we have pool of say 100 connections and there are more number of simultaneous WEB users, what will happen to the application as to whether it gets to hanging /waiting for the pool connection to be free or give error ?.
    Suresh Bansal

  • Layout shows different data depending on user-language (German or English)

    Hello best of the best,
    we are using layouts to enter data into BCS. In one of our layouts different numbers are shown depending on the user-language (German or English).
    This is despite the same layout is used.
    Have you got any idea what could cause this problem?
    Is there a setting somewhere that I didn´t know up to now (to distinguish in different languages)?
    Better to ask SAP using an OSS-message?
    Many thanks in advance,
    Thomas
    If you need more information about that case, pls tell me.

    The numbers are volumes (KWh, to, l).
    There are several positions with different "Breatdown Categories". In the english version of the layout only the KWh-volumes are shown. "to" and "l" (Diesel) are missing.
    To describe the problem more clearly, in the german version the layout seems to show correct data:
    Position                KWh         to         l
    Diesel (l)                   -            -       5.000
    Coal (to)                    -        3.000      -
    Electricity (KWh)   200.000      -         -
    The "-" shows fields that are grey --> no data can be inserted
    The english version looks like this:
    Position                KWh         to         l
    Diesel (l)                   -             -          -
    Coal (to)                    -            -           -
    Electricity (KWh)   200.000  200.000  200.000
    Here the white fields at Diesel (l) and coal (t) are empty, but the grey fields in the col´s "to" and "l" show the value of "KWh" in electricity as well.
    Does this answer your question?
    br,
    Thomas

  • Mapping User Language vom LDAP to Portal Users

    Hi,
    Anyone knows how to map the user language available in an attribut from LDAP to the portal user language?
    (Working on NW04)
    Regards,
    Martin

    HI,
    For 2004s SP10,
    althought the manual tells you to use the preferredlanguage attribute in the datasource. Use the attribute 'locale' to map to your LDAP specific language attribute.
    example <attribute name="locale">
    <physicalAttribute name="preferredLanguage"/>
    </attribute>
    Use the 2-characters ISO language code set. For example en for English, nl for Dutch and de for German.
    Works fine for us.
    good luck,
    Joachim van Essen

  • Problem with User Exit parameter in MD01

    I have done the coding for user exit in MD01. But the exit is not being triggered even when the exit key is specified in the selection screen of the transaction.
    I need to control the material being planned and restrict it to type ROH only.
    Please help me... I need to do this fast

    Hi Sultana,
    The user exit key is stored in table T450U. But the user exit parameter is not stored. Instead, it is entered in the selection screen of MD01.
    Also, You can check the following Transaction codes if they help you to solve yor problem:
    MD20 - Create planning file entry
    MD21 - Display planning file entry
    MDAB - Set up planning file entry in background
    MDRE - Check planning file entry
    Hope it helps.

  • User Profile Parameter ID KVS not work

    Hi,
    I've got some troubles with parameter id KVS. I set it in my user profile,
    parameter = KVS    
    value = B2   
    description = Version (CO)
    when I call report GPCQE53LSADXCC16KZ1R96N5156001, there are two fields with this parameter,
    and their value remain "0" instead of "B2".
    I need to put the parameter value on one of this two fields, how can I do?
    Could someone help me?
    thank you in advance,
    Fede

    You can run Incremental Sync from user profile 3-4 times. This will delete the user profile from SharePoint UPA.
    Now, we need to run UPA clean job timer job available in Job Definition inside central administration.
    This is a by design issue which you have raised. But, to get it done on the same day you need to follow above mentioned steps. This would be done in some hour and cannot be achieved in 4-5 minutes. So, your original request is a by design issue and can be
    done i some hours.
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • Add to portal favorites works only in User-language english

    Hi,
    i've got a litte problem with the funktion "add to portal favorites".
    We use our portal to publish BW-Reports (BW7.0). Our development-language is english.
    Both system (BW and EP) are configured in english.
    In the portal (EP 7.0) we have the problem, that the "add to portal favorites" funktion works fine when the user-language is english. When the user-language is german only a few iviews can be added to the favorites....
    Does anyone have an idee where my bug is?
    Christian

    Hi Hema,
    Try this.
    Change the iView properties, these forces all BI reports to fire in EN,
    The setting in the iView of Application Parameters and set this to u201CLanguage=ENu201D.Then this Overrides the local setting of the Portal and forces a BW report to fire in EN.
    try this link :- Query in Portal User-Language-Independent
    Regards ,
    Sapbi3012.
    Edited by: Sapbi3012 on Jul 21, 2011 3:31 PM

  • Session user when integrate Forms and Portal

    Hello!
    Iam working with Forms made in developer suite inside Portal and want to know how the session user (the user that is logged) is obteined to insert his login with another items in a table of my own db.
    i used
    portal.wwctx_api.get_user()
    and in another chance:
    get_application_property('sso_userid');
    but doesn't work....Somebody have another idea?

    Hello Everybody!
    i followed the steps in http://www.oracle.com/technology/products/forms/pdf/frm9isrw9i.pdf to configure forms to use SSO, and when i try to run the form from portal i obtain the following error message:
    FRM92050 failed to connect to the server /forms90/l90servlet:-1
    and in the details the first error show:
    User does not have proper credentials configured in OID.
    First, i think that "l90servlet" is wrong because the correct url is with "f90servlet" or this refer another thing?
    Second, my forms run excelent before i configure SSO, but i need this to use the get_application_property...
    Please, somebody can help me? :$

  • Business rules for check current date and session user

    MDS 2012
    Hi All! How to make validation business rules:
    1.  date < GETDATE()
    2.  current session user is UserName(), where UserName() - system function like in MS Analysis Services
    from Moscow with Love

    There is no way to create this with a Business Rule, you have to write a custom workflow or SQL nightly job or something to update your fields.
    Ok people start screaming.
    "solution" if you want to call it that. USE AT YOUR OWN RISK, try in dev first :)
    1. Create an Attribute / Column in your Entity and call it Today or something.
    2. Go to Business Rules and create a dummy rule where you are setting this attribute (unconditionally with no Condition)
         Today equals 1/1/2000 or something.
    3. Go to tblBRItem find this BR and etin ItemSQL  from N'1/1/2000' to GETDATE()
    now you have Todays Date field...
    OK NEVER MIND, I've tried it and it works, the problem is that tblBRItems gets updated via a stored proc and will overwrite your entry.
    One can modify the code there as well but I don't have time to play with it unfortunately, as at that time you have to pass some token in to identify some values as your own special commands ... Either way this becomes messy and not a way to go.

Maybe you are looking for

  • Upgrading from FCE to FCP

    Is there any way to upgrade from FCE to FC studio or do I have to buy the whole studio suite? Im running Final Cut Express 2 btw. -Mads Meskalin

  • Online account login issues

    How can I reset a forgotten password online if I can nor remember the answers to my security questions?

  • After Effects 13.1.3 Is Constantly Giving The Error: "Needs 2 or more frames for playback"

    I have After Effects 13.1.3 and I'm using a 2011 mac pro 17" with 16GB of ram, but I have any project I have I'm not able to work on due to After Effects not being able to render more then one frame at a time. When I go to RAM Preview it says "After

  • Unable to open or Create RPD in OBIEE 10.1.3.3.3

    Hi everyone, I am not able to open or create RPD in to an Oracle BI Administrator tool. When I click on Open or New tab, the admin tool get close down. I m having Windows Server 2003 installed on my machine. Pl. let me know..if anything u know abt it

  • Need Help Playing iPod on multiple computers

    My iTunes library resides on my desktop computer at home. I also have iTunes loaded on my work computer (a laptop) so I can play music from my iPod through my work computer. I have set my work computer iTunes to manually manage music and video but I