Adding subform instance - paging issue

Hi,
I have a form which includes a subform where one can press a button to add a subform instance.
The subform is located in the middle of the page, with a small subform below it. 
When I presss the add button to add the subform, the subform below the added subform goes to a new page.  I don't know why its doing this as there is plenty of room below the lower subform before the end of the page.
I recently added data fields to the form.  Before I added the data fields, when I would press the add subform button, the subform below would not go to a new page.
Any ideas?
Andrew

Just a thought but does your form content area extend to the bottom of the page or does it end at the same place the bottom subform ends?

Similar Messages

  • Problem: Adding subform instances

    Hello,
    I'm trying to add some instances of a subform.
    Therefor I added the Instance Control Button to my form.
    I customized it to my form and tested it.
    But when I click the Button, nothing happened. After 5 times, a message opened, that I have reached the limit of instances. But no instance is visible.
    What could be the problem?
    Alternative: Can I programmatically change the minimum count of repeats of the subform? It's possible that I could calculate, how much lines I need. So that is the second chance.

    I solved my problem.
    The reason that instances that were added did not show is because there were positioned subforms below where I was adding instances and they covered up new instances because they did not move.
    I solved the problem by re-organizing the form.
    1. All objects were put in a positioned sub-form. Some of them were in a subform by themselves.
    2. Each positioned subform was wrapped in a flowed subform with flow direction Western Text. The flow direction probably doesn't matter here because the flowed subform has only one object in it.
    3. The page-level subform was made flowed, direction western text.
    4. The form must be saved as a dynamic form.
    When I added instances, everything moved down correctly.
    You can probably not wrap everything in positioned subforms first, but you have to account for LiveCycle left-justifying everything in flowed subforms by putting blank text boxes to act as spacers to keep fields in place.

  • Adding subform instances within subform instances

    In this form (attached), the user chooses a type of page to add by clicking the buttons pagebtn, discussion, assessment, or dropbox. When they click this button, an instance of SBtemplate.Pages is created, but only the subform they requested (page, discussion, dropbox, assessment) appears. So, while the user only sees the page type they requested, they are actually seeing a subform within another subform.
    The problem I am having now is that I can't create instances of subforms within these. For example, in the page subform, I need users to be able to create instances of the image, audio, and video subforms. And in the discussion subform, I need the user to be able to create an instance of the customrubric subform. I think this is not working because I need to specify the instance of SBtemplate.Pages in the code calling the instance manager.
    Is this a correct assessment? If so, how do I do that? If not, what can I do to accomplish this action?
    Thank you!

    I figured this out, so I wanted to post my form in case anyone is having the same problem.
    This is an example of a click event within one of my subforms to create an instance of another subform:
    xfa.resolveNode("xfa.form.SBtemplate.Pages[" + (this.parent.parent.parent.index) + "]").page._image.addInstance(this.parent.index);

  • How to reorder / move new pages and subform instances

    I have a form that has 2 functions - show a hidden page and duplicate the Page 1 and I need to reorder the pages once the user has added an instance or shown a page. I have Form A (Page 1) that can be duplicated but the user can add in a Form C (extra page) to be attached at the end of that instance of Form A.  So it goes like this:
    Form A (Page 1)
    button 1 - Adds new page 2 "Form C" to end of that "Form A"
    if (CompleteFormC.rawValue == 1) then
       topmostSubform.FormC2.presence = "visible"
       xfa.host.pageDown();
    else
       topmostSubform.FormC2.presence = "hidden"
    endif
    button 2: Adds a new instance of "Form A"
    topmostSubform.FormA.instanceManager.addInstance(1);
    xfa.host.pageUp();
    Currently, it adds the Form C to the very end, like so:
    Form A
    Form A
    Form A
    Form C
    Form C
    Form C
    I am trying to reorder the pages so the user can add in a Form C to every instance of Form A, like so:
    Form A
    Form C
    Form A
    Form C
    Form A
    Form C
    It's a little complicated but I would appreciate any help at all!

    Ahh, thank you. I just moved Form C into Form A subform group, it works and stays attached to that instance of Form A. Here's another issue... now that I have Form C appended to Form A, when I add in another Form A it correctly gets added after the last Form C but how can I get the form focus to go to the top of that new instance of Form A?
    Currently I am using: xfa.host.pageDown()
    But now it would be skipping down a few pages. Is there a way to also move to the top of that new instance?
    Thanks!

  • Add Subform Instance

    Hi there,
    Would it be possible for someone to help with a problem I'm having trying to add a subform instance? I've looked at an example and tried to use the same method but for some reason cannot get it to work and I've no idea why! Happy to send the form if that helps.
    Any help greatly appreciated,
    Thanks.
    Ken

    //_<subformname>.addInstance(1); //is syntax do not get confused it starts with underscore followed by subform name (no need to give entire hierarchy)
    //and the number 1 in the parenthesis adds one instance if use 2 two new instances are added
    //check the example below
    // Invoke the Instance Manager to add one instance of the detail subform.
    _Section2Detail.addInstance(1);
    //Invoke the recalculate method to include the field values from the added subform in calculations.
    //add to forec the layout manager to redraw screen
    xfa.form.recalculate(1);
    if you still run into issues do email me copy at n_varma(AT)lycos.com.
    Good luck,

  • Remove subform instance problem

    HI there
    I am using the following code to remove the last subform instance
    subform.instanceManager.removeInstance(1)
    However in test it appears to be removing the last instance but one.
    Can anyone help me fix this.
    Thanks
    Darren

    Hi Paul
    Many thanks for your quick response.  When I added that to my form it removed the first instance rather than the last instance.  I had a look on the links here and for any one else that has a similar prob the following seems to have fixed the problem
    subform.instanceManager.removeInstance(subform.instanceManager.count-1)
    Thanks again
    Darren

  • Livecycle Form Paging Issue

    Hi there,
    Please could someone help with a paging issue that I am having with a Livecycle form? One of the subforms I have created keeps jumping to the end of the page and I do not know for the life of me how to fix it!! It is driving me crazy and I seem to have tried everything.
    Any help greatly appreciated.
    Thanks,
    Ken

    Post your question in one of the LiveCycle Designer forums.

  • Subform instances problem

    I have a subform that reads data from an XML data file.
    For every instance of an XML data elelment - I want a new instance of the subform with the associated data -
    I cannot seem to get this to work - after many attempts.
    from the Live Cycle UI - The for It appears to be working , at least, the bindings are correctly indicating the right information for the subform - but the object palette is grayed out and I can't seem to figure out how to instruct the subform to re-instantiate for every occurrence of a particular XML data element.  It reads the first element encountered , one only .... and misses all other occurrences of the data element.
    would it be possible to zip up the form and the xml data file and submit it for a review -
    the form is actually rather simple - so this is even more frustrating  (Arggh)
    Thanks

    Thaks Paul ;
    I have sent the form and the data file - to the email yo listed.
    The form is signed, etc - and works normally - but i can' identify the issue for the subform instances -
    I gave it my best effort -
    Thanks for assisting .

  • Adding another instance of Event queue in systemEventQueue

    EventQueue q = Toolkit.getDefaultToolkit().getSystemEventQueue();
              q.push(new EventQueue() {
                   protected void dispatchEvent(AWTEvent event) {
                        try {
                             super.dispatchEvent(event);
                             System.out.println("mty thread has started"+event.toString());
                        } catch (Throwable t) {
                             t.printStackTrace();
                             s_log.error("Exception occured dispatching Event " + event,
                                       t);
              });what is the use of adding an instance of the event queue to the systemEventQueue as shown in the code above.

    O.k. - I am not experienced in spite of many years of using this turkey. First of, the sync/don't sync button in preferences - forget it. iCal syncs with MobileMe no matter what the setting. Bummer - except that once the hundreds of duplicate, repeat events are transfered to MobileMe, you can delete them from the web interface - unlike the iCal application that forbids deleting unwanted events.
    Second new discovery. You can put in a repeated event on the MobileMe website with no trouble but, bummer again, the new event on MobileMe does not sync back to the iCal on the iMac.
    Final and most important discovery. I got the problem in the first place by blindly supplying the information asked for and, I kid you not, iCal 4 asks for the end date of a repeated event twice. If you answer the question twice, as I did, you get N * N events. So I hope I can avoid the problem in the future. But really, iCal needs methods to delete repeated events. Also as a former long-term Palm user, I sorely miss the option to restore a calendar from another machine. (the ability to sync or overwrite the local application).

  • Making Subform Instances Visible/Invisible

    Hello,
          I am trying to loop through the Subform Instances of the form and trying to make them visible/invisible on the click of a Check Box. The script seem to run just fine but the values nothing happens to the subforms. The script is written on the CLICK event of check box and is as below:-
    ----- HAP_DOCUMENT.APR.HAP_DOCUMENT.Positions.DATA.CHECK_BOX::click: - (JavaScript, both) ----------
    var
    nCount = APR.HAP_DOCUMENT.T_ELEMENTS.DATA.instanceManager.count;
    //var plan_value = this.parent.PLANS.rawValue;
    var
    plan_value = this.parent.parent.parent.Storage_Form.PLANS.rawValue;
    for (var nItem = 0; nItem < nCount; nItem++) { // Begin Loop T_ELEMENTS after the Instance is created
    var sub_Tele = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"]";
    var tName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA";
    var sCount = xfa.resolveNode(tName).instanceManager.count;
    for (var sItem = 0; sItem < sCount; sItem++) { // Second Loop on T_COLL_CELL
    var fName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA";
    var tCount = xfa.resolveNode(fName).instanceManager.count;
    for (aItem = 0; aItem < tCount; aItem++){ // Third Loop on T_FIELD
    var gName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"].simpleField.VALUE_STRING";
    var lName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"].simpleField.CAPTION";
    var subName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"]";
    var aVal = xfa.resolveNode(gName).rawValue;
    var bVal = xfa.resolveNode(lName).rawValue;
    var subVal = xfa.resolveNode(subName).presence;
    if (bVal == "Position Number"){
    if (aVal == plan_value) {
    if ( this.rawValue == 1) {xfa.resolveNode(subName).presence
    = "visible";}
    else {xfa.resolveNode(subName).presence
    = "hidden"; }
    Is there any other way of addressing the properties of the Subform Instances? Could any please help me as to why there is no effect on the subforms?
    Regards,
    Shishir.P

    Is the form saved as dynamic? Are you getting any errors in the javascript console?
    Paul

  • Reg: Issue adding remote Instances in Br tools Studio.....

    Hai,
    Br tools studio is Installed successfully and able to login to the server, but when trying to add remote Instance it ends up with the below NullPointerException.
    We have used ocj4 according to the SAP Note 1224432, also not using https (as per [SAP] First experience with SAP BR*Tools Studio for Oracle)
    Please let me know is there any work around possible.
    java.lang.NullPointerException     at frames.server._landscape._instances._create._edit_2d_001._frame_2d_000._jspService(_frame_2d_000.java:59)     [SRC:/frames/server/landscape/instances/create/edit-001/frame-000.jsp:19]     at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:810)
    Regards,
    Yoganand.V
    Edited by: Yoganand Vedagiri on Dec 30, 2008 1:30 PM
    Edited by: Yoganand Vedagiri on Dec 30, 2008 1:33 PM

    Hi,
    To avoid this error, Just install JDK 6.0 and OC4J 9.0.4.1.0
    Try accessing thru web.
    If you get an error on accessing javac.exe file, then do the following changes...
    go to the home directory of brtools studio, --> config ---> Edit the file server.xml
    add this line as per below, save and then try to access thru web.
    <global-application name="global" path="application.xml"/>
        *<java-compiler name="javac" bindir="<JAVA_HOME>\jdk1.6.0\bin"/>     *
        <global-web-app-config path="global-web-application.xml"/>
    This should solve your problem.
    Let me know if you have any issue.
    Regards,
    Iyyappan MR

  • Adding subform when no instance exsists

    Hey,
    I have a dynamic form which has a repeatable subform with no min. requirment. As a result when I try to use instanceManager to add an instance it does not work becuase there is no president instance. It does not recognize the object because there are 0 instances to refrence. Is there a way to add the first instance.
    Thanks,
    Nathan

    The instance manager object exists regardless of whether there are any subforms instantiated. You can reference the instance manager by prepending a '_' character to the subform name e.g. for a subform named "MySubform" the following should work
    var theInstanceMgr = resolveNode("_MySubform");
    theInstanceMgr.addInstance();
    The form also needs to be saved as a dynamic pdf rather than a static pdf.
    jean

  • Adding a subform instance

    Being relatively new to anything more complex than simple drop down lists and hiding fields, I am attempting to allow a button to insert another copy (unlimited times) of a specific subform.  I keep running into "you have reached the maximum number of items allowed." when using the preview option.  I have searched in multiple places for trying to resolve this.  I am attaching the generic form if anyone can help.  Thanks.

    The flowed subform indicates that it will take all objects that it encounters and flow them on the page from top to bottom. Positioned content means that you can place objects in a subform and it will maintain their X.Y position within the subform space. So if you place your content within a positioned subform (to retain the X,Y positions, then place the positioned within a flowed subform then the flowed subform will move th eposition to the left side of the page but your objects will remain relative to the positioned subform. So make sure your positioned subform is the width of the page.
    Make sense?
    There is a good example of the architecture that you shoudl follow in the samples that ship with Designer. Have a look at the Dynamic Interactive Purchae Order located in this loaction in the Designer install folder:
    EN\Samples\Forms\Purchase Order\Dynamic Interactive\Forms
    Paul

  • Adding subform using Instance Manager

    Good Day;
    I am developing a form and one of the things I am trying to do is get a full subform to repeat if the user has to add more items.
    The subform has 1 table and 1 row. If the user selects from a status dropdown  anything but “green”  a text box becomes visible and the user must add details.
    I have placed a button on a separate subform if the user wants to (needs to) add 2 or more projects.
    I tried using the following and I get the standard “general” error.
    psl_list_subform.instanceManager.addInstance(1);
    Am I going about this correctly or am I way out in left field.
    Thanks all
    Chomp

    Thanks Paul.
    It did not seem to work.
    I have tried both ways _psl_list_subform.addInstance(1). And
    Psl_list_subform.instanceManager.addInstance(1);
    And I am getting the same error.
    GeneralError: Operation failed.
    XFAObject.addInstance:1:XFA:form1[0]:#subform[0]:psl_list_subform[0]:Table5[0]:Row1[0]:But ton[0]:click
    The element [max] has violated its allowable number of occurrences.
    I have Repeat row for each data item checked off. This field is grayed out for the psl_list_subform.
    Within the subform I have 1 table with 1 row, a text box . When the user clicks the “add” button I would like the table to repeat along with the textbox below it.
    Using the codes above I have tried with the add button inside the psl_list_subform as well as placing the add button outside the psl_list_subform. I still get the same error.
    I have a feeling I am either missing something basic or I am going about this all wrong
    Thanks again Paul

  • Schema binding, add new subform instance

    I'm creating a fairly simple form which has an unknown amount of grouped entries. I made a data connection to my schema and used "Generate Fields" to bring the fields into the document bound to the schema.
    If I do this multiple times using each instance as a subform I can get a nice xml doc out of it ripe for digestion like so:
    <root>
         <entry>
              <data1>
              <data2>
              <data3>
         </entry>
         <entry>
              <data1>
              <data2>
              <data3>
         </entry>
    </root>
    However, I don't know how many entries the client will be adding so I want to have a button that adds a new instance of the bound data as done manually before. I have been able to prove the concept with a static subform using _Subform1.addInstance(1) on a button.
    When I try to apply it to the bound data subform, nothing happens, no error, no new instance. Also the Repeat Subform for Each Data Item area is greyed out in the Object Binding for the Schema-ed subform.
    Does anyone have an idea about what's going wrong here?
    Thanks in advance,
    Kevin

    Few things to check here.
    1) The parent subform needs to be set to Flowed. Then you should get the Repeat Subform for Each Data Item enabled for you.
    2) The form should be saved as dynamic.
    Let me know if you still have issues. If so, send the form to [email protected] so I can have a look at it..
    Thanks
    Srini

Maybe you are looking for