Solved

Repeating Values from shared Variable

Posted on 2014-09-26
1
175 Views
Last Modified: 2014-09-26
I have a subreport with the following formula in the GH... This subreport is placed in the GH1a of the Main Report


//@SharedSummary
WhilePrintingRecords;
Shared Numbervar SumValue:=Sum ({Command.ChequeValue}, {Command.ChequeDate}, "daily");
Shared DateTimeVar TranDate:={Command.ChequeDate};

This formula is placed in the GH1b of the Main Report .. The problem is that the values are repeating till the next non 0 value....I need this value to show as well

//@SharedSumValue
WhilePrintingRecords;
Shared Numbervar SumValue;
Shared DateTimeVar TranDate;
Global NumberVar SumVal_Summary;
SumVal_Summary:=SumVal_Summary+ If {ArInvoicePay.JournalDate} = TranDate then SumValue else 0;
SumValue;

This formula is placed at the Report Footer of the Main Report.. Which appears correct...

//@Display
WhilePrintingRecords;
Global NumberVar SumVal_Summary;
SumVal_Summary

The only problem is that the Value at the GH1b within the Main Report is repeating Values until the next non Zero appears, and then that value repeats...I only want the value in GH1b to show if the Dates match between the subreport and main report, I also need the @Display formula to show a summary of the values from the GH1b formula

Hopefully this makes sense
0
Comment
Question by:Mikeyman_01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40346255
I think I understand what you want.

Try this formula

//@SharedSumValue
 WhilePrintingRecords;
 Shared Numbervar SumValue;
 Shared DateTimeVar TranDate;
 Global NumberVar SumVal_Summary;
 If {ArInvoicePay.JournalDate} = TranDate then 
 (
 SumVal_Summary:=SumVal_Summary+ SumValue ;
 SumValue;
)

Open in new window


I that doesn't do what you want can you show in a picture what you want.
0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question