Set user Language in URL IView

Hello,
I am trying to put the Language of the user in the parameters of the URL.
For example :
http://sopraganesh.cr.infra.lab/redirect.asp?page=ECD&lang=en
How can I parameter the URL IView to automatically retrieves the language of the connected user?
Thanks for your help,
AN

Hi
Once you have defined the iView’s URL to the targeted Web page, you may need to configure parameters that are passed to the information source as part of the URL. In the URL iView Editor, you can do the following to URL parameters:
·        Add, remove, and modify URL parameters
·        Determine whether or not portal end user can view and personalize URL parameters at runtime
·        Assign intuitive display names to URL parameters that are viewed or personalizable by portal end users
·        Specify the URL request method (GET or POST)
If you navigated to the targeted Web page and defined the iView URL using the portal built-in browser, the URL parameters and request method may already been defined in the URL iView Editor.
Procedure
       1.      Open the iView in the URL iView Editor.
The editor does not display URL-specific parameters in the URL address within the URL box. URL parameters that were part of the URL referencing the selected Web page (the information source) are automatically removed from the source URL and displayed in the URL parameter list in the editor. At runtime, the portal automatically appends the URL and the listed parameters to the targeted URL request.
       2.      In the Request Method option, choose either GET or POST to specify the request method. The request method indicates how the browser sends information to the information source:
Request Method
Description
GET
This request method appends parameters to the URL when the data request is sent to the information source. The server receives the data in one long query string, which typically limits the length of parameters that can be passed.
For example, a URL using the GET request method would be: http://www.google.com/search.asp?&querystring=SAP where querystring indicates the parameter identifier and SAP is the parameter value.
POST
This request method sends parameters for the URL in the header of the data request stream; parameters are not appended to the URL. This allows for long parameters to be passed to a script and parsed one element at a time.
For example, a URL using the POST request method would be: http://www.google.com/search.asp.
POST is only supported when the Fetch Method property defined in the iView is set to Server-side. For more information, see URL iView Properties.
For iViews that have a mixture of parameters sent by GET and POST together, you must:
§         Choose POST as the request method.
§         Set the Fetch Mode property to Server-side
§         Append the GET_EXPLICIT_ prefix to the parameter identifier of each parameter that is sent by GET. For example, a parameter defined as searchstring should be defined as GET_EXPLICIT_searchstring. When the iView sends a data request, the prefix is removed from the parameter identifier at runtime. Parameters sent by POST do not require a special prefix. 
       3.      To add a parameter, click Add below the table. A new entry is added to the parameter list.
To remove a parameter, select the checkbox of the relevant parameter in the list and click Remove. Before doing so make sure the parameter is not required by the information source.
       4.      Define the attributes of existing or new parameters, as follows:
Attribute
Description
URL Parameter
Specifies the parameter identifier as recognized by the information source. For example, in the URL http://www.google.com/search.asp?&querystring=SAP, the parameter identifier is querystring.
As stated above, parameters that need to be sent by GET when the request method is defined as POST, must have the GET_EXPLICIT_ prefix. For example: GET_EXPLICIT_searchstring.
Enter special characters that are present in the parameter identifier as is. Do not convert them to ASCII code. For example, enter first name, and not first%20name. At runtime, the portal will encode special characters to ASCII when fetching the iView data.
Value
Specifies the value of the parameter. This is not mandatory.
If you set the parameter as a variable that can be personalizable by end users (see following attribute), then this value will be the parameter’s default value. However, if you set the parameter as not personalizable, then this value is the fixed value of the parameter.
Enter special characters present in the parameter value as is. Do not convert them to ASCII code.
Type
Specifies the data type of the parameter.
Choose one of the following options:
·        String: Apply this option for all data types whose property is not a mapped user name or password; for example, an integer or string.
·        Mapped User: Apply this option when the URL parameter designates a “user name” that is required to authenticate the user with the information source at runtime.
·        Mapped Password: Apply this option when the URL parameter designates a “password” that is required to authenticate the user with the information source at runtime.
§         When Mapped User and Mapped Password are selected, the Value and Personalize attributes cannot be edited.
§         If you want to enable user mapping for the user name and password parameters, in the System drop down-down list, choose an appropriate system already defined in the portal, which contains the necessary settings. See Selecting a System.
Personalize
Specifies whether or not portal end users can view the parameter and its assigned value if they personalize the iView at runtime. This attribute also allows you to determine whether or not end users can personalize the parameter value.
Choose one of the following options:
·        Hidden: The end user does not see the parameter and its value. This is the default setting.
·        Read / Write: The end user sees the parameter and is able to modify its value.
·        Read Only: The end user sees the parameter and the fixed value assigned to it. The end user cannot modify the parameter value.
Name
Specifies an intuitive display name for the parameter identifier. If you set the parameter to be viewable by end users at runtime, this name is displayed instead of the parameter identifier, which is often abbreviated and unintuitive.
This attribute is available only if Read / Write or Read Only is selected in the Personalize attribute. If you do not specify a name, the Personalize attribute will be reverted to Hidden.
with regards
subrato kundu

Similar Messages

  • Different Languages in URL-iView in EP7 SPS11

    Hi there,
    we create some URL-iViews and want to implement some other URL´s for different languages. But there is a problem:
    SAPPortal knows only English, German, French , Internet Explorer 6 and 7 knows different languages for German, English etc.
    English
    Portal , IE6 ,[EN-US],[EN-AU]
    German
    Portal , IE6 ,
    etc.
    Problem is, that different users in UK or USA can´t get different URL´s, because portal only knows the languagecode but not the extensions
    Does anybody know,how to patch this bug, or SAP knows his bug?
    Best regards
    Christian

    Hi Christain
    Refer to this links may be of some help
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/b2/77284a96264e9183161b7e8718dfa8/frameset.htm">Locale Service Properties</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/d4/be1640033ae569e10000000a155106/frameset.htm">Worklist Translation</a>
    Thanx
    Pankaj

  • Multi-language with URL-iViews

    hi folks,
    I have the following little problem:
    Our EP is mostly based on URL-iViews to static HTML-sites in german. Now, we are planning to extend the EP with an english Version. The Users should see the portal in the language they choose in the portal personalization menu.
    My first thought was to use the portal-content-translation but this doesn't work for URL-iViews, as there is almost no text to be translated.
    Now, my idea is to put a little script between the portal and the HTML-sites that checks the chosen language and redirects the user to the specific version.
    The Problem is, I have no idea how to do that.
    It would be really nice if anyone could tell me how to do this or maybe you have a better solution for my problem.
    Thank you in advance for your efforts.
    Kind regards
    Norbert

    Hello Michael,
    unfortunately that doesn't work.
    If I put an URI like http://yourcontentserver.com/<request.language>/content1.html
    in the URI file of the URL-iView Editor and after that on preview I get the following error: page could not be found
    When I use a PHP-Script to catch the variable like http://yourcontentserver.com/index.php?lang=<request.language>
    I can't put it like that in the URI field cause I can't save it.
    When I use the URL-parameter fields and enter "lang" and "<Request.Language>" I get the following URL as an result:
    http://yourcontentserver.com/index.php?lang=%3CRequest.Language%3E
    As you can see, the variable isn't "translated".
    Maybe you could I didn't understand you right?
    Message was edited by: Norbert Stroh

  • 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.

  • Setting user language explictly?

    Hi everybody,
    We want to use e-mail notifications for KM and our portal is connected to an Active Directory 2003 server. The problem is that there is no language defined for the ADS users, so notifications are sent in English even if I change the default portal locale in prtdefault.properties and prtcentral.properties.
    If I explicitly set a different language in the user properties page the notifications are sent in the correct language for that user, but there must be a way to change this setting automatically for everyone? I tried messing around a bit with the datasource config xml files, but I couldn't find a way to set a specific value for a field. This is on EP6 SP2 Patch 30.
    Thanks in advance!

    I see. I think I found the service responsible in the <i>com.sap.netweaver.bc.rf.service.par</i> file, by decompressing <i>bc.rf.global.service.notificator_api.jar</i> and  decompiling the AbstractNotification.class file. I will also try finding a more standard solution.
    Thanks
    UPDATE: We received a working solution from OSS, here it is if anyone else needs it.
    In the J2EE server startup parameters, we added the following lines :
    -Duser.language=<language code>
    and
    -Duser.region=<region code>
    Now notification emails are sent in the correct language. Strange, because this setting according to the help document is at lower priority than the request.mandatorylanguage settings, but it works!
    Message was edited by: Olivier Tremblay-Ross

  • Url iview for anonymous user

    Hi
    We have an url iview with two Language-specific URLs (en and es) and a default URL. This iview is in anonymour portal page.
    The first time that an anonymous user accees to /irj/portal/anonymous the url iview shows the default url instead of the en URL. Browser lengauge is EN.
    How can i solve this??
    Thanks

    Hi,
    There are two condition for the URL Language-specific :
    1. You must first create the URL iView and then use the editor to use this
    feature. It is not available in the URL iView Wizard.
    2. You cannot apply a different look and feel to language-specific URLs.
    iView content will be displayed at runtime in its native format as defined in
    the source Web page. For more information, see the Keep
    source formatting option in Defining the Look and Feel of the iView Content.
    The remaining look and feel rendering option are supported by the default URL only.
    In addition there is an option to check the service configuration of the Language-specific :
    com.sap.portal.admin.wizardframework:
    edit the SourceLocales field check that the requested Language is defined and if not you can add it
    ( Follow note# 1078145 )
    After doing so , please restart the service , and check the results.
    If the problem still exist let me know and we can have further investigation.
    Best Regards,
    Sharon Dassa

  • Language change in iview

    Hi,
    There are some iviews whose code link is : FAQ_MultiLang.ProxyiView.
    These iviews are embedded in a page as delta link.When my language in the portal is set to english I am able to see the ivews in that page.But when I am changing the language to French then I am not able to see the iviews....means the iviews are not showing data and are not working.
    Please suggest.
    Regards,
    Rajani

    Rajani,
    I think this SAP Note should  help you.
    Note 460638 - Setting the Language of Individual iViews
    Check this as well:
    Note 1078145 - Issues in Language-Specific URLs for URL iViews
    Regards,
    Karthick Eswaran

  • Language specific urls in EP6

    Hi all,
    i was trying to implement language specific URL iview using the following link:
    http://help.sap.com/saphelp_nw70/helpdata/en/44/aabd5c7e8e0a47e10000000a1553f7/frameset.htm
    however this link is for EP7.
    Can anybody tell how can I implement the same in EP6.

    Hi Juhi,
       Alternate is..   Check the SAP NOTE- 961793.  Which says...
    Symptom
    Adding Language-Specific URLs
    Other terms
    EP6.0, NW04, SP18, URL iView, Language-Specific
    Reason and Prerequisites
    URL iView new feature: Adding Language-Specific URLs
    Solution
    As from NW04 SP18, URL iView presents a new feature: Language-Specific URLs. The new feature enables you to define more than one source URL for any URL iView. Apart from the default URL, which is not language-specific, you can define any number of additional URLs; each one corresponding to a different language. If a portal user's language matches a language defined in the iView, then the corresponding language-specific URL will be executed at runtime. If a portal user's language does not matches a language defined in the iView, then the default URL will be executed.
    Header Data
    +     +
    Release Status:     Released for Customer
    Released on:     26.07.2006  12:21:34
    Priority:     Correction with low priority
    Category:     Special development
    Primary Component:     EP-PIN-URL HTTP Connectivity
    Regards,
    Uday.

  • SSO to BW reports via URL iView

    Hi all,
    I've searched the forum on this but could not get a clear guide. Here's my scenario:
    1. We use Windows logon credentials to sign on to the Enterprise Portal
    2. Once signed in, authorized users load a URL iView.
    3. The iView contains URL links to SAP BW reports.
    4. Based on user's role, they can access only certain reports.(Available report URLs will be different)
    5. User clicks on the link and opens another Internet Explorer window to show the BW report <b>without signing on</b> again.
    Key question: How do we incorporate the SAP Logon Ticket into the URL and how do we configure BW server to accept SSO based on this URL?
    Any help is much appreciated. Thanks!

    Hi Kok,
    The first step is you need to create a system object under system administration --> system configuration --> system landscape. Expand the portal_content. Right click the folder and create a new folder. Then right click on the folder to create a new system. This system object should point towards the BW system. You need to give the details of the BW server. The right click the system object and create an alias.
    If you are using BW 3.5, you need to follow the 13 steps given under img. If BW version < 3.5 then you have to export the portal ticket to BW and BW ticket to EP.
    Regards
    Arun

  • Setting user.timezone in jnlp

    I have no success in setting the user.timezone property through the jnlp-file. I have seen a similar experience reported a couple of years ago:
    http://forum.java.sun.com/thread.jspa?forumID=38&threadID=431709
    Is it doable?
    I can't set it in the code, because we are suffering from a timezone/thread-related bug reported (for instance) here:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6352812
    Right now we are using aspects for the sole purpose of fixing this problem, but apparently that has it problems as well from time to time at the customer site.
    Thanks!
    /Claes

    I think the "user.timezone" is consided as "unsafe" and cannot be set by JNLP; similar complain can be found when setting user.language see: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4683242
    In fast there are only six properties considered to be �safe�:
    sun.java2d.noddraw
    javaws.cfg.jauthenticator
    swing.useSystemFontSettings
    swing.metalTheme
    http.agent
    http.keepAlive
    See http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html

  • 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

  • Content Alignment in webdynpro iView based on user language

    Hi,
    We have a webdynpro application which has a search screen
    (Arabic as well as English), based on the user language setting in Portal UME, the respective language text with options are displayed.
    This webdynpro application runs on same WAS where Portal is running.
    When we test this application standalone like typing the URL of the webdynpro application, it shows english text with Left to right aligned content in browser for <b>user X with Language as EN</b>.
    When we test this application standalone like typing the URL of the webdynpro application, it shows arabic text with Right to Left aligned content in browser for <b>user Y with Language as Arabic</b>.It works fine when it is stand alone (when we directly run the webdynpro).
    <b>We created a WebDynpro iView in Portal, and we tested with user <i>Y (whose language is set to Arabic),</i> issue is text is properly displayed in Arabic, but the content alignment is left to right, which should be Right to Left</b>.
    Please let me know your solution/thought to the above mentioned issue/problem.
    Thanks
    Senthil

    Hi,
    The webdynpro application works fine (alignment and content is fine)when i access it directly.
    When i create a webdynpro iView and run it inside portal it is not working fine (alignment is LTR instead of RTL)
    I went through the SAP help <a href="http://help.sap.com/saphelp_nw04/helpdata/en/6e/8aae409567942ae10000000a155106/frameset.htm">RTL Alignment</a>and tried creating new themes and created a new desktop and assigned it to the user. It is still the same with LTR alignment.
    The issue is, why it is not working inside PRT, when it works fine inside WebDynpro Runtime.
    Thanks
    Senthil

  • URL iView Problem - How to Use URL Parameter of Type 'User Information'

    Hello URL iView experts
    I am currently working on integration of backend-functionality with the help of an URL iView.
    I want to use a parameter of type 'User Information'. In SAP Help Library it is said, that it is possible to set the value of a parameter according to a dynamic query on the users attributes. (Link SAP HELP)
    It is also said, that one can retrieve the Logon ID of the users account.(Attribute Name: j_user -> Link SAP HELP Attributes )
    I can choose the type 'User Information' but i don't know what to specify in the field 'Value'.
    I have made a screenshot of the problem.->[Link to screenshot|http://img66.imageshack.us/img66/7782/urliviewproblemfrsdnthrel3.jpg]
    But if i am calling the application this way, he doesn't retrieve the Logon-ID of the account, but he just uses the 'j_user' as value for the parameter.
    Can you tell me, what i need to specify in the field value?
    Best Regards
    Marcus
    Edited by: Marcus Böhm on Jun 2, 2008 1:22 PM

    Hi Marcus,
    > It is also said, that one can retrieve the Logon ID of the users account
    This is not correct; on the help.sap.com-page concerning the URL-iView-Parameters, it is printed that "other attributes (general, account, group, role) are not supported". The j_user attribute is part of the account group, so - not supported.
    For your needs, it may be a better choose to use the AppIntegrator, which offers such a possibility by using "<User.LogonUid>"; see http://help.sap.com/saphelp_nw70/helpdata/EN/36/5e3842134bad04e10000000a1550b0/frameset.htm and https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0cbc309-ff89-2a10-8bad-bcde4c152ecb
    Hope it helps
    Detlev

  • Url iView: passing user/pass as get variables.  Launching in new window

    Hi,
    I pass username and password as get variables from a url iView, and want a page containing this iView to open in a new page using the "Launch in new window" property set to "Display in a separate window". 
    When previewing the iView or page it is on, it works fine.  But when launching it from the detailed navigation, this does not work.  A new window is opened, but the user is prompted for username and password.
    The page to display is an external site, and we have only got the url with user/pass to access it.
    Any ides on what can be wrong?
    Best Regards,
    Bjorn

    Hi,
    Using the url in IE works fine.  It seems to work everywhere but in the portal menu.
    I have the appintegrator in the back of my mind, and will start to have a look at it.  We are also considering a OSS message - this must be a bug in the system as far as I can see.
    Bjorn

  • URL iView - Open in new window - User Action Independent

    Hello Experts,
    What has been configured:
    I have built an I URL iview and set its paramater to open in a new window. I have assigned the iview to a role. I have also assigned a quicklink to the iview
    Name: xyz
    quick link: xyz
    quick link url: https://<domain>/irj/portal/xyz
    What has been tested:
    When I log in to the portal using the test user ID and click (user action) on xyz the destination URL pops up in a new window as expected.
    When I access the iview via the quick link it loads the destination URL in the same portal window (no pop up)
    What do I need:
    We will be using the quick link to get to SAP portal from another legacy portal and I want to hit the target URL as soon as I access the quick link without being taken to the portal page in which the target URL content is rendered. I also do not want to have the user click on the/a link to navigate to the target URL.
    Things as they stand:
    The destination URL is hitting a standalone WD ABAP object which is not hosted in SAP portal content. The SAP portal has to be used because the logon ticket issued by the portal is also used to login to the server hosting the WD ABAP.
    Please let me know if you think this is something that can be achieved.
    Many thanks,
    Prashanth

    Hi,
    2. It is not possible to hide it completely or disable it. Give this a try:
    Create a Static HTML page and create a link in that which will take you to quick link page/iview.
    or you can create a custom application which will call the application underlying the quicklink on click of a link.
    3.  For removing the History, Back and Forwards links in Page Title Bar, follow the below:
    In Portal navigate to Content Administration - Portal Content - Content Provided by SAP - End User Content - Standard Portal Users - Open the Default Framework Page
    With the Framework Page - you will find Page Title Bar iView - Open the iview and go to iView Property
    Show Back/Forward Links and Show History List by default this setting is set to Yes. change teh setting to No and you will not be seeing those in the page title bar.
    NOTE: If you make this change it is applicable to all other pages and iViews. So be cautious before making the change.
    Hope this helps.
    cheers-
    Pramod

Maybe you are looking for