Passing parameters from URL to Forms 9i
Hi,
Can anyone tell me how I can pass a user-defined parameter into an Oracle 9i form running within a browser? I have tried passing it in the URL, by itself and as 'otherparms' parameter (otherparms=parm1=xxxx), but it does not seem to work. The documentation has no mention on how to do this (at least that I have seen). I'm sure there is a simple, obvious way to do this that I have completely missed!
Anthony,
it work the way you say it. The problem may be because you are running Oracle9iAS on Windows2000. There is a bug in accepting parameters passed in the request URL, requiring you to apply patch 1 (see metalink for patch 2705870).
If you are on iDS then this should work. So let me knwo if this problem occurs on iDS or iAS
Frank
Similar Messages
-
Passing parameters from URL to multiple iViews on a page.
Hi Everyone,
Could you please point me to a guide or howto, which explains on passing parameters from URL to multiple iViews on a page. I already know how to pass parameters from URL to a single iView (wiki).
Thanks!
IndyHi Indy,
Currently, passing parameters to the page which contains VC iViews is not supported, only directly in the iView's URL.
Regards,
Natty -
Passing parameters from REPORTS to FORMS.
Hi,
Could anyone help my on this, I'm trying to pass parameters from reports to forms is it possible? could anyone give me an idea how do I have to proceed.
thank youk,
binohttp://technet.oracle.com:89/ubb/Forum4/HTML/009647.html
-
Extracting parameters from URL for forms 6i
Is there a way to get the portal logged in user
in a 9ias forms 6i web form. Also if I pass user-defined
parameters through a link to forms 6i is there a way
I can extract these parameters from the URL and get
forms 6i to read them?
Any ideas will be greatly appreciated.
Thanks,
SuzanneHi Suzanne,
all that you need to do is parse the url string
It is made up of:
?[Parameter Name]=[Parameter]
&[Parameter Name]=[Parameter]
&[Parameter Name]=[Parameter]
&[Parameter Name]=[Parameter]
I have some code that converts a url string into a form and then submits the form.
you could use this as a base to work from.
Regards Michael
CREATE OR REPLACE PROCEDURE FORWARD_TO_URL_P (P_URL IN VARCHAR2) IS
vParameter VARCHAR2(4000);
vValue VARCHAR2(4000);
vProcedure VARCHAR2(1000);
vString VARCHAR2(4000);
vLength NUMBER(10);
vQ VARCHAR2(4) := '?';
vE VARCHAR2(4) := '=';
vA VARCHAR2(4) := '&';
BEGIN
htp.p('<HTML><HEAD><TITLE>ASP 3</TITLE>');
htp.p('<META HTTP-EQUIV="PRAGMA" CONTENT="No-Cache"></HEAD><BODY bgcolor="#f1f1f1">');
vString := p_url;
IF INSTR(vString, vQ) > 0 THEN
vProcedure := SUBSTR(vString, 1, INSTR(vString, vQ) - 1);
vString := SUBSTR(vString, INSTR(vString, vQ) + vLength);
ELSE
vProcedure := vString;
END IF;
vQ := vA;
htp.p('<FORM METHOD=POST action="' || vProcedure || '">');
WHILE NVL(INSTR(vString, vE), 0) > 0 LOOP
vParameter := SUBSTR(vString, 1, INSTR(vString, vE) - 1);
vString := SUBSTR(vString, INSTR(vString, vE));
IF INSTR(vString, vE) = INSTR(vString, vE, -1, 1) THEN
vValue := SUBSTR(vString,vLength+1);
vString := '';
ELSE
vString := SUBSTR(vString,vLength+1);
vValue := SUBSTR(vString, 1, INSTR(vString, vQ) - 1);
vString := SUBSTR(vString, INSTR(vString, vQ) + vLength);
END IF;
htp.p('<INPUT TYPE=hidden name="' || vParameter || '" Value="' || vValue || '">');
END LOOP;
htp.p('</FORM>');
htp.p('<SCRIPT>');
htp.p('document.forms[0].submit();');
htp.p('</SCRIPT>');
htp.p('</BODY></HTML>');
END; -
Passing parameters from report to form portlet
I am trying to link data in a report to a form. Here's the gist: I click on a record in the report and the data is passed to a form in update mode. The problem is that when I click on the record the data is not passed right away to the form. Only after clicking the record again or refreshing the page does the data get passed. Any ideas? I'm sure it's something very simple that I'm missing. Here's the code below:
report code:
select 'http://jvic9/pls/portal30/portal30.empcust.set_context_refresh?p_context=EMPNO&p_context_value='||empno||'&p_page=reportform">'||empno||'' empno_link, empno, ename, job, mgr, hiredate, sal, comm, deptno
from scott.emp
set_context_refresh procedure:
procedure set_context_refresh
p_context in varchar2,
p_context_value in varchar2,
p_page in varchar2)
is
v_Session portal30.wwsto_api_session;
begin
v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
v_Session.set_attribute(p_context, p_context_value);
v_Session.save_session;
owa_util.redirect_url('http://jvic9/pls/portal30/url/page/'||p_page); end set_context_refresh;
form code:
/* ... before displaying the page section */
portal30.empcust.autoquery_emp_form(p_session);
autoquery_emp_form procedure:
procedure autoquery_emp_form
p_session in out portal30.wwa_api_module_session
is
v_RowID varchar2(100);
v_Session portal30.wwsto_api_session;
v_empno varchar2(40);
begin
v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
v_empno := v_Session.get_attribute_as_varchar2('EMPNO');
begin
select rowidtochar(rowid) into v_rowid
from scott.emp
where empno = v_empno;
end;
p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_CALLED_FROM_LINK',p_value=>'ROWID');
p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_ROWID',p_value=>v_rowid);
portal30.wwa_api_module_event.do_event('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
p_session.save_session;
end autoquery_emp_form;Your code seems to be OK.
The problem of the data not appearing when you do the query manually (i.e through an API call), is a bug and has been fixed in patch 3.0.9.8.3. -
Passing parameters from HTML to forms 9i
I am currently trying to design an application which is called from the web but the application is on forms 9i.
Once the URL is called the user id needs to be entered and then this needs to be passed on to the main form . As I understand it this user id needs to be passed form HTML into the first form on 9i.
Can anyone help me with the way this can be done
Thanks in anticipation
SurojeetThanks for all your replies but I still am not sure. Let me expain my problem in a little detail. I have an apps server which connects to the database using an user id and password. This is what is defined in the formsweb.config.
However the users are given non database userids which are authenticated before they connect to the main form. I need to pass this user id to the main form as i use this user id to write into audit columns , the user id password entered in formsweb.config is fine but the one i am looking for is something that I authenticate with before calling the main form which is not the database userid.
All in all when i enter a user id and password on a webpage and click a button when the url to call the mai n form start working as it has the label associated with the .fmx and defined in the formsweb.config and calls the main form so I need to pass that user id to the main form????
Does this give a better idea of my problem???
Many thanks in anticipation
Surojeet -
Passing parameters from report to form
Hello,
I have a report based on a View with all the details of only one record. I whant to link this report with a form in insert mode, passing some of the fields as parameters.
Anyone konws how to do it?Jan,
Thanks for the succinct reply! I've been trying to 2 days to solve this problem. Whew!
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jan Willem Vermeer ([email protected]):
Unfortunately linking reports and forms in insert mode is not completely tackled in the faq.
For a long time Oracle Customer Support and I were not able to get the form in insert-mode. My forms kept on appearing in query-mode, so when I passed values from the report to the form, the form queried records based on the parameters passed through from the report. While I wanted these parameters filled in as default values.
The solution is almost too easy to imagine. When you define the link-parameters in the report definition, you should leave the EQUAL-sign blank. On metalink you can read TAR 1258704.996 and bug 1696340 for more info.<HR></BLOCKQUOTE>
null -
Hi,
I have a got a URL like http://<Machine Name>/dev60cgi/ifcgi60.exe?form=Test&P1=1 to access a web form.
I need to access the value of P1 as a parameter in When-New-Form-Instance Trigger of my Test form. Is there any way I can do that.
Awaiting early reply.
Regards.You can use the otherParams= url argument. I think that some examples of this have been given on the forum before - run a search
-
Passing parameter from url to procedure
i used to pass parameters from url to procedure like
host:port/dads/schema.procedure(para_1, para_2, ...)
for example
http://localhost:7777/pls/login('UK',1,0)
they have been working perfectly before, when i had 8i and webdb.
but now i'm running 10g, and browser returns error page 400 when i click the above links.
i know i can do
host:port/dads/schema.procedure?para_1=value1¶2=value2...
for example
http://localhost:7777/pls/login?language=UK§ion=1&timezone=0
and this is what have been suggested in documentation of 9i and 10g
however i have quite a few webpages written in the former syntax and they used to work with 8i and 9i.
i don't want to change all the links in web pages, i prefer to stick with old style.
any one has any idea? is there a switch i should take care of? i checked apache conf files (httpd, mod_plsql, dads) but didn't get it.
ps for 10g companion, i installed http server (apache) only, no html db.
another question is
with brackets() in url, strings are to be quoted by ' ', but with question mark (?), single quote ' ' must not be used, is that what it has to be?
Thanks a lotanyone have been using this?
http://host:port/dads/schema.procedure(para1,para2,..) -
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 -
Passing parameters from a browser URL to Flash
Flash CS3, AS3
Is there any way to pass parameters from the URL line in a
web browser to actionscript?
ie. so if you had something like the following URL link in
the browser...
http://www.somedomain.com/someswf.swf?var1=10&var2=false
...it would pass var1 and var2 to someswf.swf.
(Hypothetically, of course - I'm unsure as to the necessary syntax)
Is this possible? Or would I need some intermediary software?
Thanks
Ricki answered a very similar forum query a few days ago
here
You need to look into loaderInfo.parameters. -
Passing parameters from an URL to a WAD Web Template 7.0
Hi guys, I need to pass parameters from an URL to a web template created with WAD 7.0. We need to open a template with certain filters starting from a link button located on an Xcelsius Dashboard. Our customer wants a web template to be opened with the filters defined within the Xcelsius
The idea is to run the template with the filters defined in the URL. I know this was incredibly easy with WAD 3.x, but I didn't find any suitable solutions to use with WAD 7.0.
What is the easiest way to do this with WAD 7.0?
Thanks in advance and regards.
Fabio CristiHi,
It is possible in 7.0, but unfortunately it is a lot more complicated than i 3.x. There are quite a few examples here:
http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/content.htm
I used it in a case where I wanted to embed a Web template in a BPS application and pass characteristic filters from the BPS application to the web template - similar to your requirements. Basically you need the following just to restrict one characteristic :o(
&BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE
&BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1
&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1=SELECTION_INPUT_STRING
&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=PDS06
&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=0D_PH2
I could only get it to work with one characteristic and I suspect, that the reason is that the URL simply gets to long (very quickly). You have to repeat the above for every characterstic you want to use :o(
Hth,
Jacob -
Passing parameters from one form to another
Hi,
I'm trying to pass parameters from 1 form to another. I would be able to call the form, but the parameters are not passed to the calling form. I do not know what's the problem. Basically, the 2nd form shows up with blank values in all the fields. Below is my code. Anybody expert in this, pl. help.
By the way my 1st form is based on PROCEDURE.
declare
s_requestor number(10);
s_customer_impact varchar2(4000);
s_creation_date date;
l_url varchar2(4000);
blk varchar2(10) := 'DEFAULT';
begin
p_session.set_value(
p_block_name => blk,
p_attribute_name => 'A_P_REQUESTOR',
p_value => 88888);
s_requestor := p_session.get_value_as_number
(p_block_name => blk,
p_attribute_name => 'A_P_REQUESTOR');
s_customer_impact := p_session.get_value_as_varchar2
(p_block_name => blk,
p_attribute_name => 'A_P_CUSTOMER_IMPACT');
s_creation_date := p_session.get_value_as_date
(p_block_name => blk,
p_attribute_name => 'A_P_CREATION_DATE');
l_url:=('/pls/portal/PORTAL.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1794837934&
p_arg_names=_show_header&p_arg_values=YES&
p_arg_names=REQUESTOR&p_arg_values='||s_requestor||'&
p_arg_names=CREATION_DATE&p_arg_values='||s_creation_date||'&
p_arg_names=CUSTOMER_IMPACT&p_arg_values='||s_customer_impact);
PORTAL.wwa_app_module.set_target(l_url);
end;the way to call one form from another and pass values for parameters from the procedure is like this:
PORTAL.wwa_app_module.link (
p_arg_names => PORTAL.wwv_standard_util.string_to_table2('_moduleid:_show_header:REQUESTOR:CREATION_DATE'),
p_arg_values => PORTAL.wwv_standard_util.string_to_table2('1191314879:YES:'||s_requestor||':'||s_creation_date));
and so on.
Hope it works for you -
Passing parameters from FORM to REPORT
Hello All,
How to pass parameters from a FORM to a REPORT in Oracle Application Server Portal.Vamsi, Are u capturing the imputs for these parameters in the form??
If u are capturing them in the form, then u need to add them to a parameter list (TEXT_PARAMETER) and while calling the report u can send it as a parameter in the RUN_PRODUCT call.
Pls check the syntax for adding parameters and calling report from form in the form builder help. -
Passing Parameters from Forms to Discoverer
Hello Everybody,
Is there a way to pass parameters from Oracle Forms to discoverer 4??
I want to call Discoverer from a Form and pass parameters to a sheet.
ThanksHi,
I don't have 10g right now, so can't test it...
Isn't it possible to just put the params you won't show to your users 'behind' other objects on the param form?
Strange behaviour anyway, in 6i Reports does not seem to care wether the params are on the form or not.
Rgds,
Guido
Maybe you are looking for
-
Workspace Error with Large Financial Report Book
I have been having inconsistent issues getting certain FR books to run in Workspace with the only error I'm receiving being: +5200: Error executing query: EssbPROD/RE/RE/nholmes/Error(1042006) Network error [10048]: Unable to connect to [EssbPROD:142
-
Copying PO Number from SO Number to Billing Document
Hello, My requirement is that I need to copy the PO Number from Sales Order to the Billing document whenever there is a Return Order created. What would be the Copy routine number that I need to modify? Or do I need to create a new Routine and then u
-
How to create a Menu for PeopleSoft HRMS application program ?
Folks, Hello. I am developing PeopleSoft HRMS application program for a client. I have created 10 components. But I don't understand how to create a Menu on the left handside for users to access the components. The Menu's structure is as follows: Fol
-
For some (but only some) incoming Yahoo e-mails, Firefox does not show the text of the e-mail. I can see the text with the No Style page view. It also appears when I do a Reply. And, FYI, IE (both 8.0.7600.16385 and 8.0.6001.18702) have no problem wi
-
OBIEE queries related to licensing
1 . Is there any restriction on number of users sessions. i.e how many users can simultaneously access application from their browser. http://localhost:7001/analytics/saw.dll?bieehome 2. In enterprise edition is user allowed to do some customization