Use of Parameters in URL iViews
I'm looking for information/documentation/examples of using parameters in URL iViews. In particular, I'm hoping that we can pick up some portal runtime info to include as parameters in the URL for a URL iView.
For example, here at my customer, Kodak, we plan to have country specific roles. The US Role will have a US specific Welcome Page which has a URL iView that points to a Content Management document for the US Welcome Page. The problem is that I could have one US user who's preferred language (and Portal Language Preference) is English and another who's preference is Spanish. Thus, I would need to point to the correct language version for the user. To do this, I would like to be able to pick up the language preference in the current Portal session and include it in the URL.
Is this possible? Is it standard stuff? What types of user or session context information or parameters can we pick up to use in the target URL of a URL iView and how would I use or code it in the iView.
Thanks for you help.
Hi John & Luis,
The standard solution is the <i>Application Integrator</i> :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/the application integrator in ep 6.0
A flexible way of providing parameters to it (if the standard options described in the above document are not enough) is to write a <i>Customer Parameter Provider</i> :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/how to start transaction iviews with a dynamically computed language.pdf
Hope that helps,
Yoav.
Similar Messages
-
Dynamic Parameters in URL-IView
Hai,
I am using the ESS-framework and I want to create a link which calls an URL with dynamic parameters.
I have already created an URL-Iview with the example url:
http://a.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm
And I also defined a resource and a service in the backend (Customizing)
My question is:
How can I dynamically generate the Parameters SCENARIO and MODE in the url using the URL input field in the defined resource?Hi Remco,
If you create several resources for the same webdynpro (isrform) you can pass params via the resource definition (URL params).
Your webdynpro application can be defined as:
- Webdynpro application (in the xss homepage framework) as a resource;
- URL resource linking to a portal page/iview (with params): url iview with params
- URL resource linking to a portal page/iview (with params): webdynpro iview with params
But before you are going to tweak with it, please try to find out if your url will work:
http://a.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?scenaro=SPEG&mode=CREATE.
If this works, then create an iview in the portal of the url type or webdynpro type. Does it still work with static params? If so, remove the static params from your iview properties.
Now try the following link:
http://yourportal:port/irj/portal?NavigationTarget=pcd_path_to_your_iview
If this works, check out the following link:
http://yourportal:port/irj/portal?NavigationTarget=pcd_path_to_your_iview&DynamicParameter=MODE%3DCREATE%26SCENARIO%3DSPEG
Everything after DynamicParameter must be encoded. To find out what the encoding is, just use google and search for your characher. As an example (let's find the = sign):
http://www.google.nl/search?hl=nl&q=%3D&meta=
%3D is the = sign
Last step:
Create a resource as described on top of this post.
This will be my approach to get this working
Good luck! -
Passing portal username and password as parameters in URL iview.
Hi Gurus,
i Have Created URL iView. i want to send the Username and password of portal to this url ,
how can i access the portal username and password.
Note: tried with j_user and j_password
Regards
K Naveen KishoreHi,
Jigar Oza
Thanks for u r reply, i have tried with application integrator but there is a problem with usermapping.
now what i have done is created HTTP System based on this system created URL iView,in application parameters username and password as MappedUser and MappedPassword every thing is working fine. user logged in automatically when he logged into portal.
there are tabs ,links in application .when i click on tabs or links it is assking to enter username and password of the application.
did i do any thing wrong in creating HTTP system or URL iView,
what are the necessary properties should be given.
replys are highly appreciated.
Regards
K Naveen Kishore -
How do I use the Parameters from URL to filter on Content Query in ItemStyle.xsl?
Hi, I might need your help with code that Content Query under <xsl:Template...> that I need a filter for 3 parameter from url (from date, to date(for date range) and type.
eg: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports
I've google for help and not sure they seem working so far.Hi,
If you want to filter a Content Query Web Part with the parameters from URL, we can achieve it with OOTB of Content Query Web Part by adding "Additional Filters" in "Web Part Properties"->"Query". We can add
three filters like:
date is greater than [PageQueryString:DateFrom]
And
date is less than [PageQueryString:DateTo]
And
type is equal to [PageQueryString:Type]
Then redirect to the URL: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports, the query results will be filtered.
Please reply freely if I misunderstand your meaning or there any other questions.
best regards
Patrick Liang
TechNet Community Support -
System property usage in URL iView
Hi,
Could you please let me know when exactly I should use System property in URL iView.
ThanksHi
the site where the URL points to may require authentication.
that can be stored using a System.
Read more [here|http://help.sap.com/saphelp_nw70/helpdata/en/cd/27896f80f84d83809b7b5cef203dca/content.htm]
and [here|http://help.sap.com/saphelp_nw70/helpdata/en/4a/0158d3cc8045d9814946316e8a8a31/content.htm]
Regards
Rajendra -
How to use URL iview parameters??
Hi all,
i have created a URL iview to www.gmail.com, now my requirement is i dont want to give user id and password and it should logged me in directly so for that i need to make use of URL iview parameters, but i am not aware of how to use it, can anybody help me to resolve this issue??
Thanks in advance,
Regards,
Ameya.Hi Ameya,
Basically, you need to create a HTTP system, then create a URL Iview giving this http system as a reference in it.
Check this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=389042">thread</a> for details.
You can also refer to
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/f5/eb51730e6a11d7b84900047582c9f7/frameset.htm">SAP Help Library</a>
cheers~
avadh -
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 PMHi 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 -
Update on question for parameters in URL opening a BSP iview
Hi again gurus.
I wanted to do an update on this thread: How do you create a URL with parameters for a BSP iview? but choose to do the update as this new question instead.
Well, in order to open a BSP iview from an external page shown in an Application Integrator iview in our portal AND FILL IN A FIELD, a link of this type is used on the external page:
http://<server:port>/sap/bc/bsp/sap/z_purchase_req/process.htm?System=ABG_R3_ARD&mnr%3D9780198603641
If you read the other thread you will see that I couldn't use a link of the following type since it opened up something like the stuff found under "System Administration > Support > SAP Application" and there asked for BSP application and start page!
http://<server:port>/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.BSP?System=ABG_R3_ARD&SAP_TCode=Z_PURCHASE_REQ&STARTPAGE=process.htm
But the first link works so far as it opens up the correct transaction BUT the parameter won't get into the field. Does anyone know how to "format" the parameter correctly? When you open an iview of Transactional type you can use a URL like this (and it works also with writing parameter into a field):
http://<server:port>/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.Transaction?System=ABG_R3_ARD&SAP_TCode=ZARTS2&SAP_Dynp_Params=S_MATNR-LOW%3D9789146212720
It's the part ...&SAP_Dynp_Params=... that is of interest here. Should it also be used when working with URLs opening BSP iviews or not? Or should something similar be used instead? The name of the field "mnr" is correct in the BSP URL, at least I think so, I found it in the Web Application Builder under tab "Page Attributes". I have tried both "=" and "%3D" in the URL but neither works.
Any suggestions about the parameter format for this link or another completely different but working URL format would be extremely appreciated!
Best regards
Benny Langethe Appintegrator Documentation says you can use something like <User.[AttributeName]>, so <User.email> and <User.company> (not sure about capital letters) should work.
Hope that helps.
PD -
Wrong results in URL iview and overview of URL parameters
I have created an URL iView that is supposed to query an index and return results. I am using the URL:
/irj/servlet/prt/portal/prtroot/com.sap.km.cm.service
and added following URL parameters:
StartPage=SearchPage
ConfigFileName=Navigation.xml
layoutSetMode=exclusive
ResourceListType=com.sapportals.wcm.SearchResultList
SearchType=quick
QueryString=marketing
SelectedSearchIndices=KnowledgeBase
The problem that I have is that the iView returns the second page of results (11-20) instead of the first one (1-10). When I hit the Search button again the result is the first page of results.
Does anyone have experience with this problem?
I've searched SDN on an overview of URL parameters (for example a parameter to specify the number of results to be shown on a page) to solve this problem, but couldn't find anything. Does anyone have an overview on URL parameters?
Thanks in advance!
Kind regards, HilcoHi,
Please check if the iView properties are as per properties mentioned in this <a href="http://help.sap.com/saphelp_nw04/helpdata/en/4c/eee2bedf3b4082b14a933e5ee63472/frameset.htm">link</a>.
Regards,
Sujana -
Question about URL iView parameters
Hi experts.
I have this issue: I have several iviews in DEV instance, URL iViews that points to backend applicationes. The URL parameters in DEV instance, point to DEV instance of backend applications. But when a will need to transport these iview to PROD instance, the URL parameters then I need to point to PROD instance of this backends apps.
Which is the best practices to resolve this issue ?
<b>Example:
in DEV instance:
URL iView "A" point to http://dev.app.com.
in PROD instance
URL iVIew "A" point to http://prod.app.com</b>
But i try to avoid change this parameters after transport to Production , in Production instance directly.
I think for example, use a some type of configuration file o .ini, in order to iviews "take" the URL string from it; and do not harcdode this strings.
Is possible? How?
I am clear?
thanks in advance!thanks Atul, Wayne,
I could be use "http system" but..
Suposse this case:
In DEV instance, I have:
- URL iview "A" point to backend system "http://dev.zzz.com"
- URL iview "B" point to backend system "http://dev.xxx.com"
- URL iview "C" point to backend system "http://dev.yyy.com"
In PROD instance, I have:
- URL iview "A" point to backend system "http://prod.rrr.com"
- URL iview "B" point to backend system "http://dev.ddd.com/aspx"
- URL iview "C" point to backend system "http://dev.mmm.com/app3"
All different!. No pattern. If I use a Http system,I think that I am continue with the same problem: in the transport to PROD, I should be change all references, or all http systems.
For this reason, I am begin asking for use a some type of configuration file, but I dont know how.
thanks in advance.. -
URL IView with parameters having no parameter identifier
I have created a url iview but the first parameter has no Parameter Identifier after the ?. Is there a way to code for this in the URL Parameters section of the iview. Here is par to of the URL:
.../Pages/ReportViewer.aspx?%2fExpress ...
if it said something like
/Pages/ReportViewer.aspx?codelink=%2fExpress
then it would be no issue.
Normally you would put something like codelink and the /Express in the value section. the portal will not let me leave it blank and I have tried using a space. I am trying to access a specific report on the Report Server of MIcrosoft Reporting Services.
Thanks
PaulGood day,
Review the following document:
https://cw.sdn.sap.com/cw/docs/DOC-41417
If that did not help, you may need to create your own template since the standard URL iview generates URL values based on it's own template OR create your own modified version of the PAR.
Review the following document:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0cbc309-ff89-2a10-8bad-bcde4c152ecb
View the following supplementary articles for information on creating your own appintegrator template:
https://cw.sdn.sap.com/cw/docs/DOC-109843
https://cw.sdn.sap.com/cw/docs/DOC-101603
http://help.sap.com/saphelp_nwesrce/helpdata/en/70/5a3842134bad04e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nwesrce/helpdata/en/36/5e3842134bad04e10000000a1550b0/frameset.htm
The benefit of this is that you can now create a system object that references the MS reporting Services system from the portal, and transport iviews pointing to this along yoru landscape without issue, and additionally you can specify parameters that can be dynamically determined when an iview is created using the template you have defined.
We use this for connecting to our BO systems dynamically as the landscape calls and apliaction in a different environment. Parameters are also defined differently in our templates. It take a little time getting your head around the documentation, but once you have it sorted it is very straight forward. If you find it too daunting you can also search for the download to com.sap.portal.howtos.webapp.par which has portion of this preconfigured for use already.
http://wiki.sdn.sap.com/wiki/display/EP/HowtodoSSOwithInternetsites
I trust this helps,
Doug. -
Passing URL parameters to WD app in URL IView
Hi experts,
I'm using EP 7.2 and as I found out this version doesn't support Web Dynpro Java iview template so I'm using URL iview template for my Web Dynpro Java application. My requirement is to somehow pass some URL parameter (which is id for something in my app) to the WD app in the URL iview. So in this scenario setting the URL parameters and their values during design time for the iview is not suitable. I tried DynamicParameter=id%3D154 for example but it doesn't work. Do someone has any ideas to solve this problem? Any help will be appreciated.
Regards,
Martin
Edited by: musaka on Oct 27, 2009 1:12 PMHi Musaka,
If i am not mistaken, your requirement is to display a URL iView to user with some parameters (contained within the Address Bar of the Browser) to be passed to the iView. Initially as no parameter value can be defined on previewing the iView or opening the iView, no value is passed to iView. But in case, when you directly enter the Parameter Values against Parameter Names in Address Bar and then say go, the page should reload and pick the parameter values from URL in Address Bar instead.
Steps to follow:
1. Put CustomerId=0&RequestId=0 in the Application Parameter property of the URL iView.
2. Put the following lines of code in the wdDoInit() in the implementation tab of the View Controller to retrieve and use the passed parameter value in the View of the application and then say Organize Imports from the context menu.
int customerId = WDProtocolAdapter().getProtocolAdapter().getRequestObject().getParameter("CustomerId");
int requestId = WDProtocolAdapter().getProtocolAdapter().getRequestObject().getParameter("RequestId");
Please revert in case of any issue.
Regards,
Tushar Sinha,
Infosys Technologies Limited,
Hyderabad,
India
Edited by: tushar sinha on Oct 29, 2009 10:51 PM -
Pass parameters dynamically to url iview from web dynpro abap
Hi,
I am trying to pass 3 key-value pairs via absolute navigation to a URL iview.
The url expected is : http://www.sap.com?field1=value1&field2=value2&field3=value3
For this, I have done the following:
1) Created a url iview with the 3 parameters in get.
2) Used the pcd location of the url iview and referred it in the navigate_absolute method.
Following is the call:
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = wa_navigation-target
navigation_mode = wa_navigation-mode
use_sap_launcher = abap_false
business_parameters = l_bus_parameter_tab.
The l_bus_parameter_tab has the key-value pairs populated and I can see them populated.
However, when the url is being called the parameters are not getting passed. Am I missing anything to be passed?
Thanks.Hi Kumar,
I have followed your reccomendation and updated the code and iview properties.
The code now looks like:
l_parameter-key = 'userid'.
l_parameter-value = sy-uname.
INSERT l_parameter INTO TABLE l_bus_parameter_tab.
l_parameter-key = 'portal'.
l_parameter-value = 'test'.
INSERT l_parameter INTO TABLE l_bus_parameter_tab.
l_parameter-key = 'mode'.
l_parameter-value = 'I'.
INSERT l_parameter INTO TABLE l_bus_parameter_tab.
*End of business parameters population
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = wa_navigation-target
navigation_mode = wa_navigation-mode
use_sap_launcher = abap_true
business_parameters = l_bus_parameter_tab.
launcher_parameters = l_bus_parameter_tab.
However, when the method is called, it does nothing and the url does not get called.
When I manually add parameters to the url iview and preview it, it does the job.
For some reason, these parameters are not getting passed to the url iview or page.
Is there a limitation that parameters cant be passed to url iviews? -
How to display the image which in KM folder using url iview
Hi Friends
How to display the image, which is under KM folder structur using the url iview.
i trying using url iview url as \document\testfolder\abc.jpg as url for the iview.
but its now working .. so please help me how to slove this problem
If is not the correct way then please suggest me best way to achive this.
Thanks
MukeshHi Mukesh,
I think this may work,
1, Create a HTML Layout.
You can put your image wherever u want with HTML Codes.
Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
With this, u can use the standard KM commands also.
2, U need to use KM Navigation iView for this rather than KM Doc iView.
3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
Regards
BP -
How do i integrate GMail into Enterprise Portal using a URL iView?
Hi,
Can some one tell me ohw i can integrate GMail or any other Mail into portal using URL iView or any other iView?Hi nadh,
See if by any chance, the following links prove to be of any help:
<a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=207925">https://www.sdn.sap.com/irj/sdn/thread?threadID=207925</a>
<a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=137144">https://www.sdn.sap.com/irj/sdn/thread?threadID=137144</a>
<a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=63299">https://www.sdn.sap.com/irj/sdn/thread?threadID=63299</a>
<a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=95643">https://www.sdn.sap.com/irj/sdn/thread?threadID=95643</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/7c/6a469702474146a8ef2f97fe880b2f/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/7c/6a469702474146a8ef2f97fe880b2f/frameset.htm</a>
Bye
Ankur
Do reward points if it helps!!
Maybe you are looking for
-
Want to install SSD and make it the main drive
Hello, I just purchased my Lenovo IdeaCenter H530 Desktop and straight away installed a GT640 video card. Everything seems good and I'm waiting to install a SSD. I would like to run windows 8.1 from the SSD as the primary drive, and use the 1TB H
-
K7N2GM2 no sound or network on Re-format
Running K7N2GM2 windows Xp...My pc has been running sluggish resent and acting funny,but still able to get on internet and do everything as normal,So i Re-formatted pc and installed Windows Xp but i now have no Sound or able to get an ip Address? not
-
Wir nutzen Querverweise ("als Textvariable") in Text-Seitenverweisen (also z. Bsp. "siehe Seite...") um sicherzustellen, dass die Seitenzahl im Text sich ändert, sofern (im/in Dokument/en [also auch dokumentübergreifend]) Seiten eingefügt oder gelösc
-
My roles/authorisations requirements in BW and Portal are BW We created a reports cost centre accounting We want to restrict the reports based on the cost centre hirerachies .. I developed a report, When executed it will display all cost centres (a
-
What are seeded application users, how do they differ from standard users, and how can you verify how many there are in the system?