on 04-20-2006 8:18 AM
Is it possible to access GET-parameters in a bsp application in an iview in the enterprise portal, and if so, how do I do it?
If you look at the url of this post (/message/1514719#1514719 [original link is broken])
I would like to have the value of "forumID" in the bsp application in the iview with shortlink "thread".
HI Dries,
It is possible to access GET parameters in BSP applications,passed from corresponding iViews from Portal.
In the BSP iViews,in the property Application Parameters,we can specify the parameters with corresponding values to be passd to the BSP application.
the parameter values can be static as well as dynamic.
Say,we want to pass a static value,do_id and the dynamic value,the user id of the User logged into EP.Then in the iView property Application parameters we can specify this as:<b>
do_id=DO00000001&userid=<User.UserID>
</b>
This can be retrived in the corresponding BSP page when the page is initialized,in onCreate event as:
<b>
User = runtime->server->request->get_form_field( 'userid' ).
DO = runtime->server->request->get_form_field( 'do_id' ).
</b>
where User and DO are the page attributes.
Hope this helps,
Regards,
Siddhartha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Siddhartha,
I can see how this would work for the userid, but I don't want to pass the userid, I want to pass a GET-Parameter from the url in the address-bar, the url that was used to open the portal, with a shortlink and a parameter.
Does anyone perhaps know where I can find detailed documentation about the ApplicationParameter-property of iview?
Raja,
your solution is what I was initially looking for, so thank you.
Can you also supply a link to the article you refer to? I can't find it:-)
But while looking for this I found something even better, a way to pass parameters to an iview without having to define them in the iview ApplicationParameter-property.
Apparently the trick is to add the parameter "DynamicParameter" to the url, that translates to different parameters in your bsp application(iview).
So if you want your bsp application to have the parameters "roomid=555&date=01.01.2007" your url should be
http://bla/irj/portal/rooms?DynamicParameter=roomid%3D555%26date%3d01.01.2007
where %3D is the ascii representation of "=" and %26 is the ascii representation of &.
I found this here : /message/529588#529588 [original link is broken] , but in this thread they say to separate the parameters by a ";", whereas for me it only works when i use %26 (&).
Message was edited by: Dries Horions
Hi,
Documentation on the latter can be found in eg
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/234f10cad30d27e10000000a1553f7/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/210c81172f045fe10000000a422035/frameset.htm
Eddy
what sort of iview is it?
let me understand the question. you have a iview which is showing a BSP application. (a bsp iview or url iview) and within the BSP application you want to read the values passed via iview url (GET) (application parameter).
is my understanding right? if yes
within the BSP application you can either have page attribute with the same name as parameter name with auto check box check or use request->get_form_field to read the values.
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.