How to skip secondary window if main window goes to next page

hi gurus,
              i m having a table in main window which lists items and its rate n quantity.
the total price,discount and discount is calculated in secondary window.
now if the list of item get more than window size it goes to next page but with calculation in both page in secondary window . i want to skip the calculation on 1st page.the calculation should only apear in scond page.
thnx in advance.

Hi..
******Case 1******************
Suppose if you want display the Totals only in Last page :
In the Secondary window:
/: IF &NEXTPAGE(C)& = '0'
  <<DISPLAY YOUR TOTALS HERE>>
/: ENDIF
***********case 2**************
Suppose if you want display the Totals only in Last page :
In the Secondary window:
/: IF &PAGE(C)& = '2'
  <<DISPLAY YOUR TOTALS HERE>>
/: ENDIF
reward if Helpful.

Similar Messages

  • How to skip secondary window below main window  to next page.

    hi friends,
                          this is tax retail invoice in which main window contain a table where the items are listed
    as the items increses. the remaining items get listed on 2nd page thats ok..but the calculation part as total get
    calculated on both page in secondary window
    below main window
    tried with command with go to next page
    plse suggest.soon...urgent.
    thnx in advance.

    Put a condition on this secondary window for totals. Flag the checkbox 'Only after end of main window'.
    Cheers,
    Edwin.

  • How to output particular text in main window only in first page

    Hi experts how to ouput particular text in main window only in first page after that actual transaction data will be continued.....any ideas....Answers will be rewarded.....

    Hi,
    Try this.
    /: IF &PAGE& = '1'
    /: ENDIF
    Thanks,
    Naren

  • In Smartform How to display footer & some secndry window after Main window?

    Hi,
    My requirement in Smartform is to display footer and and secondary window  after the Main window.
    also if item goes to 2nd & 3rd Page then also after main window footer and some secondary window should appear.
    Do i have to maintain footer and sec. window in Main Window itself
    Plz tell me in detail.
    Regards
    Vivek

    Hi Vivek,
    In smartform, specific legth is allocated to each window, that you create for a page.
    So, if you want to display secondary window on each page, create 1 secondary window with the required length and it will be displayed on each page.
    And you have written that you want to display the footer of main window also on all pages. It won't happen when you display your footer in main window. you will have to create a new window for your footer as well. Main window footer will always get displayed at the end of the main window.
    e.g. If your main window flows on second page, main window footer will be displayed on second page only.
    I hope this helps.
    Thanks,
    Archana

  • Every time I try to open I get a window with a yellow background with window id="main-window" in red text how do I fix this? I have uninstalled and reinstalled several times

    I downloaded the new firefox 3.6.8 and since then it wont open Every time I try to open I get a window with a yellow background with <window id="main-window" in red text

    Try starting the profile manager ( [[Managing profiles]] ), making a new profile, [http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox migrating] the settings.

  • On slide No. 13 of my Keynote presentation, I have varous pictures that go through automatically just as I programmed them, but if I I want to get by clicking to the next slide , it does not let me. How can I program so when I want goes to next slide?

    On slide No. 13 of my Keynote presentation, I have varous pictures that go through automatically just as I programmed them, but if I I want to get by clicking to the next slide , it does not let me. How can I program so when I want goes to next slide?

    Keynote is programmed to execute all of the effects in a build sequence before it will move to the next slide.
    If you want tobe able to move to the next slide at any time in a sequence of builds, you will need to set all of the builds on that slide to:  "on click". You will then need to execute each build by pressing the space bar or click the left mouse button for each object.

  • How to print items in the MAIN window of the NEXT page (smartform)?

    Dear forumers,
    There are two pages (FIRST and NEXT) in my smartform with the same MAIN windows in each of the pages. Whatever that are changed in FIRST-MAIN window will also be seen in NEXT-MAIN window.
    I will need to control the printing of table TABLE3 contents (already contained in the MAIN window) such that if a variable V_MAT_PRINT is 'X', the TABLE3 contents will only be printed in NEXT page and not printed in FIRST page at all.
    How may I achieve this? Please help.
    Thank you.

    >
    Mohammed Ahasanullah Mulla wrote:
    > Hi Deborah,
    >
    > I had also faced a similar situation,in my case it was three pages..However i will try to tell you for 2 pages..After the second table .Add a program lines and force a page break only if V_MAT_PRINT is 'X'. After the program lines add a command and make the go to new page as second page.This will solve your problem.I have done the same and its working fine .If you have any questions do ask.
    >
    > Thanks,
    > Ahsan
    Hi Ahsan,
    Here's my case.
    If V_MAT_PRINT is 'X', print the following:-
    FIRST page, MAIN window
    - TABLE1
    - TABLE2
    - TABLE4
    - TABLE5
    NEXT page, MAIN window
    - TABLE3
    If V_MAT_PRINT is not 'X', print the following (no additional controls / changes are needed, everything remains unchanged):-
    MAIN window
    - TABLE1
    - TABLE2
    - TABLE3
    - TABLE4
    - TABLE5
    In this case, is a page break suitable? I doubt it as TABLE4 and TABLE5 will still need to be printed back on the FIRST page regardless of the V_MAT_PRINT value.
    Please advise further. Thanks.

  • How to Print text in two main windows

    For printing label have created two main windows on a page. calling function write_form In ABAP Program under do loop for two times. 
    but program prints only one window. why is it so? how can i print text on two windows.
    do 2 times.
      COUNT = COUNT + 1.
    loop at itab WHERE DEPTT LT 200.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT  = 'TEST'
            FUNCTION = 'SET'
            TYPE     = 'BODY'
          WINDOW   = 'MAIN'
          EXCEPTIONS
           ELEMENT   = 1
           FUNCTION  = 2
           TYPE      = 3
           UNOPENED  = 4
           UNSTARTED = 5
           WINDOW    = 6
           OTHERS    = 7.
      endloop.
    enddo.
    Please guide.

    Since the information is variable and coming out of the print program, I can assume you want to print many labels but two to a page. Also, any page numbering, etc will need to be updated. This is easily accomplished with SAPScript but a feature people rarely use I believe. Here are the simple steps:
    1) On the Windows Screen: Creat a main window for the size of the label, etc knowing that you will be putting multiple windows on a page. For example, if page size is 8.5 x 11, maybe your window size is 6 X 4 or something similar. You only need one main window defined.
    2) Now go to Page Windows Screen. Add a window MAIN and down at the bottom where it says Window Type put in MAIN. Next to this field is a little field about two characters long. In here put in '01'.
    3) Now Add another window MAIN and down at the bottom put in '02'.
    Hopefully this gives you the idea. I've done this with up to 30 small windows in order to print variable window for labels on label stock such as Avery 8167, etc. 
    Good Luck!
    Tim Stadler
    Menasha Corporation

  • C# MDI application: how to scale child windows when main window is re-sized?

    Hi,
    I have an MDI application that have several child forms.  Users can view several forms at one time, and users also are given the options to arrange the child forms anyway they want:  cascade or tile.  What I want to achieve is that if the
    parent window is re-sized, all child forms should also be re-sized proportionally.   The code that I have only work if the child forms are tiled horizontally, AND that I only make the main window wider.  Otherwise, all forms are scaled (but not perfect),
    however, the location is not scaled; therefore, they are overlapping each other.   I greatly appreciate any help from you.  
    Size m_preSize;
    private void MainForm_ResizeBegin(object sender, EventArgs e)
    m_prevSize = this.ClientRectangle.Size;
    private void MainForm_ResizeEnd(object sender, EventArgs e)
    int iWidth = m_prevSize.Width;
    int iHeight = m_prevSize.Height;
    double dXFactor = (double)(this.ClientRectangle.Width) / (double)iWidth;
    double dYFactor = (double)(this.ClientRectangle.Height) / (double)iHeight;
    foreach (Form c in this.MdiChildren)
    if (!c.Visible)
    continue;
    if (c.WindowState == System.Windows.Forms.FormWindowState.Maximized ||
    c.WindowState == System.Windows.Forms.FormWindowState.Minimized)
    // DO not ajust on resize if a child window is at its Maximized state
    return;
    c.Scale(new SizeF((float)dXFactor, (float)dYFactor));
    Best Regards,
    Emily

    Hi Badidea,
    Once again, I did not explain my idea clearly.  I am sorry about that.  I only wanted to scale the child-windows as the parent re-sized.  And yes, if the child-windows fill up the view-able area of the parent's window, I would like them to
    also fill up the  view-able area of parent's window once again after re-size of parent window.  No scroll should be involved.
    Regards,
    Emily
    Hello,
    It depends on how you cascade or tile these forms.
    In this case, I would recommend you use this way below.
    1. Layout with splitContainers.
    2. Set each child form's toplevel to false, then add them to the panels of splitContainers.
    3. Resize these form to fit the panels.
    4. repeat #3 inside the main form's resize event.
    Here is a simple sample.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    namespace _150313AutoSizeMdiChiledForm
    public partial class MainForm : Form
    public MainForm()
    InitializeComponent();
    Form1 f1 = new Form1();
    Form2 f2 = new Form2();
    Form3 f3 = new Form3();
    private void MainForm_Load(object sender, EventArgs e)
    f1.TopLevel = false;
    this.splitContainer2.Panel1.Controls.Add(f1);
    f1.Size = this.splitContainer2.Panel1.ClientSize;
    f1.Show();
    f2.TopLevel = false;
    this.splitContainer2.Panel2.Controls.Add(f2);
    f2.Size = this.splitContainer2.Panel2.ClientSize;
    f2.Show();
    f3.TopLevel = false;
    this.splitContainer1.Panel2.Controls.Add(f3);
    f3.Size = this.splitContainer1.Panel2.ClientSize;
    f3.Show();
    private void MainForm_Resize(object sender, EventArgs e)
    f1.Size = this.splitContainer2.Panel1.ClientSize;
    f2.Size = this.splitContainer2.Panel2.ClientSize;
    f3.Size = this.splitContainer1.Panel2.ClientSize;
    Designer code.
    namespace _150313AutoSizeMdiChiledForm
    partial class MainForm
    /// <summary>
    /// Required designer variable.
    /// </summary>
    private System.ComponentModel.IContainer components = null;
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected override void Dispose(bool disposing)
    if (disposing && (components != null))
    components.Dispose();
    base.Dispose(disposing);
    #region Windows Form Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    this.splitContainer1 = new System.Windows.Forms.SplitContainer();
    this.splitContainer2 = new System.Windows.Forms.SplitContainer();
    ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
    this.splitContainer1.Panel1.SuspendLayout();
    this.splitContainer1.SuspendLayout();
    ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
    this.splitContainer2.SuspendLayout();
    this.SuspendLayout();
    // splitContainer1
    this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
    this.splitContainer1.Location = new System.Drawing.Point(0, 0);
    this.splitContainer1.Name = "splitContainer1";
    this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
    // splitContainer1.Panel1
    this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
    this.splitContainer1.Size = new System.Drawing.Size(607, 411);
    this.splitContainer1.SplitterDistance = 198;
    this.splitContainer1.TabIndex = 0;
    // splitContainer2
    this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
    this.splitContainer2.Location = new System.Drawing.Point(0, 0);
    this.splitContainer2.Name = "splitContainer2";
    this.splitContainer2.Size = new System.Drawing.Size(607, 198);
    this.splitContainer2.SplitterDistance = 294;
    this.splitContainer2.TabIndex = 0;
    // MainForm
    this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    this.ClientSize = new System.Drawing.Size(607, 411);
    this.Controls.Add(this.splitContainer1);
    this.Name = "MainForm";
    this.Text = "MainForm";
    this.Load += new System.EventHandler(this.MainForm_Load);
    this.Resize += new System.EventHandler(this.MainForm_Resize);
    this.splitContainer1.Panel1.ResumeLayout(false);
    ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
    this.splitContainer1.ResumeLayout(false);
    ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
    this.splitContainer2.ResumeLayout(false);
    this.ResumeLayout(false);
    #endregion
    private System.Windows.Forms.SplitContainer splitContainer1;
    private System.Windows.Forms.SplitContainer splitContainer2;
    Result.
    You could download it form http://1drv.ms/1Mwwibp.
    It is quite similar with the one for tiling, you could edit it to fit your requirements.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to summarize a field from main window at the bottom

    I've a requirement in sapscript which is driven by standard program RVADOR01 to print certain quotation details.There is a field called tax code(kbetr) which
    is required to be displayed for each line item .
    Now i've also to summarize these tax code at the bottom of the page in another window.Here is the scenario
    In MAIN window:
    kbetr
      1     for 1st line item
      1     for 2nd line item
      2     for 3rd line item
      1     for 4th line item
      3     for 5th line item
      2     for 6th line item
    It have to summerise above tax code in FOOTER window as:
    kbetr
      1
      2
      3

    Hi anutosh,
    1. First check out if summary variables
       are already available in the standard drive program or not.
    2. Further to this, the TEXT ELEMENTS
      for printing the summary should also be available.
    3. This all logic / sequence of printing
       is absolutely
       contained in the driver program.
    4. If its not there,
       then probably u will have to
       copy the driver program,
       and do some enhancements/modifictiions.
    5. I don't think, by simply manipulating
       the sapscript layout, we can achieve this directly.
    regards,
    amit m.

  • How to limit the size of main window height according to the line items?

    Hi,
    In my requirement,I created one page with main window in smartforms....Suppose say main window can accomodate 40 line items.
    I am getting 5 pages data.And in my last page ( ie 5'th page ) I will have only 20 line items.But for the remaing 20 line items,
    it showing empty area .I dont want this empty area .I want that window size to be restricted dynamically to that 20 line items.I created widow with borders and one vertical line between the columns.....I created two columns.
    Please I dont want any horizontal lines between the line items but I created one vertical line between the columns..
    This is in Smartforms
    Any right help would be appreciated.
    Thanks,
    Chinnu

    Hi Abhijit,
                    This problem is solved but I have the below another new problem.Can you pls help me in this regard.
                My requirement is to calculate the subtotal of a particular page and to print that subtotal
                at the end of each page.And this subtotal has to be carry forwarded as the first item of the next page(say page2).
                And again  at the end of this page(page2) I have to print the subtotal and needs to carry forward this subtotal again on to
                the first item of the page3..
               My problem is I am doing it in a table.I am calculating the subtotal and displaying the subtotal at the footer of the table..
               In the footer again I am redefining table work area values with the text 'Subtotal' and subtotal Amount so that thinking
               that it would print as first line item on the next new page....
              But the problem is I am getting subtotal as 2'nd line item on each new page instead of first line item of each page.........
              Can anyone resolve this issue.........
              I dont want this subtotal to be printed on the last page since I am getting Total of all these subtotals.....
              Below is my required structure
    Page 1.
                    Desc                               Amount
                    x                                      100
                    y                                      200
                   Subtotal                            300
    Page2.(Required page2)
                 Desc                               Amount                                
                    a                                      100
                    b                                      200
                   Subtotal                            600
    Page2.(But getting as below,which I dont require )
                    Desc                               Amount
                     a                                     100
                   Subtotal                            300
                     b                                      200
                   Subtotal                            600
    Page3.(Required page3)( I dont require Subtotal here on the last page)
                 Desc                               Amount                                
                    a                                      100
                    b                                      200
                   Total                                 900
    Any suggestions pls
    This is in Smartform
    Thanks,
    Chinnu

  • Add activity window to main window

    Good morning,
    This may not be possible, but does anyone know how I can get the 'Activity' window (found by pressing cmd 0) in the main window of mail, so it is there all the time and not as a separate window?
    I know you can have the basic task bar by opening the 'Mail Activity' bar below the folders, but ideally I want to replace this for the more detailed version.
    Any help would be great.
    Thanks
    Simon

    Thought not, worth asking though.
    Thanks.

  • T-Bird keeps automatically switching from composition window to main window while I am typing, which leads to typed letters being interpreted as hotkey commands

    Hi,
    Since I switched to Windows 8, I've had this problem with T-Bird. Updates and safe mode have not fixed it.
    Basically, while I am composing a mail, t-bird automatically switches to the main window. Because I am in the middle of typing, it usually freezes for a moment, sometimes longer and goes transparent and a (Not Responding) appears, but usually unfreezes and then interprets all the intervening keystrokes as commands. All sorts of damage is done: messages deleted, threads hidden, sometimes a "go to last unread message" box appears. It's a real drag.
    I thought it might be a keystroke combination that is making the program change windows, but I'm fairly sure I've seen it switch when I just have the composition window idly open. I think it may be switching whenever T-bird checks for new mail.
    One thing to mention: I often switch between US English keyboard layout and Portuguese language layout. I haven't systematically tested whether it happens in one or the other, but the POR layout has some accent marks here and there. still, I've been careful not to accidentally touch the CNTRL key and as I say, I've seen it switching while idle.
    Any help is appreciated. It's getting to the point where I can't really use T-Bird any more and am sadly looking for alternatives.
    Thanks,
    BL

    Create a new profile as a test to check if your current profile is causing the problems.
    *https://support.mozilla.org/en-US/kb/profiles-tb
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Thunderbird
    *http://kb.mozillazine.org/Profile_Manager

  • Issue in overlapping of windows with main window.

    Hi all,
    My requirement is to have 4 windows at the end of main window.
    the 4 windows should be printed only after end of all the line items in the main window.
    the problem here is if i extend my main window till the end and overlap the 4 windows. if line items are less it is printing perfectly fine. if line items are many the 4 windows are overlapping on line items. if i decrease the size of main window and place 4 windows after that, if line items extend to two or three pages. windows space will be wasted in page 1 and page 2 as the 4 windows will be printed only on the last page i.e end of line items.
    Any pointers for solving this would be appreciated.
    Regards,
    Sreekanth.

    one death you gonna die, thats what i always say to customers when it comes to this topic.
    IF you want certain things printed on certain positions of a sheet, you NEED to reserve this space, so that no overlapping issue comes up.Reserving this space means that this space may stay free in matter of page breaks and such.
    So they either live with the wasted space, or they live with the information having an uncertain position, since you just give it out in main window after all the line items.
    If first case is BLACK and second case is WHITE, then you have to know that in this scenarion there is no GRAY, just WHITE OR BLACK.

  • Minimizing window in main window similar to Microsoft excel

    Hi all,
    I want to develop an application in which different windows can be opened from main window (for example 3 different graphs in different windows). Now I want the application such that whenever user minimizes any window it should minimize in its parent window rather than on windows taskbar. (Similar to Microsoft Excel where multiple excel books can me minimized or resized in excel application.
    Labview user

    This interface is known as MDI (Multiple Document Interface) and there's no native way to do it.  I haven't seen a working implementation in LabVIEW, but you can try searching this forum for MDI and see if you find one.

Maybe you are looking for

  • OLAP Cube / DataWarehouse corruption (?) - TfsJobAgent no longer syncronizing

    About a week ago, this stopped working. I notice 3 errors in the event log: EventId 3300, 3300,3305: The error involves the TfsJobAgent, an apparent failure to update a dimension attribute & process the analysis cube. Since then I've tried to A) proc

  • My email app has been deleted how do i get it back

    My email app that came on the phone has been deleted and I can't get it back. And I can't find it in the play store. Can anyone tell me how to retrieve it? No it is not email for Gmail or hotmail I had to set up the incomeing and outgoing servers if

  • OSX Lion Mail problem

    I use 2 locations for work and home. Each has a different ISP. At the home address I can send / receive mail with no problem. At work I can only receive mails but only rarely send. Any ideas how I can send from both locations? At the work location, t

  • CS5 - Suggestions and a plea to Adobe

    I don't know where else to post this but I would definitely want to ask Adobe for consideration in fixing a couple of annoying issues with CS5. 1. Please please get CS5 suite to use native Windows 7 UI. You do it on OSX and I don't understand why we

  • Depreciated Hints

    Hi Masters, What are the hints which are depreciated in oralce 11g e.g bypass_ujvc ? Though I know this hint is undocumented, Is there any document/url in which I can get all these. Any help will be highly appreciated. Regards