Pass procedure/function parameters via URL
how to pass procedure or function parameters via URL? External link processes payment, and returns some data. I have an example procedure that forms correct URL like:
http://www.website.lt:7777/apex/f?p=109:6:1512552728675996::::P23_LOGIN_ID:UTREEP7Q84FHG
but the other procedure returns with URL (and its wrong):
http://www.website.lt:7777/apex/nora.pay_cancel?token=EC-76F379209K155914F
the source of pay_cancel procedure:
create or replace procedure pay_cancel
(token in varchar2)
as
begin
owa_util.redirect_url('f?p='||'109'||':'||'5'); --some test page
end pay_cancel;
whats wrong with the return variable?
Sorry, permission problems, everything is OK with +<schema>.<procedure>?<variable>=<value>+ syntax.
Execute sql: grant execute on pay_cancel to public;
Similar Messages
-
Is it possible to pass nQuireID (session ID) via URL ?
is it possible to pass nQuireID (session ID) via URL?
(how to get the session id ?)
therefore, we dont need to pass the userid and password. (embedded in the URL)Ummm you can't get a session ID unless you login first, chicken and egg problem? Have you looked at implementing SSO? That's the proper way of solving integration issues, hard-coding the user ID and the password on the URL is a nasty and insecure "hack"...
-
Passing procedures/functions as arguments ?
I doubt this is possible but just to make sure: can a procedure or function be passed as an argument to another (or even the same) procedure or function, like in functional programming ? This would help a lot cleaning up a convoluted if-then-else spaggeti piece of code I'm dealing with.
Thanks,
GeorgeIt depends on what exactly you want to do. You can pass a function as an argument to a procedure, or another function. The called function gets the result of the parameter function as the argument. You cannot pass a procedure as an argument because a procedure cannot be resolved to a scalar value or collection.
SQL> CREATE FUNCTION f (p_str IN VARCHAR2) RETURN VARCHAR2 AS
2 l_ret VARCHAR2(100);
3 BEGIN
4 l_ret := 'Hello '||p_str;
5 RETURN l_ret;
6 END;
7 /
Function created.
SQL> CREATE PROCEDURE p (p_str IN VARCHAR2) AS
2 BEGIN
3 DBMS_OUTPUT.Put_Line(p_str);
4 END;
5 /
Procedure created.
SQL> exec p(f('World!'))
Hello World!
PL/SQL procedure successfully completed.If you want to pass a procedure or function and have the called procedure execute that function then you will need to use dynamic sql.
HTH
John -
Pass connect parameters via URL
I have two applications using authentication method in login page. I need submit URL from one application to another and don't show again connect page.
I try like this
http://localhost:port/pls/apex/f?p=appl_no:page::&SESSION.::::p101_username,p101_password,p101_ldap_domain::p101_username,:p101_password,:p101_kbr_ldap_domain:GO
It still show me login page in another application. I don't need see connect page. I need to start in home page.
Thanks MBThe login page and connect page is same.
Like I said we have two applications and login page in both applications is identical (our company standard) -- user (ldap), password, domain.
I want to jump from one application to another and not see again login page, instead of login like the same user, password and domain and see the application page.
The URL, I typed it and accidentally put additional: This is real URL
http://houorcl302.corp.kbr.com:7777/pls/apexit2/f?p=126:101:&SESSION::::p101_username,p101_password,p101_ldap_domain::p101_username,:p101_password,:p101_kbr_ldap_domain
Where: p101_username--> user
p101_password -- password
p101_domain -- LDAP server
In both application the same
Thanks MB -
Calling Transaction SP01 (Display spool requests) with parameters via URL
Hi,
I would like to be able to list all spool requests of a certain title via a URL.
Unfortunately ITS does not seem to work. A URL constructed like this
http://host:port/sap/bc/gui/sap/its/webgui/!?sap-system-login-basic_auth=X&sap-client=500&sap-language=EN&transaction=SP01&S_RQTITL-LOW=Testing123&okcode=CRET
causes a short dump that SP01 (Program RSOSP01NR) is a Module Pool.
I am therefore considering the following options:
1. BSP Program
2. Java WebDynpro
3. ABAP WebDynpro
Ideally, I want to be able to enter in my browser something like
http://host:port/<BSP_or_WebDynPro_stuff>&~title=Testing123
and for this to show in the browser a list of all spool requests that are named "Testing123".
Can someone advise whether any of the above options are preferable?
Also, whether such a program should call transaction SP01 with parameters (skipping first screen) or look to using the associated function modules.
Many thanks for any assistance.
Regards
AdrianSolved myself. Thanks
-
Call stored procedure(with parameters) via odbc
In my application I like to use the below statement to call a stored procedure with parameter and return a result set.
{CALL PP.getPerson('daniel')}
but this will just return errors to my application.
If I change the statement to:
{CALL PP.getPerson(?')}
and bind a parameter and its value, it will work.
My question is, is it possible to call a stored procedure via ODBC without binding parameters in application? I mean, what will be my SQL equivalent if I don't want to do parameter binding in my application?
Thanks in advance. I appreciate any help :-)hi
Please see the e.g bellow
create proc proc_test(@SchoolNumber int,@SchoolName
varchar(100),@StudentNumber int, @StudnentName
varchar(100)output ,
@StudentAddress varchar(100) output,
@Studentbirthdate datetime output,
@StudentPhoneNumber varchar(100) output,
@GuardianName varchar(100) output)
as
begin
select @StudnentName varchar=StudnentName ,
@StudentAddress =StudentAddress,
@Studentbirthdate =Studentbirthdate ,
@StudentPhoneNumber =StudentPhoneNumber,
@GuardianName =GuardianName
from table where schoolno=@SchoolNumber
and SchoolName=@SchoolName
and StudentNumber=@StudentNumber
return
end
http://technet.microsoft.com/en-us/library/ms187004(v=sql.105).aspx
http://www.lynda.com/SQL-Server-tutorials/Using-input-output-parameters/104964/113058-4.html
Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker -
Change the TOC contents using parameters via URL
Is it possible to change what topics can turned on and off by passing a parameter via the url. At the moment, when I use a conditional tag, everything that is not in the "excluded" column will show up in the final WebHelp. But I would like to control what topics in the TOC show up based on a parameter. Is that possible?
Hi there
Unfortunately RoboHelp makes no provision for that. About the only way you could make it happen would be to create as many permutations as you need. For example, let's say you need six different TOC layouts. You would need to create six different WebHelp outputs and store each output in a separate folder. Each of the TOCs would be different. You would then link to the desired WebHelp output.
There is another way you might accomplish it. You could create multiple projects and gather them together using a Merged setup. You could then control what appears in the TOC by restricting access to the folders where the Merged Projects are placed. If the master TOC cannot find the folder for a Child, it will not display the Books and Pages for the Child.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Packages - Procedures/Function Parameters
Anyone know if you can change the way Parameteres are shown when you call a package. It shows on the intelisense line by line for each parameter as apposed to one line showing all parameters? Is there a option to change this?
eg
begin
package. -- intelisense shows line for line each parameter of the proc/fuction you call.
end;
Message was edited by:
DanyZiftThere is no option to change this yet. Please log this on the Exchange as a request, as we plan to provide more customizable formatting and code insight ad completion with the next release.
Sue -
Can't receive variables from HTML to Flash in AS3 passed via URL (not Flashvars)
hey all,
can't seem to get AS3 to recognize variables passed via URL
(not Flashvars). i can get vars passed with Flashvars in the
javascript but I don't want to use that method. i'm simply
extending the .swf call with .swf?var=123 in the embed and on the
AS3 side i'm calling loaderInfo.parameters.var
thought this would work but doesn't. what am i doing wrong?
HTML:
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="1024" height="768" id="main" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="main.swf?var=123"
/><param name="quality" value="best" /><param
name="bgcolor" value="#ffffff" /> <embed
src="main.swf?var=123" quality="best" bgcolor="#ffffff"
width="1024" height="768" name="main" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash" pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>
AS:
t = new TextField();
t.text = String(loaderInfo.parameters.var);
thx in adv.
michaelappreciate you were going for brevity, but i think the
answer's going to be hidden either in your complete html code or
your complete AS code. without seeing this i can only keep
guessing.
that said, my latest guess is that you're not passing your
variable within the AC_FL_RunContent function. there are two
properties set in this function - src and movie, which contain your
movie name, to which you can add any parameters you wish to pass.
eg.
'src', 'main?var=123',
'movie', 'main?var=123',
where main is the name of your swf and var the name of the
parameter you wish to pass.
if this function fails - if javascript isn't available in the
browser, for example, or AC_RunActiveContent.js is missing, then
the <object> tag you described is used. (this object tag is
sitting inside a <noscript> tag.) -
Pass parameters via POST in WDPortalNavigation.navigateAbsolute method
Hi,
how can i pass parameters via POST method from WD Application using WDPortalNavigation.navigateAbsolute method
Should i pass the parameters as part of the NavigationTarget URL or they should be passed via different parameter?
Thanks,
Yuly RobermanWhat is the procedure to pass parameters via POST using WebDynpro ?
I am required to pass XML Data via POST.
I have gone through the following :
a) http://help.sap.com/saphelp_nw04/helpdata/en/9e/a073001903c9419592b14c2aa63669/content.htm
b) Inter Navigation Application in Web Dynpro
However, I could not find any reference to do the same via POST.
Can anyone throw light on the same ?
Best Regards,
Subramanian V. -
When I'm running the Sample Parameter
passing Portlet comming with the PDK
I'always get the following error message:
PORTAL30.wwpob_page.render_portlet_screen: SIGNATURE (parameter
names) MISMATCH
VARIABLES IN FORM NOT IN PROCEDURE: P_MY_NAME_IS
NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
I havent got any Idea what's going wrong everything else
sems to work, but as soon as I'm passing parameters via the
URL Portal complains about mismatching parameter names.
So I'would be very pleased if someone could give me
a hint, what I am doing wrong.
Thanks Alexwhat type of pdk are you using (java, pl/sql, etc.)?
-
Passing Parameters via Post Method from Webdynpro Java to a web application
Hello Experts,
I want to pass few parameters from a web dynpro application to an external web application.
In order to achieve this, I am referring to the below thread:
HTTP Post
As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
I am using SAP NetWeaver Developer Studio Version: 7.01.00
Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
Thanks & Regards,
AnuragHi,
This is purely a java approach, even you can try this for your requirement.
There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
If it is Asynchronous means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
here you go and find the way to implement Asynchronous scenario,
http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
Thanks & Regards
Rajesh A -
How To Pass Multiple Parameters In URL with Report Builder
Hi,
I use apex 4.2 with database xe 11g and i use report builder to build my report i use this link to call report
function runrep(){
var vurl = 'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF¶mform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO');
popupURL(vurl);
now i want to pass Multiple Parameters like P138_ITEM_CODE , P138_UOM_CODE
how can i add this Parameters in URL ?
Regards
AhmedRamani_vadakadu wrote:
window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
the above code we are using apex JS to BI publisher calling for report as PDF
i don't know exactly where your parameters , did you customize my link to multiple parameters
'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF¶mform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); -
Open a particular Order in Web UI by passing parameters to URL
Hi Friends,
Previously we worked in CRM 5.0, where in the PCUI application, we passed the extra parameters to the URL as CRM_OBJECT_ID = GUID to open a particular order.
For Example:
https://dev1crm.ra.rockwell.com:18020/sap(bD1lbiZjPTIwMCZkPW1pbg==)/bc/bsp/sap/crm_bsp_frame/entrypoint.do?appl=ZCRMD_BUS2000115_V1&blview=ZAK_165&analyze=X&crm_object_id=47A28A2DB2A635C3E100000082974C14.
Now we have upgraded the system and working on CRM 7.0. How to implement the same functionality in Web UI?
In Web UI, we tried with changing some parameters of the url but it didnt help. To display the Business directly, we
changed the url as
https://dev1crm.ra.rockwell.com:18020/sap(bD1lbiZjPTIwMCZkPW1pbg==)/crm_logon/default.htm?saprole=ZM2Q_MKT
and it works fine. It properly opens the role ZM2Q_MKT without showing me the initial screen.
So, my question is how to open a particular Order directly on the Web UI screen by passing the parameters to the URL.
Regards,
RajuHi.
The link in your case should be for quotation...
https://dev1crm.ra.rockwell.com:18020/sap(bD1lbiZjPTIwMCZkPW1pbg==)/crm_logon/default.htm?crm-object-type=BT115QH_SLSQ&sap-system-login-basic_auth=X&sap-syscmdcrm-object-value=47A28A2DB2A635C3E100000082974C14
And for order....
https://dev1crm.ra.rockwell.com:18020/sap(bD1lbiZjPTIwMCZkPW1pbg==)/crm_logon/default.htm?crm-object-type=BT115H_SLSO&sap-system-login-basic_auth=X&sap-syscmdcrm-object-value=47A28A2DB2A635C3E100000082974C14
Regards. -
Call WoC View via URL with parameters
Hi,
I'm already able to call a particular WoC view via URL by passing the app.component and app.inport parameters.
Is there also any way to pass specific filter values, e.g. a customer id?
Thank You!Hi Dennis,
yes, you can pass the parameter of the Inport as well.
An example is the Sales order QAF for 'New Sales Order' which has an inport ContactIDWriteBackIn. This inport allows passing an parameter called ID which is then mapped to the Contact ID of the UI.
The corresponding call is:
https://....?app.component=/SAP_BYD_APPLICATION_UI/crm/soc/salesorderqafeco.QA.uicomponent&rootWindow=X&redirectUrl=%2fsap%2fbyd%2fruntime&&sap-client=004&sap-language=EN&app.inport=ContactIDWriteBackIn¶m.ID=1000450
I hope this helps,
Thomas
Maybe you are looking for
-
Send mail with link that will open in new window.
hi, i wrote a send mail class which sends a link with text/plain. i want to open the link in a new page when the user clicks on it. i don't want to use html, only text/plain. can any one help?
-
Web Service Response Format (1.4 JAX/RPC)
Hi, i have built a WS using a JDeveloper wizard to create a Java (1.4 JAX/RPC)Web Service. The problem is i need to be very specific about the format of the response. A typical response would be something like <env:Envelope xmlns:env="http://schemas.
-
Action "Apply Assigned Imaging Bundle"
Version: 11.3.1 I need to run action "Apply Assigned Imaging Bundle" against several devices, is it possible to run this action against a device group? This option is greyed out, but just wanted to know if this can be done via a script or any other w
-
Small Application for Beginners
I am new to the world of coldfusion and taking training since 2 months..... I have gone through macromedia live documentation My problem is that when i see the code i understand the flow very easily .. But i am not able develop the logic.. can anybod
-
My life before SAP... and now
Hello, dear fellow consultants, during last few weeks I have answered few threads and personal emails about how to start with SAP, how to become that dark and mysterious SAP consultant and started thinking about that a lot. I have written an article