Hw to pass parameter from report to forms
Dear Friends,
I m working on Forms n Reports 6i,
I m running report n passing parameter from the forms now the requirement is that if report run successfully it shuld give the msg otherwise give an user define error msg.
Hw do i pass any parameter from report to form for acknowledgment.
Thanking yours
Chandan
Hi Rajat,
using run_product built in i can pass parameter from forms to reports but hw can i get some parameter value from reports to forms as mentioned earlier my post
Thanking Yours,
Chandan
Similar Messages
-
How can I pass parameter from report to form?
Hi :)
Now I try to build conference room like this by using form
and report. And i design that when users click at group report
then i'll show page that contain questions report and add
question form. And question form and report must receive the
same parameter from group report.
First Problem: is I don't know how group report send the
same parameter to question report and add question report at the
same time. And is it possible??? If not please suggest me what
should I do???
Second Problem: is I don't know how can I pass parameter from
report to form. I don't know the way to do it.
Please tell me!!! Please...
I look forward to hearing from all of you.
Thank You.One way is to create a link based on that form and attach that
link with the report. Through links you can pass parameters -
Passing parameter from reports to form - Urgent
Hi ,
I am calling a report (2.5) from a form using RUN_PRODUCT. I would like to know if there is any way to do the following.
(a) Return a value from reports to calling form. For ex. I would like to know the last Item name (assuming the reports prints all items in inventory) printed. I am sending a from and to numbers of item id's (range) and I need to know the last item printed.
(b). Check the success of report. For example, while printing the 5 items (the range that I passed) if there is any error in printing , this should be tracked either in the form or report. If this is not possible using run_product , If I need to use srw package, how to use it. Can I call the report as usual with run_product and in the after parameter trigger can, I call the report again and track error.
Any help will be appreciated.
ThanksYou have to explain what you want.
Why would you want to start the Forms Builder (Design time tool) from a JSP page? It's about the same as starting JDeveloper or Eclipse from a JSP page. -
Passing Parameter from report to form
I have a report, link, and form developed. They all work just fine execpt that when the form comes up it is not linked to he record that it was called from. I have read the links on passing parameters and still do not understand what I have to do.
Here is the basic scenario. I have a report that is a list of account codes for a project. There is a link from the account code to the acount code form where the user can change the status (active/inactive) of the account for a project. If the user clicks on the link for account 1000 thenI would expect that the form opens with account 1000 in update mode.
How do I do it. It seems a very simple concept. What am I missing?
Jerry
[email protected]I am obviously missing something. In editing the link, I have a user parameter of atab. This is the column that is linked in the report. What do I use as the default value. Does it make a difference if the table does or does not have an index on the atab? The PK is an ID.
Please help
Jerry -
Passing parameter from report to form on the sam page
i would like to make a portal page with 2 portlets. on the left side a report displaying for example all names and empno4s from the emp table and on the rigth side a form portlet that displays the details of one employee and allows to update the details.
clausI am obviously missing something. In editing the link, I have a user parameter of atab. This is the column that is linked in the report. What do I use as the default value. Does it make a difference if the table does or does not have an index on the atab? The PK is an ID.
Please help
Jerry -
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
-
Problem while passing parameter from report to report.
Hi
I'm using forms and reports 10g, hava a problem while passing the parameter from reports to report.
i'm using srw.set_hyperlink to call report from report.
i have created a key value in the cgicmd.dat file called
faccre802005-2006: report=faccre80 destype=cache desformat=pdf userid=<userid/passwd@cs> server=<servername>
Now in the format trigger i'm using this key value
function BTN_DEBITFormatTrigger return boolean is
temp varchar2(5000);
IP_ADDRESS VARCHAR2(50);
SERVER_NAME VARCHAR2(10);
L_ACCT_CODE VARCHAR2(14);
begin
SELECT MAST_INT_DESC,MAST_USER_PGM_ID INTO IP_ADDRESS,SERVER_NAME FROM MAST_INT_INFO WHERE MAST_INT_ID='VISHWA';
temp := IP_ADDRESS||'?faccre80'||:P_FIN_YEAR||'+server='||server_name;
temp :=temp ||'+'||'P_PREVIOUS_CODE='''||:ACCT_CODE||''''||'+'||'P_COMPANY_CODE='''||:P_COMPANY_CODE||'''';
temp :=temp ||'+'|| 'P_FROM_DATE='''||TO_CHAR(:P_FROM_DATE,'DD-MON-RRRR')||''''||'+'|| 'P_TO_DATE='''||TO_CHAR(:P_TO_DATE,'DD-MON-RRRR')||''''||'+'||'P_TRUST_CODE='''|| :P_TRUST_CODE||'''';
temp :=temp ||'+'|| 'P_UNIT_CODE='''||:P_UNIT_CODE||''''||'+'||' P_FIN_YEAR='''||:P_FIN_YEAR||'''';
temp :=temp ||'+'|| 'P_LEVEL='''||:P_LEVEL||''''||'+'||'P_HEADER='''||replace(:P_HEADER,' ','%20')||''''||'+'||'P_FORMAT='''||:P_FORMAT||'''';
SRW.Set_Hyperlink(temp);
END;
return (TRUE);
end;
Report is coming but not the expected result because parmaeters are not coming from first report to second report.
If i dont use cgicmd file userid and password are displyed in the URL.
Pl tell me how to pass parameter from one report to another.
thanks and regardsHi
I got the solution.
I forgot to add %* at end of the KEY value. -
Pass non-database parameter from report to form
(Portal 3.0.9) In short, how do I pass a non-database parameter into a form?
I am calling a single form from multiple reports. On successful submission of the form, I want to return to the calling report. I have built the dynamic "go" statement in the success submission portion of the form:
declare
return_to_report varchar2(30);
begin
return_to_report := p_session.get_value_as_varchar2(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_CALLING_REPORT');
go('<portal_schema>.'||return_to_report||'.show');
end;
The problem is that I'm unable to populate the "calling_report" field in my form since it is non-database and does not appear in the list of available variables in my link.
Also, it would be better to pass the value (report name) in a session parameter or global variable so that it is not tied to a specific record in the form, but I cannot find documentation for help.Hey,
You could also create your own link in the SQL statement.
SELECT
display_link_update(asset_seq) as Update_Record,
column2,
column3,
from table
display_link_update is the function call and I'm passing one variable, asset_seq. Now the function can do the link creation and pass the link back to be displayed on the report.
CREATE OR REPLACE FUNCTION "PROPERTY"."DISPLAY_LINK_UPDATE"
(asset_seq1 in varchar2) return varchar2 is tag varchar2(4000);
begin
tag:='Update Link';
return tag;
end;
I need to check out session variables. Do a Google search, there should be a few items about it. I'll look into in a few days beacuse I should learn this myself.
Tom -
Pass parameter from report to report generates error
I am new to Portal. Please help me with this one.
I created two reports using report wizard. Report A lists termination infor group by leaving reasons. Report A takes two parameters: p_termination_date_from, p_termination_date_to.
When Report A is returned, user is supposed to be able to click on termination reason and go to report B, which has more detail of who is terminated under that reason. Report B takes three parameters:
p_Leaving_reason,
p_termination_date_from,
p_termination_date_to.
All these three are passed from Report A.
I use link to pass p_leaving_reason, but not able to use link to pass termination dates. So I use "a href= ..." to pass termination dates in Report A. The report is created without error. But when I run it, it gives me the following error:
Error: Unable to perform query (WWV-10202)
ORA-01858: a non-numeric character was found where a numeric was expected (WWV-11230)
Here is my Report A Statement:
===========================================
select a.LEAVING_REASON, a.meaning, count(distinct(a.EMPLOYEE_NUMBER)) people
from tableA a
WHERE
a.ACTUAL_TERMINATION_DATE >= ''||:P_TERMINATION_DATE_FROM||''
AND
a.ACTUAL_TERMINATION_DATE <= '<a
href="report_b?p_arg_names=P_TERMINATION_DATE_TO&p_arg_values='||:P_TERMINATION_DATE_TO||'">'||:P_TERMINATION_DATE_TO||'</a>'
GROUP BY a.LEAVING_REASON, a.MEANING;
And Report B select statement:
================================
Select * from tableB b
where b.termination_date>=:p_termination_date_from
and
b.termination_date<=:p_termination_date_to;
I appreciate your help.Update:
Now I put a to_char in front of a.actual_termination_date, it does not give me that error any more. But it doesn't return any row.
Looks like it ignores the value I put in the parameter form. Please help. thank you.
Here is the updated statement for report A:
==============================================
select a.LEAVING_REASON, a.meaning, count(distinct(a.EMPLOYEE_NUMBER)) people
from tableA a
WHERE
to_char(a.ACTUAL_TERMINATION_DATE, 'dd-mon-yyyy') >= ''||:P_TERMINATION_DATE_FROM||''
AND
to_char(a.ACTUAL_TERMINATION_DATE, 'dd-mon-yyyy') <= '<a
href="report_b?p_arg_names=P_TERMINATION_DATE_TO&p_arg_values='||:P_TERMINATION_DATE_TO||'">'||:P_TERMINATION_DATE_TO||'</a>'
GROUP BY a.LEAVING_REASON, a.MEANING; -
Passing parameter from asp to forms
Hi
is it possible to pass a parameter (eg.account no) from a URL to a form developed in oracle9i DS
I am planning to call a URL from my asp and the URL i am using for the call is like
http://servername:port/forms90/f90servlet/form=stmt
in my 'stmt' form, I query the records based on account no. I do not want to re-enter the account no again once the form is displayed.
Is it possible? if possible how to define the variable in the form.
Please help.
thanks
sreekumarHi
You have posted the question on wrong discussion form. This is Reports specific form. I suggest you repost the question on Forms related discussion form and it will help you get the answer quickly.
Thanks
Rohit -
How to pass value from report to form?
Dear,
I built a report and I create button on report too. This
button will show a form that I want it to automatically show
receivable values from report so that user don't complete them.
So I create a button on the report . I enter Javascript in
PL/SQL Code tab in '...after displaying the footer' as follow :
htp.formOpen
(owa_util.get_owa_service_path||'portal30.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1736929105&p_arg_names=_show_h
eader&p_arg_values=YES&p_arg_names=GNO&p_arg_values=1&p_arg_names
=QNO&p_arg_values=2');
htp.formSubmit(null,'New Answer');
htp.formClose;
GNO , QNO is value which I want to pass
As you can see, the above code can pass only static value.
But I want to pass values that is the condition of this report.
I mean,such as, this report show data that gno=1 and qno=2 and I
want to pass these values to form. So both value will appear in
gno and qno field.
So please tell me what should I do. Please help me. I don't
know how to do it. I look forward to hearing from all of you.
Please!!!!!! Don't hesitate to answer.
Thank you very much
Sirin KittichotpanichHi Marc,
Yes, you have it correct in what I am trying to do and if I put a default value in the hidden item on page 2 and run it then that works fine. I just can't get the value from the form passed to page 2 for some reason. There are actually 22 items on the form that can be filtered but just using COREID for simplicity. When I run the form I am just entering a value in the COREID field to try and return those records. Most of the other items on the form are displayed as Popup LOV(fetches first row). Would the values of all these be done the same in a comma delimited list for the items and values? I was trying to get at least one of them working first. Here is the search result that comes up in the debug window:
Search Results
0.01: Item: P2_COREID HIDDEN
0.01: show report
0.02: determine column headings
0.02: parse query as: MOTEAMSAPEX
0.02: binding: ":P2_COREID"="P2_COREID" value=""
0.02: print column headings
0.02: rows loop: 15 row(s)
No data found.
Here is the SQL statement:
select coreid, serialnumber
from MOTEAMS.V_ASSETS where
instr(UPPER("COREID"), UPPER(:P2_COREID)) > 0
The branch settings are:
Set these items: P2_COREID
With these values: &P1_COREID (also tried this with period at the end)
I am new to this and not familiar with apex.oracle.com. How would I go about posting to that site?
Thanks,
Pam -
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 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 -
Passing variables from Report to Form
Hi, I need pass a couple of variables from the REPORT to two fields in the FORM for save in a table. Somebody knows how do I do this?. Any suggestions?
Thanks a lot!
I think that this situation is different that pass variables from FORM to REPORT.You need to use a Link component to your Form that you then attach to one of the data columns in the Report. When you edit the link in the report, you can specify the fields to pass.
-
Pass parameter to report paramater form from a form
I defined parameter in a form. I am trying to pass the parameters to a report's parameter form. Is there any way to accomplish this?
Thank you!Maybe this example will help. This can be added in a when button pressed event to run the report.
DECLARE
pl_id ParamList;
subheader varchar2(1000);
BEGIN
** Check to see if the 'tmpdata' parameter list exists.
pl_id := Get_Parameter_List('tmpdata');
** If it does, then delete it before we create it again in
** case it contains parameters that are not useful for our
** purposes here.
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
** Create the 'tmpdata' parameter list afresh.
pl_id := Create_Parameter_List('tmpdata');
** Add 1 data parameters to this parameter list
*/ -- subheader is a parameter created in Oracle Reports
subheader := :variable.txt_message_yes;
Add_Parameter(pl_id,'SUBTITLE',TEXT_PARAMETER,subheader );
**Pass a Parameter into PARAMFORM so that a parameter dialog will not appear
**for the parameters being passing in.
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
** Run the report synchronously, passing the parameter list
*/ -- ABC is the report name
Run_Product(REPORTS, 'ABC', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
END;
null
Maybe you are looking for
-
Hi Friends, I ran a load yesterday for Datasource 0HR_PT_3, it went fine, today i wanted to load for specific time, so i wanted to check how many records would i get. In rsa3 i am trying to run for that period, strangely i am getting an error "Infoty
-
I'm 51 years old and recently retired. I have a new IPad Air. Which MacBook should I buy to go with it? I don't understand flash storage. It feels like I would have a bunch of flash drives to keep up with. Help an old lady out!!!
-
Dear experts, I have a requirement to enhance the process of importing transport request, as which whenever the transport request is imported into the target system... the creator of the transport request should be notified... Is there any user exit,
-
Why start up time of Perl 6 scripts is so long?
I've installed Perl 6 with MoarVM backend and observe that when starting even most basic scripts, it takes several seconds (about 3 or 4) before the script begins to execute. Is such a long startup normal for Perl 6 or this is just beta/test version
-
EJB; Drawbacks of local interfaces?
Hi, Would be appreciated if some body could tell me what are the drawbacks of local interfaces? Thanks