Pass a value from a sub report back to a main report
This may not be possible but i though i would see if i had any options.
I have a main report with sales data and a sub report with budget data in the footer. Neither are linked to each other as i do not have a common field.
I was hoping to bring a value through from the sub report to the main report or vice versa for a calculation. Its just one calc to work out the percent of sales against budget. sales/budget total.
stuck!
Any help would be appreciated.
Thanks for the reply but this has not worked.
I created a formula field on the main report HEADER @myValue with:
Whileprintingrecords;
Shared numbervar myValue:=0;
Then I created a formula field in the sub report @myValue with:
Whileprintingrecords;
Shared numbervar myValue;
myValue:= {@Budget-Month};
@budget-month being the field i want to pass through to the main report.
I placed this formula in the same section as the @budget-month formula field which is in the report footer
Then i created a formula field @AVG, added it to a new section below the current fields and used the below
Whileprintingrecords;
Shared numbervar myValue;
//calculation using MyValue
{@myValue}/{@Sales Total}
I get an error with the @myValue part in this formula "a number or currency amount is required here"
I did have to change the Shared number from your formula to shared numbervar as number was not accepted. Does that matter?
Similar Messages
-
Is it possible to pass a formula value from a sub-report to a main report
Hi there,
Im trying to pass a formula value from a Sub-report back upto into my Main report but the value doesnt seem to be getting passed up. Ive tried it the other way around, that is, passing a value from the main report to the sub-report and that works fine.
Below is an example of what I am trying to do but it is not working. In my sub-report Ive declared a formula variable as,
formula name=main_subIntRatePageCount
Shared NumberVar subIntRatePageCount := TotalPageCount;
and in the Main report Ive declared the formula variable as,
formula name=subIntRatePageCount
Shared NumberVar subIntRatePageCount;
subIntRatePageCount;
I want the value assigned to "subIntRatePageCount" in my Sub-Report to be available to my Main report.
The problem I am trying to solve is that the sub-report is spilling over onto two pages, and I need a way of updating the page display on the main report to reflect this. The page display is of format, "displaying page 1 of 3", but its not taking into account the extra page produced by the sub-report, so it should say "displaying page 1 of 4".Also thanks Raghavendra, Asha,
I've tried adding the "whileprintingrecords" statement but that doesnt seem to make any difference.
I notice that the subReport is being called from my the GroupFooter section of the main report, and I am trying to reference the variable in the main repot in the Page Footer section. Could it be that the variable hasnt been calculated in the Page Footer by the time I calculate it in sub-Report? I thought Crystal Reports does at least 5 passes over the report evaluating all the formulas before it prints the report?
The problem Im trying to solve is I need to know how many pages my report will have before its completed, so that i can print the statement "displaying page 1 of X", and X is currently not being calculated correctly because the sub-report is printing onto 2 pages and not 1 so the report thinks I have 1 of X pages and not X+1.
Regards
Robert. -
How to pass the value from Sub report to main report
I have un report(mainreport) within a subreport(subreport).
With reporting services, how to pass the value from Sub report to main report?
thanksHi Alebet,
With reporting services to pass values from sub report in to main report is not supported directly.
But there are some workarounds through which you can get this .
There are two ways to get this.
1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
2- Using this temporary tables data write some Scala function in the data base.
3- Now in your main report query return this scala function as a column.
4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
This will definitely work fine as i have done some report in this way.
Another way of doing is that
1- prepare another data set with the same query as in sub report in the data tab.
2- then refer this 2nd dataset in your main report .
But better way will be the top one.
Anyway please let me know if you get the solution.
Thanks
Mahasweta -
Passing the values from subreport to master report in JasperReports
Hi All,
I want to pass the values from subreport to master report, but my subreport is without any query.
Please help me in this regard. its urgent.
Thanks & Regards
KrisHi,
Below link may help you
http://jasperreports.sourceforge.net/tips.tricks.html#returnvalues
regards
MJ -
How to pass the values from the Wb Dynpro Application to the SAP Backend ?
Hi All,
Good morning..,
I have scenario like:
I want to pass the values from the web dynpro appication to the SAP Back end R/3 Table. IN backend the RFC is writtn to accept the structure input from the Webdynpro.
Upto know I imported the corresponding RFC and maaped to the View.
How to proceed with the coding to save the data...
PLease suggest...
Regards and Thanks in Advance,
CSPHi Pradeep
Steps:
1. First create an instance for bapi and bind the instance to the bapi node.
Z<bapi name> zb=new Z<bapi name>();
wdContext.nodeZ<bapi name>. bind(zb);
2. Then if u have the import parameter u have to set them by using
The instance of the above bapi.
Zb.set<import parameters>;
3. If the bapi has a table parameters then the structure for the table parameters will also be imported
In the model class.
4. Set the table parameters by creating the instance for that structure and using this instance set it.
Z<Struct>itm tab=new Z<Struct>();
Tab.set<table parameters>
5. Then add the structure instance to the bapi instance.
Zb.add(Tab);
6. Then Execute the bapi after setting the import parameters.
7. If there is any export parameters, then get the values after execution.
Look at this thread for codes
Re: RFC call on click of button
Regards,
Arun -
Is it possible to pass a variable from a shell script back to an Automator action?
Is it possible to pass a variable from a shell script back to an Automator action?
For instance, if I assign a value of foo to $var1 in my shell script how would I retrieve/pass that value in the next Automator action. I see that there is a variable called "Shell Script" but I can't any information on how to use it.red_menace,
Thanks but I still don't understand how to pass a single value that was set in the UNIX scipt back to Automator has a variable. Take the example below, I write 4 varables to STDOUT and all 4 are stored in a variable named "storage". How do I assign 1 of these values to the Automator "storage" variable? For instance if I wanted to assign the value of $var2 to "storage" , how would I do that? -
How to pass all values from one node element to created node element?
Hi
I have model node element under which there are 7 values, and I've created value node element and trying to pass the values from the model node Element to this value node element. But instead of passing all the values its listing only one value.
How do we rectify this problem!!!
Thanks in Advance
SrikantHi Anil
I've created the node named: TableNode
and the name of the node from which i want to get the data is : Li_Required_Node
the Node Structure is
Context
|_ Zs_Quantity_Input
|_Output
|_Node_Required_Node
|_Schddt
|_TableNode
|_CmpDate
The Schddt has some 7 values
The code Snippet is as follows:
IPublicPricesComp.ITableNodeElement nodeElement;
IPublicPricesComp.ILi_Required_NodeElement scheduleElement;
int counter3Max = wdContext.ILi_Required_Node().size();
for( int counter3= 0 ; counter3 < counter3Max ;counter3++ )
nodeElement = wdContext.createTableNodeElement();
scheduleElement = wdContext.nodeZs_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Required_Node().getLi_Required_NodeElementAt(counter3);
nodeElement.setCmpDate(scheduleElement.getSchddt());
wdContext.nodeTableNode().addElement(nodeElement);
On writing the above code and then binding the node to a table column only one value getting displayed
Where can be the error?
Thanks in Advance
Srikant -
How to pass multiple values from workbook to planning function ?
Hi,
I have created Planning function in Modeler and it has one parameter(Variable represents = Multiple single values).
When executing the planning function by create planning seq. in the web template : I see value of variable store data like ...
A.) input one value -> V1
B.) input three values -> V1;V2;V3
This function execute completely in web.
However, I want to use the planning function in workbook(Excel).
The value of variable can't input V1;V2;V3... I don't know how to pass multiple values from workbook to parameter(Multiple single values type) in planning function ?
thank you.Hi,
Please see the attached how to document (page no 16).
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be">how to</a>
Hope this was helpful
thanks -
Pass a value from a PL/SQL function to a javascript (html header) ? ?
Hey Guys,
Have a question regarding how to pass a value from a PL/SQL function to a javascript in the HTML Header.
I have created a PL/SQL function in my database, which does looping.
The reason for this is: On my apex page when the user selects a code, it should display(or highlight buttons) the different project id's present for that particular code.
example= code 1
has project id's = 5, 6, 7
code 2
has project id's = 7,8
Thank you for your Help or Suggestions
Jesh
The PL/SQL function :
CREATE OR REPLACE FUNCTION contact_details(ACT_CODE1 IN NUMBER) RETURN VARCHAR2 IS
Project_codes varchar2(10);
CURSOR contact_cur IS
SELECT ACT_CODE,PROJECT_ID
FROM ACTASQ.ASQ_CONTACT where ACT_CODE = ACT_CODE1;
currec contact_cur%rowtype;
NAME: contact_details
PURPOSE:
REVISIONS:
Ver Date Author Description
1.0 6/25/2009 1. Created this function.
BEGIN
FOR currec in contact_cur LOOP
dbms_output.put_line(currec.PROJECT_ID || '|');
Project_codes := currec.PROJECT_ID|| '|' ||Project_codes;
END LOOP;
RETURN Project_codes;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;
END contact_details;
/Jesh:
I have made the following modifications to your app to get it to work as I thing you need it to.
1) Changed the source for the HTML Buttons Region(note use of id vs name for the Buttons)
<script>
function hilitebtn(val) {
//gray buttons
$x('graduate').style.backgroundColor='gray'
$x('distance').style.backgroundColor='gray'
$x('career').style.backgroundColor='gray'
$x('photo').style.backgroundColor='gray'
//AJAX call to get project-ids
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=GETPROJECTS',0);
get.addParam('x01',val)
gReturn = get.get();
var arr=gReturn.split(':'); //dump into array
get = null;
for (i=0;i<arr.length;i++) {
// alert('val=' + arr);
if ( arr[i]==5)
$x('graduate').style.backgroundColor='red';
if ( arr[i]==6)
$x('distance').style.backgroundColor='red';
if ( arr[i]==7)
$x('career').style.backgroundColor='red';
if ( arr[i]==8)
$x('photo').style.backgroundColor='red';
</script>
<table cellpadding='0' cellspacing='0' border='0'>
<tr><td>
<input type='button' id='graduate' value='Graduate'>
</td>
<td>
<input type='button' id='distance' value='Distance'>
</td>
<td>
<input type='button' id='career' value='Career/Tech'>
</td>
<td>
<input type='button' id='photo' value='Photos'>
</td>
</tr></table>
2) Defined the application process GETPROJECTS as DECLARE
IDS varchar2(1000);
l_act_code varchar2(100) :=4;
begin
IDS:='';
l_act_code := wwv_flow.g_x01;
for x in(
SELECT ACT_CODE,PROJECT_ID
FROM ASQ_CONTACT
where ACT_CODE = l_act_code)
LOOP
IDS := IDS || X.PROJECT_ID|| ':' ;
END LOOP;
HTP.PRN(IDS);
END;
3) Changed the 'onchange' event-handler on p1_act_code to be 'onchange=hilitebtn(this.value)'
4) Added the JS to the HTML Page Footer <script>
hilitebtn($v('P1_ACT_CODE'));
</SCRIPT> -
Passing the values from one pgm to another pgm (Calling pgm has no sel scr)
Hi gurus,
In my requirement i need to pass the values from one program to another program.
I am using SUBMIT statement . But , the program which i am calling has no selection screen.
So how can i pass the values?
Please help me ASAP.
Regards,
Bhanu.RExport your internal tables or work areas to a memory id in ur program before u use submit.
Then in second pgm you have to import from memory id given above.
example.
EXPORT gs_header FROM gs_header to memory id 'HEADER'.
EXPORT gt_item FROM gt_item to memory id 'ITEM'.
SUBMIT YFIIN_DISHC_MAILREPORT EXPORTING LIST TO MEMORY AND RETURN.
In your second pgm you can write
import gs_header TO gs_header from MEMORY id 'HEADER'.
import gt_item TO gt_item from MEMORY id 'ITEM'. -
Passing filter values from column formula in OBIEE 10g
Hi,
I am trying to pass filter value from the column LY Spend YTD columns where we have a filter option and passing the year filter 2013 as below.
FILTER("Fact - Purchasing - Invoice"."LY Spend YTD" USING (Time."Year" = '2013'))
My goal behind doing this is, we have a filter already present for the whole criteria on the year which is 2012.
But specifically for this column i dont want to pass the year 2012 to it, Instead I want to pass 2013 to it. But I am not succeding the result is blank.
Please suggest and let me know if further understanding is needed.Hi Srini
Thanks for you reply.
I cannot do that way because some measures are satisfying with year 2012 and displaying the data and other measure are satisfying with 2013.
I am working on LY Spend YTD, LY spend YTD - 1, Spend YTD and Year ago spend.
So thats the reason I have thought that way of passing the filter in column formula irrespective of criteria filter.
Please suggest. -
Is it possible to pass a value from the list to another page..
Hi everyone,
I created a (list region) on a page and there is a FORM on the same page.I am trying to pass a value from that page to another page when the user selects one of the list entries.I tried with SET THESE ITEM.. WITH THESE VALUES in the list entries like
SET THESE ITEMS--P13_TESTING_ID
WITH THESE VALUES --&P10_ID.
but its not working for me.I want to pass that value only when the user hits that list entry.Is it possible to do.
Thanku
phaniAssuming P10_ID is an item on the FORM, I think , the form would have to be posted (submitted) for the item's vaue to be available in session state.
-
Passing a value from internal table to a powerpoint slide
Hi,
Does anyone know how to pass a value from internal table to a powerpoint slide? I would also need some codes with regards to the coding to open the powerpoint and insert the value in.
Thanks.
Points will be awarded.
Hope to hear from you soon.
Lawrencegeez!! do feel sorry for you
you can fire FM WS_EXECUTE to open power point but passing a variable at run-time i'm not sure, sorry. -
How to pass the value from JSP or HTML to Applet
Plz reply ....How can we pass the value from the JSP Page or from HTML page to Applet embedded in same page....
Hi,
<applet codebase = "."
archive = foo.jar"
code = "com.bar"
name = "bar"
id = "bar"
width = "<%=Request["width"] %>"
HEIGHT = "<%=Request["appHeight"] %>"
hspace = "0"
vspace = "0"
align = "middle"
alt = "Applet is Loading..."
>
<param name="LANGUAGE" value="<%=Request["lan"] %>">
<param name="LOGOUT_USER_URL" value="EndSession.asp">
<param name="DATA_READ_INTERVAL" value="10000">
<param name="REFRESH_INTERVAL" value="5000">
<param name="DEFAULT_FONT" value="Arial">
</applet>
pass values @ ur html or jsp page to Applet as parameters.
Refer above code. By using getParameter() method of Applet, u can take values inside applet. -
How To Pass the value from JSP to Applet
plz reply how can we pass the value from the JSP to Applet ...the applet is embedded in JSP page....
Hi,
<applet codebase = "."
archive = foo.jar"
code = "com.bar"
name = "bar"
id = "bar"
width = "<%=Request["width"] %>"
HEIGHT = "<%=Request["appHeight"] %>"
hspace = "0"
vspace = "0"
align = "middle"
alt = "Applet is Loading..."
>
<param name="LANGUAGE" value="<%=Request["lan"] %>">
<param name="LOGOUT_USER_URL" value="EndSession.asp">
<param name="DATA_READ_INTERVAL" value="10000">
<param name="REFRESH_INTERVAL" value="5000">
<param name="DEFAULT_FONT" value="Arial">
</applet>
pass values @ ur html or jsp page to Applet as parameters.
Refer above code. By using getParameter() method of Applet, u can take values inside applet.
Maybe you are looking for
-
Issue in IP - Entering value for Characteristic object
Hi Expert, I have a requirement where the input has to be unabled for characteristic objects through IP template. I did the development as per the blog: http://scn.sap.com/blogs/Christopher.sapbw/2012/12/25/master-data-planning-with-sap-integrated-pl
-
Shared Services 9.3.1.1 HyS9SharedServices.exe process
We recently started to notice that the HyS9SharedServices.exe process grows to use 1GB of memory. Currently this isn't causing any known issues, there aren't many users in the system. However about a month ago we had major performance issues with HFM
-
Indesign cs6 menu and tool bar disappear between windows using mission control in mountain lion
heres 2 screen grabs before and after. while navigating between 'spaces' using mission control in mountain lion. issue - the menu and tools bars disappear - not all of them just parts of them. to get back i hit 'tab' button twice which hides and sh
-
How to connect with dbf file driver in C#.
Hi I am using the following command in powerbuilder application to connect dbf file and to select the record from dbf file. DBemp.dbparm="ConnectString='Driver={Microsoft dBase Driver (*.dbf)};Dbq="+ls_path+";Uid=;Pwd='". It is working fine in powerb
-
Change Imported Files from Store in Current Location to Aperture Library
Aperture Newbie I have chosen to import my files by using the Store Files: drop down selection "In the Aperture Library". That is what I prefer. However, I accidentally imported a large selection fo files and chose the Pictures folder instead of the