How to pass parameter from 1 stored procedure to another stored procedure inside crystal report
Hi
I have several stored procedure in my Crystal Report. I am wondering if it is possible for me to pass a parameter to one of the stored procedure and to use the result of that stored procedure E.g. CustomerCode. To another 2 stored procedure to generate the report dynamically?
I have 3 stored procedure
The 1st one is used to gather information and process the calculation
another 2 stored procedure is used for generate the graph and both of them required to take 2 parameters. The 1st stored procedure will require 1 parameter (E.G. Reference Code) and will return a set of information including the data that could be use on the other 2 stored procedures.
After I added these 2 stored procedure, it requires me to pass 3 parameters to the report. I would like to know if I could only pass the Reference Code for stored procedure 1 and use it to retrieve the information for the other 2 parameter?
Thanks in advance
Chi
Hi Chi
To pass parameter from 1 stored procedure to another stored procedure, you will have to create sub report. In your case you will have to create 2 sub reports for 2nd and 3rd stored procedure and link those sub reports with the main report using Reference Code field in order to pass the values.
After creating the report when you will refresh the report, it will ask 4 parameters, one parameter for main report, one for the first subreport and two for second subreport to fetch the data correctly.
Regards
Poonam Thorat.
Similar Messages
-
How to pass parameter from one form to another
Hi,
I have created a form based on a procedure . Now i want to pass a filed value from this form to another form . How can i do this.
How can i pass a vlue from one form to another form in oracle portal.
ThanksAt last - I've managed to get this to work! Is this documented anywhere at all - I just guessed it based on other people's code!
OK, to prove the example here is what I did:
I have a form referencing the DEPT table.
I created a item called 'Search' and of type button.
I created a 'custom' PL/SQL block and added the following code:
declare
v_deptno NUMBER;
begin
v_deptno := p_session.get_value_as_NUMBER(
p_block_name=> 'DEFAULT',
p_attribute_name => 'A_DEPTNO');
PORTAL30.wwa_app_module.set_target('http://server/pls/portal30/app_schema_name.EXAMPLE_SQL_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values= 25&p_arg_names=_portal_max_rows&p_arg_values=25&p_arg_names=DEPTNO&p_arg_values='| |LTRIM(TO_CHAR(v_deptno)),'CALL');
end;
Note: you need to reference the column with an 'A_' prefixing the columm name.
I left the name 'DEFAULT' as it is.
OK so I set this to a variable and now want to call a Report called EXAMPLE_SQL_REPORT which was created with the following code:
select * from scott.emp where deptno = :deptno;
The bind variable being the custom parameter for the report.
I called the new report with the PORTAL30.wwa_app_module.set_target procedure and put in the full URL path (in this example) of the server and report.
I hope this helps!
John
null -
How to Pass Parameter from BIP to Dashboard Report
Hi,
Parameter from BIP to Dashboard Report
If I select BIP report paremeter should pass value to dashboard report
thanks in advance.
CHEERS ,
JelHi Saichand,
I hav gone through above link its passing values from Dashboard prompt to BIP report only..
just i need like reverse (if i click on BIP report value then it should pass that value to Dashboard reports) in this this case how to pass parameter from BIP to dashboard report
Thanks in advance
Cheers,
Jel -
OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.
How to pass variable from one prompt to another prompt in dashboard page.
I have two prompt in dashboard page as below.
Reporttype
prompt: values(Accounting, Operational) Note: values stored as
presentation variable and they are not coming from table.
Date prompt values (Account_date, Operation_date)
Note:values are coming from dim_date table.
Now the task is When user select First
Prompt value “Accounting” Then in the
second prompt should display only Accounting_dates , if user select “operational”
and it should display only operation_dates in second prompt.
In order to solve this issue I made the
first prompt “Reporttype” values(Accounting, Operational) as presentation
values (custom specific values) and default presentation value is accounting.
In second prompt Date are coming from
dim_date table and I selected Sql results as shown below.
SELECT case when '@{Reporttype}'='Accounting'
then "Dates (Receipts)"."Acct Year"
else "Dates (Receipts)"."Ops
Year" End FROM "Receipts"
Issue: Presentation variable value is not
changing in sql when user select “operation” and second prompt always shows
acct year in second prompt.
For testing pupose I kept this presentation
variable in text object of dashboard and values are changing there, but not in
second prompt sql.
Please suggest the solution.You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it. You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.
-
Not able to pass parameter from one fragment to another fragment in another taskFlow
Hi,
I'm trying to pass parameter from one fragment to another fragment and want to print the parameter value in second fragment.
i have inputtext in first frag---
first fragment belongs to one taskflow1 and this taskflow1 i had darg and drop to one mainPage.
Under taskflow1 itself i drag and drop one taskflow call activity and on top of that i drag and drop another bounded taskflow as taskflow2
under taskflow2 i have one fragment as fragment2and in that i have one outputtext field, now here i want to print the value from fragment1--inputtextfield value
to achive this i had tried many ways but somewhere doing mistake please explain step by step.
Thanks
MaheshIn addition you need to tell us your jdev version!
Can you elaborate on your use case a be more?
On which event this should happen?
In general contextual events should allow you to implement this, however, as I don't understand the use case, I find it hard to help.
Timo -
How to pass parameter from form6i to report6i
when i passed parameter from form6i to report6i, while previewing report the data was not displaying only fields heading was displaying, but in report6i there is a parameter form thru that it was displaying data, but thru form6i to report6i it was not. Please kindly help me and give me the some sample or example of it.
Thanks
Best regards
ZaheerADD_PARAMETER(pl_id,'P_SCRIPT',TEXT_PARAMETER,:b1.script);
-
Passing parameter from one LOV to another
How can I pass a parameter from one LOV to another so I can restrict the number of recoder of the lower LOV based on what the user have selected in the upper LOV..This is being constructed on the customized page of a report.
Thanks..If your using release 2, you may have a problem.
A combobox LOV can be used to link 2 LOV's but, the form they are on can't do a query, it fails to return any records. See bug 2141909.
A popup LOV can be used to do a query, BUT, there is a bug when you try to link 2 LOV's. See bug 2505560.
They are trying to do a backport, so submit a tar about it.
Larry -
How to pass parameter from FM to report without changing interface of FM
Hello experts,
How can I pass a table name from a FM to the report calling the FM, without changing the existing interface of the FM.
Thanks,
Ajay.Hi,
I f you want to pass any parameter from FM to Report or Vice-versa, parameter should me maintained in the FM otherwoise you can't pass any other than existing parameters.
Otherwise create a custom FM.
Regards,
Sunil -
How to pass parameter from unix to oracle
Hi all,
Kindly need your help regarding to this problem
for i in `ls *.dat*`
do
echo "File $i"
sqlplus -s $conn <<END
set echo off
set termout off
set feedback off
set verify off
set showmode off
set pagesize 0
set recsep off
spool file_$day
select nvl((select file_name from abc where file_name=$i),'Files Not Found') from dual;
spool off
exit
END
done
I need to pass parameter to the select statement but it failed. The error is
select nvl((select file_name from abc where file_name=),'Files Not Found') from dual
ERROR at line 1:
ORA-00936: missing expression
It seems like the parameter didnt passed to the query. Need everyone helps. Urgent!
Many thanks
TiiimI would have helped you had you not been abusive and called your request urgent. If it is truly urgent call an ambulance or the fire department or Oracle Support.
We are volunteers and your request is no more important, or urgent, than that of anyone else here.
An apology would be appropriate. -
How to handle the date attribute,passing parameter from one page to another
hi Friends,
i want to pass data attribute from one page to another page-
i am passing like below ,in jdev log window i am getting below error.
String StatusUpdateDate = row.getAttribute("StatusUpdateDate");
params.put("StatusUpdateDate",StatusUpdateDate)
Error(121,50): incompatible types; found: java.lang.Object, required: java.lang.String
Suppose i am passing like below , while moving one page to another i am getting below error in application
String StatusUpdateDate = row.getAttribute("StatusUpdateDate").toString()
Status Update Date - JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:26-MAR-2009
please can any suggest me how to handle this error.
Thanks and Regards,
vamshiHi Pratap, Thanks for your help
it was my mistake that previously property it was varchar2, now i have changed as you suggested every thing. still i am getting error. this is my code-
AM CODE-
public void xxselection(String Name, String Email,String Product,String Region, DATE StatusUpdateDate)
DetailVOImpl vo1=getDetailVO1();
vo1.initQuery2(Name);
Row detailRow = vo1.createRow();
detailRow.setAttribute("Name", Name);
detailRow.setAttribute("Email", Email);
detailRow.setAttribute("Product", Product);
detailRow.setAttribute("Region", Region);
detailRow.setAttribute("StatusUpdateDate", StatusUpdateDate);
vo1.last();
vo1.next();
vo1.insertRow(detailRow);
detailRow.setNewRowState(Row.STATUS_INITIALIZED);
Controller- Process Form Request- Source page
if (pageContext.getParameter("Detail")!= null)
String Name=row.getAttribute("Name").toString();
String Email=row.getAttribute("Email").toString();
String Product=row.getAttribute("Product").toString();
String Region=row.getAttribute("Region").toString();
DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
HashMap params =new HashMap();
params.put(" Name", Name);
params.put("Email",Email);
params.put("Product",Product);
params.put("Region",Region);
pageContext.putTransactionTransientValue("StatusUpdateDate",StatusUpdateDate); //As you suggested
pageContext.forwardImmediately("OA.jsp?page=/xxm/oracle/apps/pos/stg/webui/DetailStagePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
params,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
another page Controller-Process request-Destination page-
String Name = pageContext.getParameter("Name");
String Email = pageContext.getParameter(" Email");
String Product = pageContext.getParameter("Product");
String Region = pageContext.getParameter("Region");
DATE StatusUpdateDate=(DATE)pageContext.getTransactionTransientValue("StatusUpdateDate");
Timestamp tstmpStatusDate=StatusUpdateDate.timestampValue();
System.out.println("tstmpStatusDate"+tstmpStatusDate);
Serializable[] parameters1 = {Name,Email,Product,Region,tstmpStatusDate};
am.invokeMethod("xxselection", parameters1);
Error - getting at while running the application page to page
No method with signature - No method with signature - xxselection(class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String)
every thing is getting passed except DATE Attribute, please check the code and update me
Thanks in Advace-
vamshi -
How to Pass Variables from One Application to Another Pop Up Window
Hi,
I am wondering if anyone on the list has tried calling up a
pop up manager, and have two other variables imported for secondary
usage. I have tried using [Bindable], but this does not seem to be
working, and I am still getting errors that tells me that the
variables are "not defined" when it gets passed to another
HTTPService. I tried embedding the Pop Up Manager in the same
application as the one that is supposed to "pass the variables,"
but it no longer acts as a pop up window.
Could anyone please tell me where I can find the answers for
this?
Thanks in advance.
Here is the code of what I have for my pop up manager:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical"
title="New Scenario"
showCloseButton="true"
width="325"
height="145" horizontalScrollPolicy="off"
close="titleWindow_close(event);">
<mx:Script>
<![CDATA[
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
import mx.controls.Alert;
[Bindable]public var message:String;
[Bindable]public var message2:String;
private function titleWindow_close(evt:CloseEvent):void {
PopUpManager.removePopUp(this);
private function submit_click():void {
Alert.show(scenario_name.text, "Alert");
new_scenario.send();
PopUpManager.removePopUp(this);
var win:Hello = PopUpManager.createPopUp(this,Hello, true)
as Hello;
PopUpManager.centerPopUp(win);
private function reset_click():void {
scenario_name.text = "";
]]>
</mx:Script>
<mx:HTTPService id="new_scenario" method="POST" url="
http://localhost/simulator/scenario.php"
useProxy="false">
<mx:request xmlns="">
<scenario_name>{scenario_name.text}</scenario_name>
<message>{message}</message>
<message2>{message2}</message2>
</mx:request>
</mx:HTTPService>
<mx:Form>
<mx:FormItem label="Scenario Name:">
<mx:TextInput id="scenario_name"
text=""
maxChars="45" />
</mx:FormItem>
</mx:Form>
<mx:ControlBar horizontalAlign="right">
<mx:Button id="submit"
label="Submit"
click="submit_click();" />
<mx:Button id="reset"
label="Reset"
click="reset_click();" />
</mx:ControlBar>
</mx:TitleWindow>Hi,
I am trying to display some data on the Child window that
would need to take the data from the parent titleWindow, which
could be drop down menus, text labels or combo boxes. I would need
to use a HTTPService on the child dialog box to accomplish task I
think, but the problem is, how would I get the information from its
parent window? The example I have are all about how the text input
from the child window gets feed back to the parent.
Would I need to create a "reverse" declaration or something
so I can access the information from the parent in the child
window?
I hope this makes sense.
Thanks for your help.
Alice -
How to pass data from one component to another
Hi all,
We have added a button on "ICCMP_BTSHEAD" component, which will open a new popup component (Zcomponent), which will have some fields related to the order. Can anyone please tell us how to pass the ticket/ entity value to the new component so that it can be used there. Any pointers will be highly appreciated. Thanks.
Rgda,
@runHi Arun,
I have the same issue. I added the Follow-up(hyperlink) button in the Sales order. How can i get the view from the Interaction record follow-up by clicking on hyperlink in Sales order. Please help me.
Regards,
Swaraj -
Pass parameter from one page to another
Hi,
I have 2 pages:
- the welcome page with a combo box P101_OLD (list of values) with a submit button wh'os opening the 2nd page with that region source:
select
"ID",
"ID_POSTE",
"PERIODE_ID",
"ADMIS",
"INSCRITS_RAMQ",
"INSCRITS_AUTRES",
"ENREGISTRÉS",
"VENDUS",
"AUTRES",
"COMMENTAIRES",
"DESCRIPTIONOLD",
"VOLUME"
from "#OWNER#"."STATISTIQUES"
where instr(':'||:P101_OLD||':',':'||STATISTIQUES.DESCRIPTIONOLD||':') > 0
What's wrong ? How to pass a variable from one page to another?
Thanksare you submitting the form once they click on the combo box? or use select list with submit.
I have a form with a drop down say for names. after selecting a value I have to click the search button (basically it submits the page and redirects to page 2)
unless we save the state of the combo box, it won't retrieve a value in page 2
in page 2 all I had to do was refer to the page 1 field name :P3_TEST -
How to pass values from one section to another section in same dashboard..
hi
I am in need of designing a dashboard which contains 2 sections.In first section i will include a Dashboard prompt and in the second section, I have to display a jsp page by passing the result of prompt as a parameter.
how to pass these values.....
if possible send me some links regarding this
thanks in advance...............Check my blog entry here http://oraclebizint.wordpress.com/2007/12/26/oracle-bi-ee-101332-drills-across-sections-in-a-dashboard/. It has an example.
Thanks,
Venkat
http://oraclebizint.wordpress.com -
How to pass string from a class to another on button click
Hai forum i'm developing an application in which i have frame1(seperate class without main) where i get a excel files and get the tablenames of it(sheets).
There i choose a sheet from availabe sheets and i have to pass it frame2 on clicking a button on frame1.
The sheet name is chosen from a JComboBox in frame1:(code)
sheetcombo.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(java.awt.event.ActionEvent e)
JComboBox cb = (JComboBox)e.getSource();
String sheetname = (String)cb.getSelectedItem();
I dont get how to pass this String sheetname to frame2 where i call the constructor of frame1 initialize it. Help me out. Thanks in advance...1 write a set method in frame 2 class
2 create a instance of frame 2 class in frame 1
3 in actionaPerformed method write code as follows
frame2obj.set(sheetname)
this should work :-)
Maybe you are looking for
-
How to deploy the skins in ADF ?
Hi All, I am using JDeveloper 11.1.1.4 My Scenario is I have Project A with some CSS(skins) and bounded task flows.I deploy as ADF Library JAR . Now I attach the Project A Jar to Project B.I can access the bounded task flows but the CSS(skins) style
-
It is beginning to shutdown with no warning more frequently. What can I do to locate the exact issue? My warranty has expired so I would like to get to the bottom of it without taking it in to an apple store. I am currently learning how to do diagnos
-
Does anyone know where one can download the sample application on building a multimedia application with APEX? It was presented at OOW. Thanks,
-
Set document title from windows clipboard contents
Hi Folks! I have a process which I perform all the time, which leads me to believe that it's a good candidate for scripting. However, my scripting capabilities are only VB stuff and I think this may be beyond that. Specifically, I print invoices from
-
so i was going to upload a video to youtube the day after i had deleted a bunch of old files. some of these files contained clips i was using for my video. i turned on my computer and went to upload the video. instead of the upper right hand box of I