Language parameter in url
Hey Guys,
Is there a way in the url into the portal to pass the language as a parameter in the url?
like: http://server/irj/index.html?language=en
or something?
Thanks,
-Kevin
Hi again,
I've solved this issue.
I've created various anonymous users with correcponding languages: Guest_EN, Guest_FR, etc.
to change the language I go to jsp that delete actual session and redirect to anonymous language page.
this is the jsp:
<% request.getSession(true).invalidate(); %>
<script language="JavaScript">
<!-- start hiding
function Load() {
self.close();
// end hiding -->
</script>
<body onload='Load()'>
<SCRIPT LANGUAGE="JavaScript">
window.location="http://host/irj/portal/anonymous?guest_user=Guest_EN";
// -->
</script>
</body>
This jsp is hosted on /irj directory and in the portal I can use various links to access to http://host/irj/gotoES.jsp
thanks!
david
Similar Messages
-
How to pass date parameter in URL in system date format
Hi All,
I am working on a requirement where I need to pass the date parameter in URL. Where date format needs to be system default date format. How can we format date without providing specific date format.
Also, I got some post which had below example. Can you let me know what this format does.
'/analysis/report?queryGroupName=Custom-ProjectInfo&TimePeriodBeginning=', <%+%> FCI_CHARFMT(TIME_PERIOD_START_DATE),' <%+%>
'&TimePeriodBeginning_format=17&link_crumb=true'
Waiting for response.
Thanks,
SaloniHi,
If you're running this in SQL*Plus, you can use substitution variables.
If you have a file called my_query.sql, like this
select A.agent_no,
(a.first_name || A.agent_name) as agent_Name,
P.Policy_No,
D.Driver_No,
D.mvr_predict_score,
D.mvr_received
from policy P,
agent A,
Driver D
where D.request_mvr_hit = 'M'
AND D.mvr_predict_Score > 540
And D.request_mvr = 'D'
AND p.fullkey = d.fullkey
AND p.agent_no = a.agent_no
AND d.mvr_received >= TO_DATE ('&1', 'DD-Mon-YYYY') -- New
AND d.mvr_received < TO_DATE ('&2', 'DD-Mon-YYYY') + 1 -- New
order by a.agent_no,
CASE a.producer_type
when 'S' then 1
when 'C' then 2
when 'R' then 3
end
;Then you can run it from SQL*Plus by saying something like:
@my_query 1-Jan-2009 31-Dec-2009&1 in the script will be replace by the 1st argument (1-Jan-2009) and &2 will be replaced by the 2nd argument (31-Dec-2009).
Notice that the last condition adds 1 to the argument
AND d.mvr_received < TO_DATE ('&2', 'DD-Mon-YYYY') + 1 -- Newbut uses the < operator (not <=). The result is that if mvr_received is any time on the last day (e.g. 31-Dec-2009 11:59 pm) will be included. -
Search Results web part - Custom Query using "Value with a parameter from URL" inconsistent
I have encountered what I think may be a bug, but I am hoping that there is something that I am missing.
Within my search site, I have created a new search results page where I want to customize the "Search Results" web part query. I can add in any number of property and keyword filters (using the "Build Your Query" dialog) without
issue... until I add a filter that uses the QueryString property (the builder dialog calls this "Value with a parameter from URL").
If I use {QueryString.MyParameterX} for filtering, it works beautifully in the query builder dialog. I see the expected results in the search results preview pane, but as soon as I apply the changes things become inconsistent.
If I close/reopen my browser and navigate to my page at http://myaddress/search/Pages/testresults.aspx?MyParameterX=test I see results. If I then refresh the page, I get a "Nothing here matches your search" message. I can then go to
the same address but change one character to an uppercase character and get results. Refreshing that same page again returns "Nothing here matches your search". I can only get search results one time per uniquely cased URL without having
to close/reopen my browser. This behavior was seen on both Firefox and IE.
Finally, I found that if I instead navigate to http://myaddress/search/testresults?MyParameterX=test, it always returns results. This, unfortunately isn't the best solution for me... but it is a solution.
Any insight that anyone can provide is greatly appreciated! I would really like to be able to depend on this working in all logical cases (especially since the search center of other sites is set using the path all the way down to /Pages).
Thanks!Hi, have you been able to solve this issue? I'm getting the same issue and I cant solve it (required CU is installed).
Fabio -
Pass data parameter from URL to Forms
Hi
Is it possible to pass a data parameter from asp to Forms?.
In my asp I have a url to call a form (eg. http://servername:port/forms90/f90servlet/form=testform.fmx). In my testform.fmx I accept 'account no' as a parameter for querying the records. Since I am calling this form from asp, I already have the account no in my asp. I would like to pass this account no to the form automatically.
Is it possible to pass this data parameter from url to forms?.
If possible, what changes to be made in the form. Please help.
sreekumarCreate a parameter in your form, there's a node for it in the Navigator window. Imagine it is called myParam.
Pass it on the URL like this:
http://host/forms90/f90servlet?config=myApp&otherParams=myParam=somevalue
Regards,
Robin Zimmermann
Forms Product Management -
Get parameter from URL in Java code
Hello everyone,
I've got strange problem. I have one JSF page with two controls:
- InputText
- Button
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<af:document title="view12.jsf" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:inputText label="Label 1" id="it98" value="#{param.test}" editable="always"/>
<af:commandButton actionListener="#{bindings.przekierowanie.execute}" text="przekierowanie"
disabled="#{!bindings.przekierowanie.enabled}" id="cb1"/>
</af:form>
</af:document>
</f:view>
And I want to initialize the InputText with parameter from URL (param name is test - value="#{param.test}"). In JSF page everything is fine. But after clicking button I have to read the value from InputText in Java Code, so I have URL:
http://127.0.0.1:7101/Application6-ViewController-context-root/faces/view12.jsf?test=asd
and my Java code which is executed after clicking button is:
public String przekierowanie() {
Map <String,String> map=FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
String tttValue=map.get("test");
System.err.println("test:" + tttValue);
return null;
but this doesn't work... Everytime I get null when I click the button. Could you tell me why and How to obtain this value, from InputTex in my java function?Hi,
If you have a parameter in URL named as "product", you can get its value like:
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
FacesContext facesContext = FacesContext.getCurrentInstance();
HttpServletRequest httpRequest =
(HttpServletRequest)facesContext.getExternalContext().getRequest();
String product = httpRequest.getParameter("product"); -
How portal finds the vale for the sap-language parameter for iView
In the portal one of the ABAP WebDynpro iView is getting displayed in German. The reason for that is the sap-language parameter is being passed as DE. All other iViews in the system are passing the sap-language parameter is as en.
In our system the Logon Language property is blank for the all the iViews. Could you tell me why one specific iView the sap-language is being passed as a DE?
How the portal finds the value for the sap-language parameter?Hello Venkata,
Check if your Component locale is set to DE.
Component locale
This locale is defined by the following component profile properties:
--ForcedRequestLanguage
--ForcedRequestCountry
Check this for more:
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/938297a5061d69e10000000a1553f6/content.htm
Greetings,
Praveen Gudapati
p.s Points are always welcome for helpful answers -
Removing jsessionid parameter from url of Webdynpro iview
Hi All,
While i create a Webdynpro iview from SAP Webdynpro iview template, the generated url gets appended with the parameter jsessionid as shown.
http://server:port/webdynpro/dispatcher/local/session/New_app;<b>jsessionid</b>=(J2EE14778100)ID1600385450DB11689045888563713719End
I don't want this parameter to be appended and exposed in the url of the ivew. Is there any way i can hide/remove this parameter from the generated url?
Regards,
Vijay.KHi All,
I found that, the Webdynpro template which is an App-Integrator appends the parameter jsessionid to the generated URL. So, i tried changing some properties of the system regarding session, but i couldn't remove this parameter from URL.
I also found that, custom Application integrators can also be developed. So, is it possible to get rid of the jsessionid parameter by developing a custom App-Integrator for Webdynpro application?
Please help me in this regard.
Regards,
Vijay.K -
SAP language parameter setting
Dears:
The parameter zcsa/installed_languages which is in RZ10, control the sap language parameter setting, but i am not very understand how to set the value, i find some set the value to 123EM, i don't know that the 123 meaning here. And some just set it to DE2, D is for Germany, and E is for English, so what is 2 for? Do you know the standard value setting for this parameter?The language environment that comes with the standard SAP installation includes German and English. To use SAP with other languages, you must perform a language import or supplement (use transaction SMLT). Changes in the language environment usually require changes in the codepage setup, which requires changes in some database tables and in the profile files.
Most language administration can be done with transactions SMLT and SP12, and reports RSCP0001, RSCP0004, RSCP0017, and RSCP0020.
The codepage environment is summarized in the report RSCP0001. Running the report will generate a screen with codepage parameters drawn from different places. A proper codepage setup usually requires that all codepage parameters are the same. This table show the output of the RSCP0001 report, and where its data is drawn from: Report output Source
1. Table TCPDB
Code page for transparent data in the database Entry in TCPDB table
Code page for non-transparent data in the
database (for example, pools and clusters) Entry in TCP0C table (can change from online report above)
2. System profile parameters
Code page for transparent data in the database install/codepage/db/transp = 8300
Code page for non-transparent data in the
database (for example, pools and clusters) install/codepage/db/non_transp = 8300
Code pages used by this application server install/codepage/appl_server = 8300
Code pages used by SAPTEMU saptemu/Codepage = 8300
For example, changes in the instance profile, for Traditional Chinese, might look like:
Change Installed languages to include M (Traditional Chinese)
zcsa/installed_languages = DEM
Change to desired language for logon screen
zcsa/system_language = E
Add the following parameters for Chinese Character Set
install/codepage/appl_server = 8300
install/codepage/db/transp = 8300
install/codepage/db/non_transp = 8300
saptemu/Codepage = 8300
abap/locale_ctype = Chinese(Taiwan)_Taiwan.950
install/collate/active = 0
abap/locale_all/needed = 0
rscp/TCP0B = TCP0D
abap/set_text_env_at_new_mode =1
abap/import_char_conversion = 0 -
Passing parameter through url to report
Hi
I'm sorry if this question already exist anywhere in forum i didnt found it.
so my question is:
CAN I PASS PARAMETER VIA URL TO REPORT USING WEBFORM
i don have RAS(Because in beta version of 2008 is this not included)
I tried
http://localhost/CRWEB/Default.aspx?param0="value" ->here i'm prompt for value instead of showing report with set value
and
http://localhost/CRWEB/DocumentDoc.rpt?param0=krneki&init=html_page -> here i prompt to save rpt file
so But both doesnt work!
OR it is necessery to have RAS to pass parameters through url
thanks for quick answerURL reporting and RAS are not available with CR2008. To view reports over the web you will need to use the Crsytal Reports for .NET runtime engine inside a .NET app. This engine is licensed with CR 2008.
Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/robhorne</a> -
How to change sap-language parameter at runtime
Hi
I want to create a Change Language button on an webdynpro Application. I know that the parameter is determined during url creation, but i need the to give the user the posibility of changing the language without closing the browser and logging out etc.
My idea is to us an Outbound plug assigned to lets say a Button. The plug is connected to an Inbound plug og the very same Window. So actually the Application will reload.
The action on the button is like this
data: l_language type sy-langu.
l_language = cl_wd_runtime_services=>get_url_parameter( name = 'sap-language' ).
wd_this->fire_language_plg( ).
Then i read the current language - i.ex: E
But of course i will need to change the parameter sap-language to the new language - lets say: K
But how?Hi,
As far I know, there is no way to get the current url in browser. Alternately, you can get the url parameters and then construct the url with the parameters.
write the below code in HANDLEDEFAULT method of Window:
DATA: lt_parameters TYPE tihttpnvp.
*Get URL params
Wdevent->get_data(
EXPORTING name = if_wd_application=>all_url_parameters
IMPORTING value = lt_parameters ).
*Construct URL
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'APPL_NAME' " your appl name
it_parameters = lt_parameters " to this params itself you can append the sap-language
IMPORTING
out_absolute_url = lv_url.
you may refer this document: Read URL Parameters in Web Dynpro ABAP
Regards,
Kiran -
How to pass the portal language with the URL
Dear experts,
We are trying to call the SAP Enterprise Portal (Online Catalogue) from SAP ERP (ECC6) with an URL that looks somehting like this:
http://xxx.com/irj/portal?j_user=xx&j_password=xx
This works fine, however we would like to add the language as a parameter, something like &language=IT but this doesn't work. I've tried multiple paramaters but none of them brought any success.
The only half-valuable parameter we found is ume.logon.locale which is only considered on the logon screen, though.
Does anybody know which parameter I need to use? Does the SAP Enterprise Portal accept language settings comming from the URL?
Thanks a lot & regards,
Pascal ThalmannHi Abdul and Ayyapparaj,
Thanks a lot for your quick answers but unfortunatelly nothing helped.
@Abdul: I am aware of this risk, but thanks for the hint. The paramter sap-langage was already known but did not bring the desired results - it seems not be accepted.
@Ayyapparay: I had already visited the link you mentined in your reply. The list seems to be related to Web Dynpro Applications which does apply to my problem. Furthermore, the parameters I am using at the moment (j_user & j_password) are not documented.
Any other ideas?
Thanks a lot and regards,
Pascal Thalmann -
Change InfoView language (local) from URL
Hi Everyone,
We have a portal and in the portal we can click on a url to access InfoView. But in case the user change the local on the portal to view in another language like Chinese and when he/she clicks on the url to access InfoView. InfoView will display in English for Ex.
Do we have any way to put the local to the url of InfoView to change the local of InfoView. I know we can do it in the Preference but now my manager want to change it via a URL.
Thanks & Regards,
Anh PhanHi VS,
thanks a lot for helping me here and sorry for delay in responding. I tried the solution provided by you. I developed one one view with a combo box & a button. And another view with just a sample text view. In the next view I duplicated the view.xlf file and pasted with _de.xlf extension for german. I copied your code snippets into wdDoModifyView and in the onActionGo methods. But after that when I select Deutsheland from the list box and press Go - nothing happens. The plug is also not firing. Most probably due to the forced log off. I also tried having some text in the first view itself and creatring _de.xlf file for the same. But didnt work. Its still picking the default english language text only. Can you please guide where I am doing wrong here?
Also - is it possible to have the same functionality without the combo box but from a URL parameter? My current application is integrated in portal. So I type in mycompany.com as the url. Now if I type in mycompany.com?locale=DE will I be able to get the value and process it as you mentioned from the combo box value? Please guide.
Regards,
Shubho -
Stateless=x parameter through url for web templates
Hello, maybe somebody could help me... i´m trying to use the parameter STATELESS=X in my url that i use for calling my web templates.
It´s possible to set the parameter at the end of the url or i have to insert after the template id... i mean... is this url correct ?
http://yourAppServer:yourPort/SAP/BW/BEx?sap-language=ES&bsplanguage=ES&cmd=ldoc&TEMPLATE_ID=PCMA002&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME_1=ZEJPOP&VAR_VALUE_EXT_1=005.2007&VAR_NAME_2=VCMC01&VAR_VALUE_EXT_2=005&VAR_NAME_3=VCMC02&VAR_VALUE_EXT_3=2007&VAR_NAME_4=VPGNV080&VAR_VALUE_EXT_4=U3&VAR_NAME_5=ZPERIN&VAR_VALUE_EXT_5=%23&STATELESS=X
I´m asking this because it´s not working properly.. i get the following error wher i try to fill the variable for this instruction
javascript code
var pIFrame = document.getElementById( "SAP_BW_SNIPPET" );
I mean... the javascript code does not work ok with the option STATELESS but it works fine if i do not use it, anybody knows why??
Thanks a lot,
jcasasSearch forum for "anonymous" and "mime" to find previous answers for this question. One example is at [https://forums.sdn.sap.com/click.jspa?searchID=13102945&messageID=5221832].
Hope this helps...
Bob -
Is there a way to find out if the sap-language parameter was supplied?
Hi all,
I wanted to find out if the url parameter sap-language was supplied or not. I thought that I can read that with request->get_form_field, but the system automatically applies the new language and the parameter is not accessible this way. Is there any other way to check that? I could try it using javascript on the layout, check the url from the javascript and then using self-submitting form transfer that to the backend, but maybe there is some nicer solution?
Thanks in advance.
MarcinWhy do you want to get it from browser URL while you can get it from ABAP?
I think you can try SY-LANGU to get the language of user.
Best regards,
Chinnu -
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 PMHehe, 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
Maybe you are looking for
-
Hi, I have installed the following components successfully Oracle Database : 10.2.0.1 Weblogic Server : 10.3.0 OIM : 9.1.0.1 Platform : Microsoft Windows XP Then, I have download the patch : p8484010_9102_Generic and followed necessary documents to u
-
Problem with Cisco Attendant console
Hi We Have Cisco attendant console 8.x at site . As per user they are " able to log into the "Attendant Console" and access the outgoing numbers located at the bottom of the screen. As far as the internal directory, it does not all
-
User defined Table and matrix problem
Hi, I have a user defined table. I am displaying data from this table using DBdataSource on a matrix in my form. After making changes to a cell on the matrix when i try to save the data back to the data source, the changes are not updated. I am using
-
Huge File Sizes - Illustrator CS
Lately my file sizes have been absolutely huge - all I was doing earlier was creating a simple poster using a jpeg picture (800kb) and two logos (about 800kb each) and the file size managed to reach 20mb when saved as a PDF! What am I doing wrong her
-
i have a i phone 5 c and when inserting my sim card a message stating its the incorrect card and i need to insert the correct card or contact apple to unlock. the phone is from the USA and im in the UK. how do i contact apple to have the phone unlock