Dynamic main window size

hi all,
Mian window size should vary based on the value.
This is my situation ... if my footer window is not printed the space is left blank, but my scenerio is to cover the blank space with my main window when my footer window is not displayed.
for example when the data exceeds first page then my footer window willbe printed only in the next page, so space left by the window should be filled by main window .
how to dynamically chage teh main window size based on the footer window...
Please provide me the details.
Thanks in advance.
Suresh RR

Hi Suresh,
Theres no need to use a dynamic main window. All you have to  do is to print the footer on the last page if theres no content in the main window. I will explain how.
Just create a main window that fills up the page to the end. Use a text element for printing the main window content. Once that is done check &PAGE& equal to &SAPSCRIPT-FORMPAGES& (This field contains a number representing the total number of pages of the currently formatted form). Once that is done it means that the last page is reached. Then you call another text element having the footer text or data. that way you cqan print the footer in the last page without modifying the main window.
Reward if helpful.

Similar Messages

  • How to increase main window size dynamically in sapscript

    Hi,
    I have to print all records which are available in internal table in a main window.The main window is in between two variable windows.And below two other varaible windows are there.
    I want main window size to be increased as per no. of records available(max 12 records) in internal table.
    If the specified size is insufficient then the variable window which is below the main window should move below to accommodate the records available in internal table.
    This is very urgent requirement.
    Please help me.
    Regards,
    Vidya

    Hi Vidya,
    Main Window size cannot be changed dynamically.
    They are static values.
    However,  i hate to say this again but
    if you use a table with a footer the footer of the table will move up if the number
    of records are less. Sorry for not having a more positive reply.

  • Smartform doesn't show preview when the records exceed the main window size

    Hi
    When i print the smart form having line items exceeding the main window size on the page it does not show the preview. The internal table loop goes into infinite loop. Is there any means whereby if the records don't fit on the main window of the page will be continued to the next page. Right now I have no clue how it is to be resolved. I feel the problem is in layout, as when i remove the main window the internal table code works fine and it does not move in infinite loop. Please help me resolve this issue.
    Thanks in advance

    Hi
    I have deleted the table from main window and instead inserted a loop.
    Also i created the two pages. But the problem still persists.
    But for my requirement my each line item in the main window has 3 lines.
    Also my layout will be the same for all pages so is there a need to create a new page.
    Is there any mechanism whereby if the line items dont fit on the mainwindow of the page will automatically continue on another page without having to define it.. please guide? Right now the smartform goes in infinite loop if it doesn't fit in main window size
    Thanks

  • Need to increase main window size except last page in smartforms

    I have only one main window in a smartform to print a invoice. Currently the mainwindow size is small because i added some additional info to print at the end of the main window.{i.e with some tax details}. All the pages execpt the last page has free spaces. Now the requirement is to increase the size of the main window to avoid the blank spaces except the last page.
      I have used the SFSY-FORMPAGES. THIS is not working to identify the total no of pages of the form. i have condenced it also.
    Can anyone give some details to solve this.
    Thanks in advance.

    Hi,
    I don't understand ... the size of the main window is not link between the different page ... so there is no problem.
    My main window in all the form are never the same size between first page and next page.
    Rgd
    Frédéric

  • Increase main window size in the second page

    Dear Experts,
    In my first page i have the main window, i want to increase the size of main window in the secon page. how?

    Hi Venkey,
    When you have two or more pages in a smartform it is necessary that each page should have it's main window. But one important thing is that all the main windows of all the pages should be of same width and height. You cannot have different measures for each of the main window. If you do so you will end up in run time error.
    In second page, add window and make it as main window. Make sure that width and height is same as main window   of first page. Next add another window and make it as secondary window. Later add any components like templates, texts etc to this secondary window. Otherwise they will not be shown up during print or print preview.
    Let me know if you have any further issues.
    Thanks,
    Rajesh

  • How do you save main window size and placement upon boot-up?

    Is there any way for a dual-monitor user to convince InDesign to remember the size and shape of the main window when I boot up?  I use InDesign on my second monitor, which I have rotated to portrait mode.  The workspace I have saved remembers all of my menues and panels, but the main window always shows up on my main monitor.  InDesign 5 remembered....
    Also, how do you permanently turn off that damn "getting started" window?
    Thanks.

    I'm guessing your on a Mac with a recent version of Mac OS X. Am I correct?
    You'll have the best luck having InDesign remember your window size if you choose Window > Application Frame. Then resize the frame to the size you prefer. It should stick.
    People have found bugs with windows on a secondary monitor if they're using Mac OS X 10.10.2. If you're running 10.10.3 it should solve that problem.
    To get rid of the Getting Started window, scroll to the bottom of most tabs, and choose not show the window again by checking a checkbox.

  • Main window size for HTML Help

    Hello again
    I have looked at the archives and despite thinking I had seen
    this particular issue covered before, I could not find anything. I
    generate a HTML Help File with RoboHelp for Word x5.0.1 and would
    like to set the default window size as at the moment my Help File
    opens in a rather small window. Also if a user maximises the
    window, closes the Help File and re-opens it, it still opens in the
    small windows, i.e. the size settings were not save upon closing
    the file.
    Can anybody help? I reckon there must be some place (I
    noticed the existence of the Edit > Windows menu but it only
    seems to apply to WinHelp) I can set this up.
    Thank you.
    Regards,

    In Project Manager, double click Windows and then the window
    you use. There should be fields for setting the size. If not, check
    that HTML is your primary output and then create a new window, then
    you should see the fields.

  • Dynamically changing windows size

    Hi Folks,
    Is it possible to dynamically change the dimensions of windows i.e. Main and Secondary windows.

    Hi,
    See the fallowing link
    Smart forms - Dynamic sizing of the windows.
    Regards,
    Vijay.

  • REG: Want to have a dynamic length in the main window of the smartform

    Hi,
    Based on the table contents and the line items, the length and size of the table should either increase and decrease,
    It shall be very helpful in meeting a requirement..
    Regards
    Srikanth.P

    Hi,
    What exactly is it that you want to do?
    The lenght of the table will automatically be dynamic as the table will be build dynamically.
    If you want to place something after the table and for that reason need a dynamic main window you can put it in the footer of the table and it will place it after the table.

  • Title on Main Window.

    Hi All!
    I m using Forms 11gr2, and want to show Company Name on the top of the Main Window, i.e. above my menu bar.
    Previously I was using following built-in in Forms 6i successfully;
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,'Company Name'),
    but now, it instead show two titles
    -- https url of form (above my menu bar).
    --Oracle Fusion Middleware title (above https url of form),
    which ultimately decreases my main windows size.
    My second problem is how to hide these two titles/windows ? This will also increase my windows size.
    Please guide me.
    Thanks & Regards.
    Edited by: ocpdev on Jan 12, 2013 7:57 PM

    Sir,
    I didn't understand your meaning of creating of config . Is it Forms Installation and Configuration? I have configured after the installation successfully.
    Now, please note my following formsweg.cfg file:
    # $Id: formsweb.cfg /main/164 2010/10/19 05:20:53 atyagi Exp $
    # formsweb.cfg defines parameter values used by the FormsServlet (frmservlet)
    # This section defines the Default settings. Any of them may be overridden in the
    # following Named Configuration sections. If they are not overridden, then the
    # values here will be used.
    # The default settings comprise two types of parameters: System parameters,
    # which cannot be overridden in the URL, and User Parameters, which can.
    # Parameters which are not marked as System parameters are User parameters.
    # SYSTEM PARAMETERS
    # These have fixed names and give information required by the Forms
    # Servlet in order to function. They cannot be specified in the URL query
    # string. But they can be overridden in a named configuration (see below).
    # Some parameters specify file names: if the full path is not given,
    # they are assumed to be in the same directory as this file. If a path
    # is given, then it should be a physical path, not a URL.
    # USER PARAMETERS
    # These match variables (e.g. %form%) in the baseHTML file. Their values
    # may be overridden by specifying them in the URL query string
    # (e.g. "http://myhost.example.com/forms/frmservlet?form=myform&width=700")
    # or by overriding them in a specific, named configuration (see below)
    [default]
    # System parameter: default base HTML file
    baseHTML=base.htm
    # System parameter: base HTML file for use with Sun's Java Plug-In
    baseHTMLjpi=basejpi.htm
    # System parameter: delimiter for parameters in the base HTML files
    HTMLdelimiter=%
    # System parameter: file setting environment variables for the Forms runtime processes
    envFile=default.env
    # Forms runtime argument: whether to escape certain special characters
    # in values extracted from the URL for other runtime arguments
    escapeparams=true
    # Forms runtime argument: which form module to run
    form=test.fmx
    # Forms runtime argument: database connection details
    userid=
    # Forms runtime argument: whether to run in debug mode
    debug=no
    # Forms runtime argument: host for debugging
    host=
    # Forms runtime argument: port for debugging
    port=
    # Forms runtime argument: BIDI digitSubstitution
    digitSubstitution=context
    # Other Forms runtime arguments: grouped together as one parameter.
    # These settings support running and debugging a form from the Builder:
    otherparams=obr=%obr% record=%record% tracegroup=%tracegroup% log=%log% term=%term% ssoProxyConnect=%ssoProxyConnect%
    # Sub argument for otherparams
    obr=no
    # Sub argument for otherparams
    record=
    # Sub argument for otherparams
    tracegroup=
    # Sub argument for otherparams
    log=
    # Sub argument for otherparams
    term=
    # HTML page title
    pageTitle=Oracle Fusion Middleware Forms Services
    # HTML attributes for the BODY tag
    HTMLbodyAttrs=
    # HTML to add before the form
    HTMLbeforeForm=
    # HTML to add after the form
    HTMLafterForm=
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms/lservlet
    # Forms applet parameter
    codebase=/forms/java
    # Forms applet parameter
    imageBase=codebase
    # Forms applet parameter
    width=100%
    # Forms applet parameter
    height=100%
    # Forms applet parameter
    separateFrame=false
    # Forms applet parameter
    splashScreen=
    # Forms applet parameter
    allowAlertClipboard=true
    # Forms applet parameter
    disableValidateClipboard=false
    # Forms applet parameter
    highContrast=false
    # Forms applet parameter
    background=
    # Forms applet parameter
    lookAndFeel=Oracle
    # Forms applet parameter
    colorScheme=teal
    # Forms applet parameter
    logo=
    # Forms applet parameter, valid range [0-3]
    guiMode=3
    # Forms applet parameter
    restrictedURLparams=pageTitle,HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
    archive=frmall.jar,frmicons.jar
    # Number of times client should retry if a network failure occurs. You should
    # only change this after reading the documentation.
    networkRetries=0
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/archive/j2se/6u12/index.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:CAFEEFAC-0016-0000-0012-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,12
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_12
    # Applet parameter for Sun's Java Plugin
    legacy_lifecycle=false
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=true
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    # Single Sign-On parameter: indicates whether session should operate in proxy
    # user support or not. Specify ssoProxyConnect=yes to enable for particular application.
    ssoProxyConnect=no
    # The parameter allow_debug determines whether debugging is permitted.
    # Administrators should set allow_debug to "true" if servlet
    # debugging is required, or to provide access to the Forms Trace Xlate utility.
    # Otherwise these activities will not be allowed (for security reasons).
    allow_debug=false
    # Parameter which determines whether new Forms sessions are allowed.
    # This is also read by the Forms EM Overview page to show the
    # current Forms status.
    allowNewConnections=true
    # EndUserMonitoring
    # EndUserMonitoringEnabled parameter
    # Indicates whether EUM/Chronos integration is enabled
    EndUserMonitoringEnabled=false
    # EndUserMonitoringURL
    # indicates where to record EUM/Chronos data
    EndUserMonitoringURL=
    # Config for javascript integration
    applet_name=
    enableJavascriptEvent=true
    # Config variable that will indicate if heartbeat will
    # be blocked when a javascript call is a blocking call.
    # The default value if false, i.e heart beat will not be
    # blocked for any javascript calls.
    JavaScriptBlocksHeartBeat=false
    # Example Named Configuration Section
    # Example 1: configuration to run forms in a separate browser window with
    # "generic" look and feel (include "config=sepwin" in the URL)
    # You may define your own specific, named configurations (sets of parameters)
    # by adding special sections as illustrated in the following examples.
    # Note that you need only specify the parameters you want to change. The
    # default values (defined above) will be used for all other parameters.
    # Use of a specific configuration can be requested by including the text
    # "config=<your_config_name>" in the query string of the URL used to run
    # a form. For example, to use the sepwin configuration, your could issue
    # a URL like "http://myhost.example.com/forms/frmservlet?config=sepwin".
    [sepwin]
    separateFrame=True
    lookandfeel=Generic
    # Example Named Configuration Section
    # Example 2: configuration running the Forms ListenerServlet in debug mode
    # (debug messages will be written to the servlet engine's log file).
    [debug]
    serverURL=/forms/lservlet/debug
    # Sample configuration for deploying WebUtil. Note that WebUtil is
    # only installed with the Forms Builder and is also available for download
    # from OTN.
    [webutil]
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTML=webutilbase.htm
    baseHTMLjpi=webutiljpi.htm
    archive=frmall.jar,frmicons.jar
    lookAndFeel=oracle
    I want to ask one thing more. I have two formsweb.cfg files in following paths:
    F:\Oracle\Middleware\user_projects\domains\ClassicDomain2\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.2\config.
    F:\Oracle\Middleware\user_projects\domains\ClassicDomain2\servers\WLS_FORMS\tmp\_WL_user\formsapp_11.1.2\wb1h9f\config.
    Can you give me differences in these two files?
    Thanks in advance.

  • How to print main window data in second page without header

    hi friends.,,,,,,,,,,,,,,,,,,,,
    I am printing billing docu details in main window ,the data is coming in two pages but there is problem in printing as the tables is continuing in second page the line is not coming for the table for first row,space is also coming for second page for header .
    my issue is to remove space before printing table and line should come for the table for 1st row in second page.
    please help .
    thanks in  advance.

    Hi Raghukumar,
    1. For the line not coming on the top row of the second page, check if the rowtype u have used in the table has been given a border on the upper side.
    2.For the space issue in the second page, I assume you might have used only a single Page in your smartform and the same page is called again.Hence as per the main window size and length data will be displayed in all pages of the smartform.
    You may need to create a second page with the Main window length occupying the compete page so that data display starts from the top of the page. next Page attributes of the smartforms should be entered accordingly.
    Please try to elaborate your query to help us understand your issue.
    Regards,
    Rijuraj

  • Window size

    Me again.
    I would like to set the Main Window size to a particular
    value but this does not seem to work for HTML generated from
    RoboHelp for Word. I go to Edit > Window but whatever values I
    choose, they do not seem to be taken into account when I open my
    Help File. This setup works for WinHelp but not for HTML Help
    Files...
    Is there any way I can set the window size on opening of a
    HTML Help File generated by using RoboHelp for Word?
    Thanks in advance.

    Thanks for the feedback, our team is working on improving this in future.
    Cheers, Samuli

  • Porblem in displaying the data in main window and footer in sapscript

    Hi Friends,
    I have created a 2 pages with a main window and 6 footer windows for purchase requistion printout. My requirement is footer windows should only be displayed at the last page. If i bring the footer window at the last page there is blank space in all pages after the main window since the main window size is smaill, if i increase the main window size it is overlaping footer windows at the last  page.
       I want the main window shouldbe big and footer should be displayed at the last page.
       please hellp me to solve this.
    Thanks
    Gayathri S

    If you want to position footer texts right after the last line of the MAIN data (thus, anywhere in the page), you define them as text nodes inside the MAIN window, and you use a template node if you wan't to position them precisely.
    If you want to position footer texts relatively to the page edges (and not relatively to the MAIN), do like this (as my previous answer is wrong):
    - define your footer windows in the same page of the MAIN, select condition "Only after main window" (so that the windows will be printed on the page of the last line of the MAIN data.
    - If the footer windows span over the MAIN window (because you want to maximize MAIN window height on all pages except last where you put the footer, as it was the case for Gayathri), you must add a template node inside the MAIN window, as the last element. Its height must be equal to the part of MAIN that is overriden by the footer windows, so that a new page is triggered automatically if there is no sufficient space and the footer windows will be printed on next page, and if there is enough space, the footer windows will be printed at the bottom of current page.

  • How to keep initial window size

    Most apps "remember" the last main window size and window placement.
    This seems not to be true for Logic Pro X (my first version) It always start "maximized" (I mean fully covering the display)
    Is there a preferences setting to do it?
    (Who needs the huge 5k display for a single window?)
    Regards

    When your projects get as large as mine, you do need every inch of screen real estate.
    When I save a project, quit LPX, then relaunch, I get the same window size, it is remembered.  But only if I do a save.  You could also lock your screen layout.

  • Smartforms-Dynamic Change of Font Size in main window

    Hi Friends,
       How shall I be able to change dynamically the font size in main window of smartform. If the records are more in main window then the layout comes in 2 pages but if less in 1 page. So I want to decrease the font if the records are more to assign it in 1 page.
    Eg : I can print only 10 lines in 1 page of main window, but if the records exceed 10 lines it is going to next page, so I want to shrink the font size to maintain the layout in 1 page.
    Thanks & Regards,
    Somen
    Edited by: Das_SAP on Jun 23, 2009 7:59 AM

    Hi,
    SmartForms does not offer the option to set some characteristics at runtime. You must work with conditions in your form.
    First find out how many records you have in your table
    DESCRIBE TABLE mytable RECORDS sy-tfill.
    You create 2 texts nodes with the text to be output and assign the font and font size to them. Obviouly, one node will have a big font size and the other one a normal font size but both contain the same information and same variables.
    You can now work with an alternative. If the condition (there are many records for a secondpage) is true, assign text node with normal font size to option TRUE and the other text node to FALSE.
    Optionally, every text node has folder CONDITIONS, where you can say
    SY-TFILL >   10 lines  <-- for text node with normal font size
    SY-TFILL <= 10 lines  <-- for text node with big font size

Maybe you are looking for

  • Data Error in the Query/Report after selective data deletion for infocube

    Hi Experts, Please advise what i was missing and what went wrong... I got a Query (Forecast) on a Multicube...which is based on 2 Infocubes with Aggregates... As i identified some data discrepency..yesteraday i performed selective data deleation on o

  • My iPhone 4's speaker is not working, and will not connect to my PC

    Lately my phone has been acting strange. Initially, it stopped being able to take & receive calls- I couldn't hear the person on the other end, only through speaker phone or headphones. I let it die then left it off for a good 48 hours, when I turned

  • Using credit card to pay remaining funds

    So I want to buy a $24.99 purchase on the App Store (iPad) and I have $25.32 store credit. (The cents part is somewhere around 30 cents) and it says I dont have enought to pay for it, so the tax added to the purchase must not be letting me buy it. So

  • ERRor  ORA-01031: insufficient privileges

    hi all, i am presently working on logical standby database but i am facing a problem from primary database " select * from V$ARCHIVE_DEST" LOG_ARCHIVE_DEST_1 valid LOG_ARCHIVE_DEST_2 ERROR ORA-01031: insufficient privileges at present database not sy

  • Pages terminating on launch CALayerInvalidGeometry how to fix

    Pages terminates on launch and error message says Application Specific Information: *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [2 2; nan nan]' terminating with uncaught exception of t