Adding value's from a main and subreport

Post Author: Nick7
CA Forum: Formula
I have a valuation report containing a subreport, and I want to create a formula that adds the grand total of the main report to the grand total of the subreport to give me an overall total figure.  The value's are both running totals, which themselves are calculated from formulas.
Is this option possible?  The subreport is linked through one of my fields, although I had a hard time linking to what I wanted.  My subreport knowledge is only basic so apologies if there's an easy solution to this.
Thanks

Post Author: V361
CA Forum: Formula
Create 3 formulas as below ;
Formula 1 :- RunningTotalName
WhilePrintingRecords;
CurrencyVar Amount;
Amount := Amount + {Customer.Last Year's Sales}
Place the above formula on the details section . and suppress this
formula if u dont want to display .
Formula2 :- Display
WhilePrintingRecords;
CurrencyVar Amount
Place this formula on PageFooter Section
formula3 :- AmountToReset
WhilePrintingRecords;
CurrencyVar Amount := 0;
place this formula on PageHeader section and suppress the same.
Refresh the report , u will get page summary

Similar Messages

  • Adding/Removing items from the main menu

    I don't know why my iPod won't let me add or remove items from my main menu.
    I go
    Settings > Main Menu > (check what I want on the main menu) > Reset Main Menu > Reset
    When I go out to the main menu again, nothing has changed.
    Anyone else having this problem? Thank you for help!

    If you do a reset then you're resetting it to default. If you want to change anything ya just change it to on/and or off, then hit the menu button to go back. Don't go all the way to reset. Hope this helps.

  • Can i power my iphone from the mains and connect to my mac at the same time

    HI
    Here is my dilemma, my daughter dropped my wifes iphone in the bath and it will now only power up when plugged into the mains. When plugged in it cannott find the sim and according to the local apple store the wifi antenna is also broken.
    We are not bothered about the phone it is the 1500 photos and videos of our girls which we dont want to lose. The phone hasnt been backed up recently and she is not registered with icloud so that is out the window.
    So, i thought that if the phone could be powered by the mains and somehow connected to my pac at the same time i could perhaps get the photos synced and then the phone can be traded in at the store for a £119 replacement, thank you by the way Apple!!! you pay full retail for a product (£419) and all you get told is "your phones knackered, that will be £119 please"
    It worht pointing out that the USB doesnt turn the phone on when connected to the mac.
    Is there such a cable in existence which has two usb leads from the iphone dock connector??
    I just cant beleive that the photos and videos cannot be accessed and saved by a company that always tells us they are cutting edge and ahead of the rest of the market, especially as the phone traded in will get, repaired, wiped and sold on as a refubed phone, if they can do that they can get us our files off.
    Anyway, any advice, assitance, product reccommendations would be very very welcome.
    Many Thanks

    How, exactly, would you propose connecting it to both an AC power adapter and your computer when it has only one dock connector? If you don't want to set it on fire, I wouldn't try.
    If it can power on when on AC power AND it can connect to either the cellular network or WiFi, plug it in and power it on and e-mail the photos to yourself. Not the most elegant solution, but it beats losing all of them. I assume you were not in the habit of backing up very often.

  • Synchronize Main and Subreport Details

    I have created a report as a sales order form.  I am using 2 global vars to get the first record and last record numbers for each page in the report if there are more lines than can fit on one page.  If I link these two global variables to a subreport in the footer in the main report and send the first and last record numbers from each page  I am using the subreport as a copy of the main report as a receipt.  The problem is that once linked it only shows records in the subreport on the first page.  As soon as I unlink them I get a copy of all of the records on each page (which is what I want, so that I can suppress all records not in the range of the 2 global vars).  I am unsure if my problem is with the linking the subreport to the main or that the subreport has reached the end of the records on the first page and not resetting on the second page so the suppression can happen on a different set range again or if I am missing something else.
    Does anyone have and answer or has any ideas of a better way or a way that works?
    Thanks

    Changed the Global vars to Shared and didn't send them through the subreportlink.

  • Best Practice in regards to adding showing SkinnablePopUp from the Main application file of Mobile A

    Hello,
    I want to display a SkinnablePopUp when the user presses the back key when the current view is the first view to ask if he wants to quit.
    The logic (checking if the key pressed was the back key && the current view is the first view) is in the main application file and if those two conditions are true then the exit() method is called.
    I want to show the confirmation popup. Should I move all that in the first view mxml component or is it OK to instantiate the SkinnablePopUp in the main app file?
    Thank you.

    so do I, or did, well still do but less than before
    it seems best practice is to seperate mxml and AS3
    have a look at this
    http://tv.adobe.com/watch/max-2010-develop/flexactionscript-30-architecture-and-dependency -injection-frameworks-overview/

  • Find out the group and time a user was added to deleted from specific AD group

    have a project that I need to find anyone that has been added to or removed from an AD selected groups that begins in APP_RMS in the last three hours.  
    I need to product a file the has this information       
    group| sAMAccountName|<ADDED/DELETED>|date and time
    I know very little about AD and just a little more about powershell.  I know this should be written in powershell, do not want to use outside tools like repadmin.

    Hi Cchart3,
    In addition, this function written by Boe Prox is for your reference, which can look at an Active Directory group's metadata using repadmin to determine who was added or removed from a group and the time this modification occurred.
    Find the time a user was add/removed from a group
    Best Regards,
    Anna Wang

  • Metadata field -Tree update don't work from Config mgr and database

    Hi All,
    I am using UCM 11g. I have a Information field of type 'Memo' which is based on a Option list which uses tree. Updating it is giving me the following problems:
    1. When i update a value in the tree using UCM CS configuration manager, sometimes the change doesn't get reflected on the update info form of a document (immediately and even after several hours)
    2. When i update directly through database end, sometimes the change is not reflected in the config mgr - information field. And sometimes it reflects there immediately but not in update form.
    Once Publishing schema and clearing browser's cookie/temp files worked, but not every time.
    Currently, i have added some data from db end, and the data is not showing up on config mgr, and even in the views there. I have tried clearing browser's cache, publish schema, publish schema base, publish schema config and data, but nothing worked.
    I don't want to go for bouncing the server option every time for such changes. Sometimes, everything does work fine instantly.
    Is there some cache etc maintained by UCM and how to clear it so that it picks up the changes in the underlying table data immediately? Please help asap as i have been stuck in this for a long time.
    P.S. I am doing it from db end in the correct manner, and doing so because i have hundreds of values to be added/updated in the metadata taxonomy tree so don't want to do it manually from ucm config mgr ui.

    '*Is there any UCM notification mechanism which we can use so as to tell it that there is some change in the underlying database or in configuration manager metadata tree; or some in built cache that we can clear so that it picks up the change*'.Nothing I would be aware of. Since you can just login directly to the database (e.g. via sqlplus) and insert/update/delete rows directly such a mechanism would have to be in the database (a trigger), but that would be an overkill.
    Updates in the database - when run from the Config Mgr, for instance - work differently - first a change is done, than a service to update the schema is called (a change, actually, means both changing the scheme and its metadata). I don't know how exactly changes in taxonomy are implemented, but I'd expect something similar - note that a lot of information is cached due to performance reasons and changes like adding/modifying a profile, option lists, or trees might require purging this cached data. Usually, at least closing the browser/re-login helps. If there is a mechanism that can force 'push-model', I'm not aware of that.

  • HT1476 My Iphone5 wont charge from the mains or USB. What should I do?

    I got my Iphone5 as a christmas present and already it will not charge. I tried charging it from the mains and USB port, so I decided to buy a new cable. Even now with the new cable my phone still will not charge! What can I do about this?

    You should make an appointment at the genius bar of your local Apple Store and have it evaluated.

  • Toggle value fetch from database

    Hi Room!
    I am trying to achieve this task seriously and i have spent almost a week trying to hack it but thought may be the room might be able to help, i want to be able to change the value fetched from the database and displayed in a table cell say <td><%= rBean.getCategory()%></td> to image. For example if the value=NNYY, i would like to replace all N with red image else if the Character is Y then replace with green image.
    Can anyone help?

    I found out why. I put ## to escape #
    thanks

  • Extracting explanations from planning app and loading into Oracle table

    Hi All,
    I had a requirement where I had to extract data from a planning application through ODI 11g and load it into Oracle RDBMS.
    I used essbase as my source in technology (since planning data is stored on essbase side) and oracle as my target.
    Now the data is getting extracted from essbase side and is getting loaded into Oracle table through ODI.
    Now the client requires that they want to extract the explanations or text values also from planning application and load them into Oracle table.
    How this can be achieved?Is there a table on the sql side(since sql database is being used at back end for planning app) which stores the explanations,if yes please let me know which table it is.
    Kindly help me with this requirement.

    Hi,
    IKM SQL Control Append is perfect if you don't need incremental updates. If you need it, go for IKM Oracle Incremental Update (MERGE) or something like that.
    Regards,
    JeromeFr

  • Need to supress main report based on shared value comes from subreport

    Hi,
    I have a database that is used in both main report and subreport. On main report I have column a,b ,c, d,e,f to display in detail section, the subreport (column c, g,h etc) is also displayed on detail section, the link between main report and subreport is column a,b and a formula based on the value of c. So the link is within one database, some records link with other records  and display both matching records on one line(especially column c shows one value in main report and another value in subreport). That's why I need subreport and I can display the report correctly.
    Here is my question: if one record in main report couldn't find a match in subreport (subreport is blank), then I would like to show this record; if one record in main report does find a match in subreport, I don't want it to show(need to be supressed). I can define a shared variable to flag whether the subreport is blank or not, but this shared variable has to be placed under the section of subreport in main report and I don't know how to supress the upper detail section with subreport in it.
    Any help would be appreciated!
    Helen

    Hi
    In this case you need to insert the same sub report twise.
    Example :
    Detail a--Insert the sub report and go in sub report suppress all sections and using shared variables bring the value to main report.
    Detail b -- based on detail a sub report suppress the main report records
    Detail c-- Your actual sub report will display the values.
    Note : use the same links for your detail 'a' sub report which you are using for detail 'c' sub report.
    Thanks,
    Sastry

  • Need help Take out the null values from the ResultSet and Create a XML file

    hi,
    I wrote something which connects to Database and gets the ResultSet. From that ResultSet I am creating
    a XML file. IN my program these are the main two classes Frame1 and ResultSetToXML. ResultSetToXML which
    takes ResultSet & Boolean value in its constructor. I am passing the ResultSet and Boolean value
    from Frame1 class. I am passing the boolean value to get the null values from the ResultSet and then add those
    null values to XML File. When i run the program it works alright and adds the null and not null values to
    the file. But when i pass the boolean value to take out the null values it would not take it out and adds
    the null and not null values.
    Please look at the code i am posing. I am showing step by step where its not adding the null values.
    Any help is always appreciated.
    Thanks in advance.
    ============================================================================
    Frame1 Class
    ============
    public class Frame1 extends JFrame{
    private JPanel contentPane;
    private XQuery xQuery1 = new XQuery();
    private XYLayout xYLayout1 = new XYLayout();
    public Document doc;
    private JButton jButton2 = new JButton();
    private Connection con;
    private Statement stmt;
    private ResultSetToXML rstx;
    //Construct the frame
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    xQuery1.setSql("");
    xQuery1.setUrl("jdbc:odbc:SCANODBC");
    xQuery1.setUserName("SYSDBA");
    xQuery1.setPassword("masterkey");
    xQuery1.setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
    contentPane.setLayout(xYLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    xQuery1.setSql("Select * from Pinfo where pid=2 or pid=4");
    jButton2.setText("Get XML from DB");
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(java.lang.ClassNotFoundException ex) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(ex.getMessage());
    try {
    con = DriverManager.getConnection("jdbc:odbc:SCANODBC","SYSDBA", "masterkey");
    stmt = con.createStatement();
    catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton2_actionPerformed(e);
    contentPane.add(jButton2, new XYConstraints(126, 113, -1, -1));
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void jButton2_actionPerformed(ActionEvent e) {
    try{
    OutputStream out;
    XMLOutputter outputter;
    Element root;
    org.jdom.Document doc;
    root = new Element("PINFO");
    String query = "SELECT * FROM PINFO WHERE PID=2 OR PID=4";
    ResultSet rs = stmt.executeQuery(query);
    /*===========This is where i am passing the ResultSet and boolean=======
    ===========value to either add the null or not null values in the file======*/
    rstx = new ResultSetToXML(rs,true);
    } //end of try
    catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    ======================================================================================
    ResultSetToXML class
    ====================
    public class ResultSetToXML {
    private OutputStream out;
    private Element root;
    private XMLOutputter outputter;
    private Document doc;
    // Constructor
    public ResultSetToXML(ResultSet rs, boolean checkifnull){
    try{
    String tagname="";
    String tagvalue="";
    root = new Element("pinfo");
    while (rs.next()){
    Element users = new Element("Record");
    for(int i=1;i<=rs.getMetaData().getColumnCount(); ++i){
    tagname= rs.getMetaData().getColumnName(i);
    tagvalue=rs.getString(i);
    System.out.println(tagname);
    System.out.println(tagvalue);
    /*============if the boolean value is false it adds the null and not
    null value to the file =====================*/
    /*============else it checks if the value is null or the length is
    less than 0 and does the else clause in the if(checkifnull)===*/
    if(checkifnull){ 
    if((tagvalue == null) || tagvalue.length() < 0 ){
    users.addContent((new Element(tagname).setText(tagvalue)));
    else{
    users.addContent((new Element(tagname).setText(tagvalue)));
    else{
    users.addContent((new Element(tagname).setText(tagvalue)));
    root.addContent(users);
    out=new FileOutputStream("c:/XMLFile.xml");
    doc = new Document(root);
    outputter = new XMLOutputter();
    outputter.output(doc,out);
    catch(IOException ioe){
    System.out.println(ioe);
    catch(SQLException sqle){

    Can someone please help me with this problem
    Thanks.

  • All Values Deleted from Target System when transporting new values added

    Hi,
    Wasn't really sure where to put this question.
    I created a maintenance view between two Z tables. A main key table and a text table.
    I added the new values to the maintenance view and transported successfully.
    I then had a request to create 3 more values.
    I added these three and transported these to the target QA system.
    However when the transport completed, all entries bar one had been deleted from the Z table but the Z text table had all existing entries plus the three new ones.
    I've tried manually creating a transport and adding all 10 entries but this has the same problems.
    If I SCC1 the entry from one dev client to another it works fine.
    Has anyone come across this problem befor and know how to resolve it?
    Many Thanks
    David

    Yes, I managed to sort it.
    This is what I did:
    I created a new blank transport.
    For the task created under the transport I then opened the task object list.
    I then added two entries in this list. i.e. one for each table that was in the view.
    My entries where:
    Entry 1:
    Program ID: R3TR
    Object Type: TABU
    Object Name: ZNR_REASON
    Then click on the key icon and add:
    Table Name: ZNR_REASON
    Table Keys: 200* (NOTE 200 is our development client). The '*' is needed to that ALL entries are included in the transport.
    Entry 2:
    Program ID: R3TR
    Object Type: TABU
    Object Name: ZNR_REASONT
    Then click on the key icon and add:
    Table Name: ZNR_REASONT
    Table Keys: 200* (As above 200 is our development client). Again the '*' is needed to that ALL entries are included in the transport.
    I hope this helps.
    Regards
    David

  • Array not printing  correctly from main to subreport

    Hi All,
       I am using an array to print values from a main report to a subreport.
    Here's the array formula I use in the group footer of my main report:
    whileprintingrecords;
    stringvar strCalls;
    strCalls:=totext(Sum ({Group.Calls}, {Group.GroupNumber}))"^"strCalls
    this produces a string of:
    number4number3number2^number1
    Here's the formula I use in the group header of my subreport:
    WhileReadingRecords;
    stringVar array arr;
    numberVar i;
    arr:=split({?Pm-@Calls Array},"^");
    i:=i+1;
    if i<= Count(arr) and arr<i><>"" then
    arr<i>
    else
    this produces number4 on the first printed header and then blank for the rest of the headers.
    My question is why are number3,number2 and number1 not printing?
    Thank you in advance.

    I think you need to split your formula into two
    @formula1:
    WhilePrintingRecords;
    stringVar array arr;
    arr:=split({?Pm-@Calls Array},"^");
    place this @formula1 in report header of subreport and suppress it.
    @formula2:
    WhilePrintingRecords;
    stringVar array arr;
    numberVar i;
    i:=i+1;
    if i<= Count(arr) then
    arr<i>
    else
    Place this @formula2 in group footer where you want to show the value in subreport.
    Regards,
    Raghavendra

  • After updating my iphone 5 of ios 7, I delete or trash my emails rorm my inbox and they pop back up in my inbox.  How do I fix this?  They are deleted from the main server but show up in my email on my phone and will not stay deleted.

    I recently updated my iphone 5 to IOS 7 and since doing this, i cannot get my email messages to stay deleted when I trash them.  They have been deleted from the main mail server but show up on my phone.  When I trash them, they disappear for a few seconds and then re-appear in the inbox. I tried deleted my mail account from my phone and re-adding it, but this worked for about 12 hours and now its doing it again. I also have shut my phone off and rebooted it but this did not work.  How do I fix this?

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    Also consider deleting and reinstalling the Mail Account in question.

Maybe you are looking for

  • Transport control program tp ended with error code 0208

    Hello I installed minisap NW2004s on XP/SP2 VMWARE 4.5. The installation it self's works fine, but have some problems in the stms. when i call the transport queue there appears an error as follow: System   NSP              Command  TMS_MGR_READ_TRANS

  • Can't install photoshop elements 12 or premiere elements 12

    just downloaded the above. when installing photoshop elements (64 bit) it gets as far as trying to install the organiser BUT then get error 1401 see below. when trying to install premiere elements 12 (64 bit) get so far then error 1406 - see below. h

  • HTML Formatting Auto Email messages

    We have a scenario, when we provide a status update to an SR. The activity description is sent out as an automatic email. Workflow is working fine issue is automatic email is in Text format instead of an HTML format. Reason why I need an HTML format

  • SQL 2012 Copy Database Wizard fails

    I am trying to use the Copy Database Wizard in SQL Server 2012 The host is running SQL Server 2000 (8.00.2066 (SP4)) on a Windows 2003 server The destination is SQL Server 2012 running on Windows Server 2012 Standard. Its gets to Execute SQL Server A

  • Please help me for checking the userid and password process

    hi master sir how i find any record such as user give userid and password in normat textfield thad not bound with data provider only i drop in page and also i drop dataprovider in page and i check that userid and password from table if found userid a