Set a language on the portal application

Dear All, 
How I can write code to set a language on the portal application?  
thanks in advance,
Marcelo Osako

Hi Marcelo,
I assume you mean how to change language for a single iView only. For changing overall language, the user can just go to the portal personalize page.
For an iView, you can do a lookup of the iView and change the language, like so:
InitialContext iCtx = null;
String personalHello = "portal_content/DanielContent/DanRole/danWS/hello";
try {
   iCtx = new InitialContext(env);
   IiView myIView = (IiView)iCtx.lookup(personalHello);
   myIView.putAttribute("ForcedRequestLanguage","de");
   myIView.save();
You would have to do a personalized JNDI lookup, so the language is only changed for the user. However, this would permanently change the page for this user.
Hope this helps.
Daniel

Similar Messages

  • Debugging the portal application

    Hi all,
    It is possible to debug the portal application.
    If yes how.
    Regards,
    Aravindhan.R

    Hi Aravindhan,
    Check out this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/lw/developercontent/sap%20portal%20development%20kit%20for%20.net%20developer's%20Guide/Previewing%20and%20Debugging%20Portal%20Applications_Debugging%20Portal%20Applications.html
    Also do not forgot to set iViewProcessorService property, ProductionMode to false.
    Regards,
    Ashutosh

  • How can debugge the portal application

    hi sdn,
    how can we debugge the portal application.what are steps are needed for this
    any documents please forward me.

    Hi Kiran,
        Following is the steps for debugging the portal application.
    <b>Steps for Debugging</b>
    <i><b>1.     Stop the Portal Server if Running.</b></i>
    <i>
    <b>2.     Launch the Config tool of J2EE Engine & Set Up the debugging of the     current instance.</b></i>
    &#61607;     The Config tool is located in the directory ,
    <J2EE-Install-Dir>\JC00\j2ee\configtool\configtool.bat
    &#61607;     Switch to the current instance & go to the debug tab.
    &#61607;     Set “Enable Debug Mode” checked, start the VM of J2EE in debug mode.
    &#61607;     Set a valid debug port, default port is 50021.
    &#61607;     Save the settings and restart the J2EE Engine.
    <i><b>3.     Restart the Portal Server.</b></i>
    <i><b>4.     Open SAP Netweaver Developer Studio.</b></i>&#61607;     Go to Window --- > Open Perspective --- > Enterprise Portal & also open the Debug perspective.
    &#61607;     This enables you to develop & deploy EP Components to your development Portal.
    <i><b>5.     Configure Development Environment for Debugging.</b></i>
    &#61607;     Create new Remote Java Application debug settings.
    &#61607;     Pressing the debug button attaches the SAP Netweaver Developer Studio to the Specified portal installation.
    &#61607;     Go to Debug --- > Remote Java Application & create a new setting for your current Portal Application Project.
    &#61607;     Insert the portals DNS or IP Address and the debug port specified in the Config tool, default port is 50021.
    &#61607;     If the portal runs on the local machine you can enter localhost instead of IP address or DNS name.
    &#61607;     Make sure that your Portal Application is already deployed in the portal.
    <i><b>6.     If the connection is attached to the J2EE engines VM session, the SAP Netweaver Studio is ready to debug.</b></i>
    <u><b>BREAKPOINTS</b></u>
    <i>A Breakpoint causes the execution of a program thread to suspend at the location here the breakpoint is set.</i>
    <i><b>7.     Set a breakpoint in your custom coding. The debugger will stop if the VM reaches this marked code line.</b></i>
    To enable the breakpoint,
    &#61607;     Locate the breakpoint in the marker bar of an editor.
    &#61607;     Open the breakpoint’s context menu & select  ‘Enable Breakpoint’.
    &#61607;     The breakpoint image will change back to a blue circle.
    <b>VARIABLE VIEW</b>
    <i>The “variables view” contains information about the variables in the currently-selected stack frame.</i>
    <i><b>8.     To Launch the Variables View :,</b></i>
    Choose Window -- > Show View -- > Other -- > Select Debug -- > Variables View.
    <i><b>9.     Force the Portal to execute your deployed coding.</b></i> The VM stops at the specified break point.
    10.     The current values of the member variables can be tracked in the “Variables” window of SAP Netweaver Developer Studio.
    <i><b>** Reward points if you find this Post Useful & Helpful.</b></i>
    <i>Regards,
    Eben.</i>

  • Remote enabled FM for the Portal application

    Dear all,
    I need to develop a Remote enabled FM for the Portal application. The requirement is to pass the output( few fileds) of MC.1 Transaction to the portal.The issue is whether to write our own logic in the function module or is there any alternative way.
    The input is same as for the std tarnsaction MC.1
    Thanks
    Kumar

    Yes you will have to create a Z function module.
    Instead of declaring the function module as normal function module in the attributes tab, mention it as remote function module.
    Also when giving import and export parameters select the pass value check box.
    This might solve your query.
    Thanks & Regards,
    Lalit Mohan Gupta.

  • How to set a Photoshop version the default application when two versions are installed?

    I have two versions of photoshop installed on my Mac. Double clicking on the Photo in Bridge CS6, the photo is opened in Photoshop CS5 (Photoshop CS5 (default). Haw can I set Photoshop CS6 as the default application?

    Thanks for your prompt replay, I had already done what you suggested, but it does not work. When you open in Bridge File>Open with you still see Photoshop CS5 (default) and the file is opened automatically with Photoshop CS5 and not CS6 unless you specifically choose Open with Photoshop CS6. I vaguely remember that I found once somewhere "would you like Photoshop xxx to be your default option? but I cannot remember where and I cannot find it anymore

  • Setting dynamic language for WD ABAP application iView

    Hi,
    I have created an iView for a WD ABAP application which runs with two languages, EN and FR.
    When I run this application with app parameter sap-language=EN or FR, it works fine in corresponding language.
    How do I set this in its portal iView so that it picks up browser language?
    Thanks and regards,
    Amey

    HI Amey,
    The language is determined in the order below.
           1.      sap-language URL parameter
           2.      Default language in the setting for the system logon
           3.      Web browser languages (Accept-Language)
           4.      Default language of the SAP system
    Refer to
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7b/fb57412df8091de10000000a155106/frameset.htm
    Just clear the logon language parameter for the user in SU01 and it should pick the browser language.
    If you change the browser language, you will have to logout and login again to the portal for the changes to take effect.
    Thanks
    Prashant

  • How can I set up hotmail in the mail application

    Hi
    How can I set the mail application to include hotmail? I've been able to add it, but it doesn't sync read and unread messages. I know iPhones used to have the same problem, but after iOS5, there was an option to include mail from hotmail. Is there an option to include hotmail now in Mail, as I can't find it.
    Also, as I've just switched from Windows to Mac, is there a button on Mac for home and end like Windows has?
    Thanks

    Unfortunately hotmail requires you to pay a fee to have your e-mail go through a mail application, like Apple Mail. Contact their customer service to see about fees, as well as set up process.
    Cody

  • HOW to define the default language in the portal

    Normally the portal take the language of the internet explorer for user.
    I want to define a default language for all portal users in our portal, so that every user get the same default language.
    Can anyone tell me how to do this?
    We are on EP6 SP2.
    Thanks Sybille

    Hi Olivier,
    thank you for the response.
    I added
    request.mandatorylanguage=de
    request.mandatorycountry=de
    to
    request.defaultlanguage=de
    request.defaultcountry=de
    Now, I get the default language german, but when I want to changed the portal language over personalize to English, the result is nevertheless the german language.
    Can you help me again? Where can I get a documentation about this?
    I want a default language: German. Also when the Internet Explorer has a different language. But when the user select manual one of the permitted languages (English and German) over the personalize button, the language should change to the selected language. Is it possible?
    Bye Sybille

  • Error while running the portal application

    Hi All,
    I have made one sample portal application in Sun Java Studio Enterprise 8.When I build this application it is successfully build.Now when I start the server of Sun Java Studio Enterprise 8 and try to run the project ,the browser opens and gives the following error::
    HTTP Status 404 - /portlet/
    type Status report
    message /portlet/
    description The requested resource (/portlet/) is not available.
    Sun-Java-System/Application-Server
    If anyone having idea about this problem then please let me know.All suggestions are welcome.
    Thanx and Regards,
    Chirag.

    OK, so they are not in the mood for posting on the forum today :-)
    They suggest three things.
    1) Restart the server. Deploying a portlet requires some configuration changes, which will take effect only after the server is restarted. Thus if it failed to restart due to some reason...
    2) Try deleting the JSE userdir and trying again.
    3) If the above two items do not help. Start the studio with the following command:runide.exe -J-Dcom.sun.tools.ide.portletbuilder.log=log,info try the deployment and either post here or email the output which will be output to the console.
    HTH,
    Kirill

  • Popup when closing the portal application by close browser button

    We are using the portal with BSP's and in some cases we have more browser windows open. The user get confused and want to close all windows except for the main one. Put in many occasions he closes the main browser window to and then he has to logon to the postal again and go again to the page he want to be returned.
    What we like is to have the functionality available that if the user closes the main-window he soul get a pop-up window if he really wants to close the application.
    (you can not solve this problem by building an 'onunload' in the body-tag of the index.htm, this will lead to a pop-up any time the page changes)

    Why dont you put the onUnload() function in the header of the portal?
    Would that work?

  • Monitor performance/load of the portal application.

    Hi,
    is there any best tool to monitor performance/load of portal application.please help me out...?
    Thanks
    ramesh jillella
    Edited by: Ramesh jillella on Mar 19, 2009 12:35 PM

    I used YourKit on a project about a year ago. I've used a few other profilers and this one was the simplest to install, configure, and use in my opinion. I was doing basic CPU profiling of a WebLogic Portal application on my machine using YourKit within about a few hours of learning of the existence of YourKit. I used it to find performance bottlenecks and it did the job.
    http://www.yourkit.com/home/index.jsp

  • Error while starting the Portal application server

    Hi ,
    We are running EP 7 on SP12 on HP-UX1 1.31 with Oracle.
    this a strange problem that we are facing.When we try to restart the Application sever it never starts up until we take a restart of the CI as well.
    The default trace writes
    m.sap.engine.core.Framework#######Thread[Thread-1,5,main]
    ##0#0#Fatal#1#/System/Server#Plain###Critic
    al shutdown was invoked. Reason is: Error getting confirmation reply
    during attach to cluster.#
    #1.#0019BBEBBF0E00000000001E00002348000442F5B31BE7CE#1199522946212#com.sap.engine.core.Framework##co
    m.sap.engine.core.Framework#######Thread[Thread-1,5,main]
    ##0#0#Fatal#1#/System/Server#Plain###Critic
    al shutdown was invoked. Reason is: Error getting confirmation reply
    during attach to cluster.#
    #1.#0019BBEBBF0E00000000001700002885000442F61C903BE6#1199524715444#com.sap.engine.core.service630.co
    ntainer.LoadContainer##com.sap.engine.core.service630.container.LoadContainer#######Thread[Thread-1,
    5,main]##0#0#Error#1#/System/Server#Plain###interface
    tclmctcculinterface_sda - null jars, incor
    Has anyone come across same error??
    If we restart the CI then everything starts up well.
    Regards,
    rohit

    Hi,
    We are facing the same problem.
    Can you help me out with this??
    Thanks & Regards,
    Arpita Saini

  • Setting alerts/notification in the portal

    How does one push a mandatory message to a user and/or group?
    Is there a programmatic way to show alert messages in the banner region if some logic requires it for a particular user and/or group as opposed to creating a alert portlet that shows nothing and takes up space most of the time.
    What are some techniques used to push content/messages onto users in the oracle portal framework?
    --jason mathews                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi, Jason!
    "Oracle9iAS Portal currently does not support proactive notifications."
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm

  • Set user language by code

    Hi  Experts ,
    I want to run an application that get the current portal user language ....
    Ask if it X set to Y , else do nothing .
    My questions :
    1.  Is it right to do so ....
    2. Code ???
    3. Where/When is the best way to run it ?
    I don't want to use the personalize option ..
    Thanks ..

    Hi,
    Refer tis links,
    Setting/Getting Available Languages in the portal using code
    Set a language on the portal application
    Regards,
    Kanagaraj.

  • How to set default language for Portal?

    Hi All,
    We use EP6.
    Default language is not defined and therefore is being set by the browser's language.
    Where do I set default language for all users?
    (I don't want that the users will be able to change it by themselves by browser/EU role).
    I tried to set the "request.mandatorylanguage" and
    "request.mandatorycountry" in prtDefault.properties but it didn't help.
    Thanks,
    Omri

    Hi Omri,
    are those to parameters
    request.defaultlanguage=...
    request.defaultcountry=...
    set in the prtDefault.properties, and the J2EE Server restarted after the change?
    Check out this thread and the link given there for more info: HOW to define the default language in the portal
    Hope this helps,
    Robert

Maybe you are looking for