How to encode URL parameters in pl/sql?
How to encode url and its paramters in PL/SQL to call a page using html GET method? Is there any equiavlent method of java's URLEncoder.encode() method in pl/sql (in any web packages) ?
Any help/pointers highly appreciated.
P.S. : URGENT PLEASE!!!
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:371959198986
Similar Messages
-
How to read URL parameters of one wdp component into other WDP component?
Dear Experts,
Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
My requirement is i have one standard WDP component with 3 URL parameters and i needto
read that URL parameters along with their values in my Z-WDP component.
Thanks
SKHi Santosh,
You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
data: lt_parameter type tihttpnvp,
ls_parameter type ihttpnvp.
lo_api_controller ?= wd_this->wd_get_api( ).
call method lo_api_controller->get_message_manager
receiving
message_manager = lo_message_manager.
clear : ls_parameter.
refresh : lt_parameter[].
* Read all URL parameters
wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
if not lt_parameter[] is initial.
clear : ls_parameter.
read table lt_parameter into ls_parameter index 1.
if ls_parameter-name = 'ACTION' and
ls_parameter-value is initial.
lv_flag = 'X'.
clear : lo_msg.
lo_msg = 'Action Parameter Missing in URL Link !'.
* report message
call method lo_message_manager->report_error_message
exporting
message_text = lo_msg.
else.
endif.
Best Regards
Priyesh Shah -
Hi All,
How to read URL parameters in another WDA.
Thanks in advancehere is the sample code.
you can write this code in HANDLEDEFAULT method of Default Window of Application being called.
DATA:
wa_url TYPE LINE OF tihttpnvp,
int_url TYPE tihttpnvp.
wdevent->get_data(
EXPORTING
name = if_wd_application=>all_url_parameters
IMPORTING
value = int_url ). -
How to encode URL in UTF-8 Using PL/SQL
Hello,
Platform:Oracle 9i, Sun Solaris,
Using Oracle 0i XML/XDK Iam able to generate xml data and post it to url via HTTP POST. But the xml data need to be encoded in utf-8. Does anyone know how to encode the xml data within PL/sql ?
Thanks for your time
SeemaThanks for the suggestion. I like this approach as Java is more familiar to me than other languages.
Our DBA is out of touch today, so I could not grant the javauserpriv to my database user. I tried to run the script anyway in the chance that my user had the privs, and it seemed to have hung. I am now combing Oracle's site for more documentation so I can write some tests to see if I can get a basic Java object working. Under what heading would I find this?
ajt -
Passing URL parameters to PL/SQL Pages
Hi,
I want to pass parameters from url to the PL/SQL page . How is this possible?
http://myserver/pls/portal/url/PAGE/page_group/page/testplsqlpage?course_ref=##COURSE_ID##&staff_ref=##STAFF_ID##
I will to received course_ref and staff_ref in the PL/SQL page and pass the values to SQL query so that its filtered.
Can pls anyone guide me? If there is any alternate way or there is sample code pls let me know
Many Thanks
GaneshHi Mick,
Thanks for your reply. However my problem is still not resolved.
I have created a Omniportlet with lists the staff details. When I click on the staff link I am passing to parameters as follows
http://servername/pls/portal/url/PAGE/CCM_MIS_PORTAL/TUTOR_HOME/Course_Info?Param1=10017031/M2523&Param2=001434
on the receving page I have a omni portlet which must receive these 2 parameters and pass it on to the query and filter the results.
On the received page I have created 2 page parameters (Param1 and Param2)
I have assigned these 2 paramaters to the portlet paramers through page parameters' section
on the omni portlet in the query I have created 2 bind variables (p1, p2) and the default value of the bind variable is set using ##Param1## and ##Param2## so the received values from page is passed to to bind variable and hence to the query.
However the omni portlet is not received the parameters and I can not figure out whats wrong?
Is there any problem with my URL (guide says I should use relative URL)
Please help -
How to read url parameters from a decoded string
Hi,
Normally if I pass on a url string
test.cfm?name=abc&num=8, I can do url.name and url.num
to get the url parameters. But what if the url string is decoded by
javascript escape() function? The above url string becomes
test.cfm%3Fname%3Dabc%26num%3D8
How can I read url.name and url.num from this string?
Thanks!
MinEscape is not really meant for urls because it encodes the
delimiters: ? &
http://www.w3schools.com/jsref/jsref_encodeURI.asp
http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp -
How to encode request parameters?
Hi I'm running a small web application developed with JSP pages. But it turns out that it relies on cookies to maintain sessions, which is a limitation if the client's cookie setting disables cookies.
I know that I could encode the request parameters and use GET method to communicate information between client and server, but have no idea how this is done.
Can you give me some code, or recommend some tutorial to me? Thanks!1. If you don't want to use cookies, you could use URL rewriting to append the session ID. When you redirect to another page, do something like the following:
a. first choose whether you want to forward or sendRedirect: (the following example is a redirect)
//encode the parameter values to encode special characters, such as spaces
String parameterOne = java.net.URLEncoder.encode("some value");
String parameterTwo = java.net.URLEncoder.encode("some other value");
//build the query string any way you want
String queryString="?key1="+parameterOne+"&key2="+parameterTwo;
/* Use response.encodeRedirectURL if running it through a sendRedirect.
Doing so will rewrite the url with the session ID appended to the
end. */
response.sendRedirect(response.encodeRedirectURL("some.jsp"+queryString));This little code snippet demonstrates two things. It shows that URL rewriting can be used to append the session ID. It also shows you how to encode parameters (i.e. use URLEncoder.encode()).
If you want to encode your string in the JSP, you could also do it using javascript:
<script language="JavaScript">
<!--
//this is just an example javascript function
function openPage() {
var thisForm=document.formName;
/* get your form element values (these are text boxes).
Note: the javascript escape() function url encodes the values.
there are also other js functions to do this. */
var paramOne=escape(thisForm.paramOne);
var paramTwo=escape(thisForm.paramTwo);
var queryString="?paramOne="+paramOne+"¶mTwo="+paramTwo;
window.open("some.jsp"+queryString,"some_window_name");
}//end openPage
//-->
</script>Or, you could build it using JSP expressions and scriptlets. Its really up to you. These are just rudimentary examples to help you get started. -
How to read URL Parameters in ABAP WebDynpro ?
Hi,
How and where (which class, method) in ABAP WebDynpro we can read URL Parameters ? I found answers for WebDynpro JAVA but nothing for ABAP.
Thanks
MeenalHi Meenal,
Please see a post by Sanjay Agarwal titled 'Sequencing Problem in Web Dynpro ABAP'. I believe you will find your answer there.
Cheers,
Rich -
How to pull URL parameters into my Captivate 6 flash
I want to be able to parse a parameter being passed in the URL to my Captivate video and then use it after the file is over. e.g. a username that is picked up by another web page. Is there an easy way to do this.
Looking through old posts, is see using the m_MovieHandle as the area to place my flash code, but everything so far I've tried doesn't bring in the variable. I'm kinda new to flash.
ThanksPut this JavaScript code in a separate .js file. I called mine utilities.js:
/* Utility to get a URL Parameters as queryString object */
var queryString = (function(a) {
if (a == "") return {};
var b = {};
for (var i = 0; i < a.length; ++i)
var p=a[i].split('=');
if (p.length != 2) continue;
b[p[0]] = decodeURIComponent(p[1].replace(/\ /g, " "));
return b;
})(window.location.search.substr(1).split('&'));
/* Utility function to Set a Captivate Variable with a URL Parameter */
var setCpVariableWithURLParameter = function(cpUserVariableName, urlParameterName){
/* Get the requested URL Parameter from the URLParams Object */
var variableValue = queryString[urlParameterName];
/* Check for HTML5 vs. SWF output */
if (typeof window.cp==='undefined') {
/* We have SWF output, so Get the Captivate Object */
var objCp=document.getElementById('Captivate');
if(objCp && objCp.cpEISetValue){
/* Set the Captivate User variable with the JavaScript variabe, variableValue */
objCp.cpEISetValue('m_VarHandle.' + cpUserVariableName, variableValue);
} else {
/* We have HTML5 output */
if(cp.vm && cp.vm.setVariableValue){
cp.vm.setVariableValue(cpUserVariableName, variableValue);
Include this .js file in the header of the <ProjectName>.htm file of the swf published output by using a script tag:
<script src="utilities.js" type="text/javascript"></script>
Where utilities.js is at the root of the published project (where the published .swf file lives).
Also add this script tag to the header of the HTML5 output index.html file.
To use the setCpVariableWithURLParameter() function, you would make this call inside of a JavaScript action in Captivate:
setCpVariableWithURLParameter('v_Name', 'userName');
Where 'v_Name' is the Captivate user Variable you want to set and 'userName' is the name of the URL parameter.
Give that a try and let us know how it goes.
Best,
Jim Leichliter -
How to persist URL parameters in OAM portal inserts?
Hi,
We have a requirement to redirect the users to different XSLs based on the containers configured in OID (ou=employees,ou=customers). We have configured different style directories (employees and customers) in OAM. For Identity Administration activities we are using another style (adminStyle) used by OAM Identity Administrators.
We are using OAM portal inserts for navigating from webapplication (integrated with OAM) to OAM modify profile page to change user attributes.
Also webapplication using different authenitcation scheme in OAM.
User login into webapplication using login.jsp (form based authentication scheme) and clicks on Modify profile link (URL will be portal insert URL).
After the user session timeout (Configured in webgate) user is redirected to OAM login page (form based authentication). Once the user enters valid credentials user is redirected to OAM user manager application (only navigation bar with back button is displayed).
The parameters comp=true, style=employees and program=modify are lost. Hence user not able to see OAM Modify profile page. Again user needs to click on back button (portalid) to get into Modify profile page. How to persist these parameters in the URL?
Following is the portal insert URL we are using:
http://<host>:<port>/identity/oblix/apps/userservcenter/bin/userservcenter.cgi?program=modify&uid=UserDN&style=employees&xsl=usc_profile.xsl&comp=true &portalid=webapphome
Anypointers on this is appreciated.
Thanks in advance.
Regards,
Srikanth
Edited by: Srikanth_idam on 16-Apr-2010 04:30Hi Srikanth,
That looks like a bug (6158232) that was fixed in version 10.1.4.2 of OAM Access Server (maybe WebGate too). Are you on an earlier version?
Regards,
Colin -
How to config URL parameters dynamiclly in URL iView?
Hi all,
I have 2 iViews, iView1 is a WD application iView, iView2 is a URL iView with some URL parameters.
Firstly I navigate from IView1 to iView2 with some parameters, then I hope to pass these parameters to the URL parameters configued in iView2.
For example,
<b>iView2 configuration:</b>
URL: http://server1/app
URL parameter name: param
<b>Navigate from IView1 to iView2:</b>
WDPortalNavigation.navigateAbsolute("ROLES:"+iview, WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null, WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,(String)null,(String) null, "value=123");
Then how can I pass the value 123 from iView1 to the parameter 'param' in iView2?
Best regards,
BeanHi Bean ,
The approach you are following is correct ,refer to these links , there you can find the concept of WDportalnavigation properly,Also check for the relative navigation.
http://help.sap.com/saphelp_nw04/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
Thanx
Pankaj -
How to use URL parameters in Flex?
Hello Everyone,
I wanted to know how can the parameters passed in a URL be used in our Flex application. I searched in the forum and tried these links:
http://forums.adobe.com/message/217950#217950
http://www.danvega.org/blog/index.cfm/2009/2/5/Flex-FlashVars-in-local-development
In the second link, this is the solution provided:
1. // if we've detected an acceptable version
2. // embed the Flash Content SWF when all tests are passed
3. AC_FL_RunContent(
4. "src", "ffManager",
5. "width", "100%",
6. "height", "100%",
7. "align", "middle",
8. "id", "ffManager",
9. "quality", "high",
10. "bgcolor", "#869ca7",
11. "name", "FFManager",
12. "allowScriptAccess","sameDomain",
13. "type", "application/x-shockwave-flash",
14. "pluginspage", "http://www.adobe.com/go/getflashplayer",
15. "flashvars","username=dvega"
16. );
private function init():void {
// grab the username so we can track who is logged in
[Bindable] private var:username= Application.application.parameters.username;
But here, I am getting the hardcoded value (ie.,dvega) as the data inside my flex application. Instead I would need the dynamic data that is passed through the URL. For Ex: if I use the URL, http://172.22.41.154/MH_2.html?myName=Arush
I need would need to use the name 'Arush' inside the application. Can you please help me on how and what part of the code is to be modified?
Thank you,
Warm regards,
DeepakThat would come within flex.
In my case, there is a SAP CRM web application which has a push button. On click of this button, flex URL is called(ie., http://172.22.41.154/MH_Bluebook_Integration2.html). On click of that button I need to pass an Object ID, which is passed withing that flex URL, something like this:
http://172.22.41.154/MH_Bluebook_Integration2.html?objID=abcd
I need to receive 'abcd' in the flex. Any way we could modify the HTML wrapper to send this value to swf? -
How to describe placeholder/parameters in a SQL statement
Hi
Does anybody know how to describe the placeholder/parameters in a statement? I only find the OCI documentation talking about "Describing Select-list Items". But what if I want to retrieve the data type of a placeholder (assuming I don't know beforehand or just want the program to be more flexible)? Doing this by describing schema metadata first (have to find out which schema object to use) and then using OCIDescribeAny() seems not a very good way. Thanks.Jonah, and others,
how would you find out the (hash_value, address) of the statement just described to extract the statement-relevant information from V$SQL_BIND_CAPTURE?
Via a join with V$SQL and the statement's text?
Thanks, --DD -
How to access url parameters in query builder side
I call a report via url and it works fine but now i want to use lexical parametrs.
I create a lexical parameter in the report but how can i establish relation between url parametrs and lexical parametrs from report?
Example
URL: report1.rtf?PUser=1&PCity=2
REPORT: P_WHERE lexical parameter
How can i define that something like P_WHERE -> "where user=PUser and city=PCity"
Please give me a hand, its urgent
ThanksHi,
do this in the after paramform trigger:
:p_where := 'where user='||PUser||' and city='||PCity;
Regards
Rainer -
Web Dynpro iView - how to pass URL parameters?
I have a Web Dynpro application that is housed in the Enterprise Portal. We have a requirement where we need to provide an external link to the iView/Web Dynpro component - for the sake of this discussion, assume it's email. As part of this URL link, we need to pass a parameter that will cause the Web Dynpro app to fetch some data.
The Web Dynpro has a startup plug parameter - call it 'id'.
I can invoke the Web Dynpro application directly, and pass the id paramter on the URL - the application can see the parameter just fine. However, when I try and do the same via a Roles-based URL, the parameter does not survive. I've tried two different methods:
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview&id=1234
and
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview!26id=1234
neither of which work.
is there a way to do what I'm trying to do? Note that the 'id' paramter is dynamic - I can't code it in the Web Dynpro iView configuration.Hi,
please try the following:
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview&DynamicParameter=<encode(id=1234)>
The value of the DynamicParameter value must bei encoded.
For details please have a lool to
<a href="http://www.sap-press.de/katalog/buecher/titel/gp/titelID-1078">this</a>
This book will be also available in English soon.
Best regards
Jochen
Maybe you are looking for
-
MIRO de Nota fiscal com material de Consumo e Revenda
Prezados colegas; Tenho um cenário onde devemos entrar com dois tipos de materiais na mesma nota fiscal, como o fornecedor não sabe qual a finalidade da compra ele envia a nota com CFOP 6101 para todos os produtos. Material cat. C
-
How to make the Pager for table view as non editable?
Hi, I am using an HTMLB pager for my table view . It appears as Page '1' of 2 for examle. But '1' is dispalyed in an input field. How do I make this input field as disabled. I just want to use the Vertical and horizontal indicators to traverse throug
-
Is it possible to unlock documents?
I scanned a document is it possible to nlock it so i can edit it?
-
is there any problems in iphone 5 wifi? others connecting but mine is not.. sometimes depends on distance! help pls
-
i have a mac powerbook g4 power pc processor, OS 10.5.8. what is the most current version of firefox i can use? i currently have 2.0.0.9 and am unable to auto or manual update edit