Adding Additional Rows to a table in subform

I am fairly new to Adobe LiveCycle and would really appreciate some help.  I have simple table and would like for the user to click "+" or "-" to manage the number of row.  I can't figure out now to complete this...then arrive at a SubTotal.

Hi,
I made your form dynamic, also i added some subforms to make your flowed stuff look good and i added sum script to Totla field.
Form attached.
BR,
Paul Butenko

Similar Messages

  • How to default the value of a selectOneChoice when adding a row to a table

    I have a table where one of the fields is a selectOneChoice. When adding a row to the table, the new row to be added displays the selectoneChoice field blank. I would like to have this field default to a specific value within the selectoneChoice when clicking the add button. Any suggestion on the code I need to add in the backing bean? Thanks in advance.

    After some studying I figured out how to do this... code below for anyone interested:
    DCIteratorBinding dcib = (DCIteratorBinding) bindings.get("someIterator");
    RowSetIterator iter = dcib.getRowSetIterator();
    Row newRow = iter.createRow();
    newRow.setAttribute("yourFieldName",fieldDefaultValue);
    iter.insertRowAtRangeIndex(0, newRow);
    iter.closeRowSetIterator();

  • Adding a row to a table with a button

    Good day all;
    I think I have now lost it... ;>))
    LifeCycle Designer 8.05
    Anyway, If the user of the form requires additional rows to enter infoamtion, I want them to be able to add a row using a button. I have tried using the following
    Table"N".Row2.instanceManager.addInstance(1); ="N" is the table name.
    I have done this on a couple of other forms but I must be missing something as I am geting the following error in the java Consol
    "GeneralError: Operation failed.
    XFAObject.addInstance:1:XFA:form1[0]:#subform[0]:#subform[1]:Button1[0]:click
    The element [max] has violated its allowable number of occurrences."
    The form is saves as a Arcobat 8 Dynamic XML form
    I
    Page 1 is flowed
    Subform is flowed
    Would someone be so kind as to point me in the right direction.
    Thanks all
    Chomp

    Thanks Radzmar;
    You were correct.... It appears I was only looking at the bindings for the damn table not the row.......
    Thanks again

  • Adding/Deleting rows in a Table

    I am trying to get a couple of buttons to work in a table to add/delete rows. I have followed the directions in the LiveCycle designer help and it isn't working.
    In a test setup the only difference I can see from the help file is my Table is called Table1 and the subform containing the 2 buttons is called Subform1
    I have therefore amended the script for the click event for the AddRow to
    "Table1.Row1.instanceManager.addInstance(1);"
    Any ideas where I am going wrong?
    TIA
    Antony

    Hi,
    My usecase is that user enters a url with parameters for example in the text box--> http://host:port/employee/all?department=abc&location=india. Now i want to parse this url , get the parameters out and put it in the table so that it is convenient for users to modify these parameters. User has a option to add and delete the parameter in the table. So once all this is done and user clicks on say save i don't need to send this table to server. i just have to make sure that the values added/deleted from the table are in sync with the url. So in the server i get all the parameters from the url and continue.
    Since this is only needed on the client side i wanted to know if we can create a table with no values and then say on tabbing out of the url text box call a javascript that takes value from it and adds new rows to the table.
    I am using JDEVADF_MAIN_GENERIC_140109.0434.S

  • Additional rows in a table - again

    I used the attached file to add-delete-insert rows within a table. It worked wonderfully until it got to about four pages. Then it began to repeat the header row. First just one repeat....but as the table grew, so did the number of headers, particularly on page two. I had a whole page full of headers as the table grew. First I thought it might be the additions I had made, but it does it on the basic file with which I started. Just click on "ADD" a few hundred times and watch the header row on page two. Weird problem. Anyone know why?

    Hi,
    It is on Object palette - Binding tab.

  • Dynamically adding a row in a table in JSF

    Hi All,
    I am searching for a control in JSF using which I can dynamically add more than one row in a table. Currently I am handling this in javasript where I have to click on the "Add Row" button to add one more row at the bottom of the table. I want to get rid of javascript.
    If anyone knows about such control then please help me.
    Thanks in advance.
    Regards,
    Saket

    hello Saketh,
    here is the code for Create Delete Update code where a row is added for every button click..and the JSF code is at the bottom.. today u r blessed with ocean. :-) have fun!!
    package redrose;
    import net.sf.hibernate.Session;
    import net.sf.hibernate.Transaction;
    import net.sf.hibernate.Query;
    import javax.faces.model.DataModel;
    import javax.faces.model.ListDataModel;
    public class RowEntry {
         private DataModel datamodel = null;
         static Integer sid;
         private Medata mdobject = null;
         private Medata nm=null;
          * @return Returns the newMdobject.
         public Medata getNm() {
              nm = new Medata();
              return nm;
          * @param newMdobject The newMdobject to set.
         public void setNm(Medata newMdobject) {
              this.nm = newMdobject;
          * @return Returns the mdobject.
         public Medata getMdobject() {
              return mdobject;
          * @param mdobject The mdobject to set.
         public void setMdobject(Medata mdobject) {
              this.mdobject = mdobject;
         public DataModel getDatamodel()
              datamodel = new ListDataModel();
              Session hibSession;     
              try{
                   hibSession = HibernateSessionFactory.currentSession();
                   Query q = hibSession.createQuery("FROM Medata");                    
                   q.setMaxResults(9999);
                   datamodel.setWrappedData(q.list());
              catch(Exception ex){
                    System.err.println("%%%% Error GetData %%%%");
                    ex.printStackTrace();
              return datamodel;
          * Inserting a new Record by reading from Client
         public void insertEntry()
                  Transaction tx = null;
                   Session session = null;
                   try{
                        session = HibernateSessionFactory.currentSession();
                        tx = session.beginTransaction();
                        Medata     dbmedata = new Medata();
                             dbmedata.setEmploy(nm.getEmploy());
                             session.save(dbmedata);
                        tx.commit();
                        session.close();
                   catch(Exception ex){
                        System.err.println("%%%% Modify Data %%%%");
                        ex.printStackTrace();
          * Modify data
         public void updateEntry()
              int a =0;
             if (this.datamodel == null) return;
             Medata mdupdate = (Medata) this.datamodel.getRowData();
             if (mdupdate == null ) return;
              Transaction tx = null;
              Session session = null;
              try{
                   session = HibernateSessionFactory.currentSession();
                   tx = session.beginTransaction();
                   Medata dbmedata = (Medata) session.load(Medata.class,mdupdate.getId());
                   if (dbmedata != null){ // we have to update the record
                        dbmedata.setEmploy(mdupdate.getEmploy());
                        session.update(dbmedata);
                   else // we have to insert the record
                        dbmedata = new Medata();
                        dbmedata.setEmploy(mdupdate.getEmploy());
                        session.save(dbmedata);
                   tx.commit();
                   session.close();
              catch(Exception ex){
                   System.err.println("%%%% Modify Data %%%%");
                   ex.printStackTrace();
          * Delete Data
         public void removeEntry()
             if (this.datamodel == null) return;
             Medata mdupdate = (Medata) this.datamodel.getRowData();
              Transaction tx = null;
              Session session = null;
              try{
                   session = HibernateSessionFactory.currentSession();
                   tx = session.beginTransaction();
                   Medata dbmedata = (Medata) session.load(Medata.class,mdupdate.getId());
             if (mdupdate == null ) return;
                   if (dbmedata != null){ // we have to update the record
                        session.delete(dbmedata);
                        tx.commit();
              catch(Exception ex){
                   System.err.println("%%%% Delete Data %%%%");
                   ex.printStackTrace();
    Here starts the JSF code
    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <base href="<%=basePath%>">
         <title>My JSF 'trial.jsp' starting page</title>
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <!--
         <link rel="stylesheet" type="text/css" href="styles.css">
         -->
    </head>
    <body>
         <f:view>
              <h:form>
         <h:dataTable border="3" value="#{bla.all}" var="currentRow">
                          <h:column>
                            <f:facet name="header">
                                 <h:outputText value="Employee Name" />
                            </f:facet>
                  <h:inputText value="#{currentRow.employ}">
                            </h:inputText>
                       </h:column>
                          <h:column>
                            <f:facet name="header">
                                 <h:outputText value="Employee Number" />
                            </f:facet>
                            <h:inputText value="#{currentRow.id}"></h:inputText>
                       </h:column>
                       <h:column>
                       <f:facet name="header">
                       </f:facet>
                       <h:commandButton id="Delete" action="#{bla.insert}" value="Delete"></h:commandButton>
                  <h:commandButton id="Modify" action="#{bla.modify}" value="Modify"></h:commandButton>
                       </h:column>
                  </h:dataTable>
                   <h:commandButton id="Insert" action="#{bla.insert}" value="Insert"></h:commandButton>
               <%--h:outputText value="#{bla.sid}"></h:outputText--%>
               </h:form>
         </f:view>
    </body>
    </html>
    Faces-config file starts here
    <managed-bean>
              <description>Inserts a record</description>
              <managed-bean-name>bla</managed-bean-name>
              <managed-bean-class>redrose.RowEntry</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>     
         

  • Adding new row in a table

    hi experts ,
    i am working on a table and on an action of button i need to add a row. The table has a lots of elements like input fields, dropdown by key, textviews etc. i have created a new row by incresing visible row count on action but the above mentioned elements are not editable . The cardinality of the node bound to table is 1..n and selection is 1....n.
    Please suggest me a proper solution.
    Thank you.

    Hi,
    Try this code,
    IPrivatePopUpMenuView.IProductsElement ele=wdContext.createProductsElement();
                   ele.setProductId(str1);
              ele.setQuantity(str2);
              ele.setPrice(str3);
              ele.setName(str4);     
              ele.setDetails("Detailed discription for  "+str4);
              wdContext.nodeProducts().addElement(ele);
    Here str1 str2 are all the value which unwant to add to table.
    Regards,
    H.V.Swathi

  • How do you add additional rows to a table

    ...on Word of Mac?

    If you just want to add an extra row at the end of the table all you have to do is hit tab while in the last cell, shroudlupe.
    If you want to add a row in the middle or top of a table, highlight the row above or below where you want the new one to be and then go to the "Table" menu. Go down to the "insert" option and choose whichever is appropriate from "Rows below" or Rows above".
    (If you want to insert more than one row ,then select multiple rows at the first step above, rather than just one , and it will insert the same number of rows that you have selected).
    Another way of doing it, after selecting a row in a table, is to simply access the contextual menu by holding down the control key and clicking, or by "right clicking", and then select "insert rows" from the options presented.
    Cheers
    Rod

  • Adding 10 rows in a table.

    Hello,
    I need to create a 10 rows in a table by clicking a button. I got it in javascript but i am unable to achieve it in ui5.
    can you please help me on this.
    Thanks and Regards,
    Vicky.

    try this.
    Example
    -D

  • Adding/removing rows in a table

    Hi,
    how can I add/remove rows in a table in adobe acrobat pro? Please help.

    It won’t look pretty, but you can manually redact the rows. This can either replace the removed rows with a specific color or you can make the removed spot white/no color.

  • Creating a form which allows the adding of rows to a table

    Hi there,
    I am trying to create a form to get declarations of trusteeships, directorships and large shareholdings of our company's directors, so that we can manage any conflicts of interest. Some directors will have one or two declarations to make; others may have a dozen or so.
    I want to create a form for each director to make all of their declarations, but can't see how to create a table, with the ability to add more rows, if you have more declarations to make.
    Is there a way t do this?

    This is not really possible to achieve with a form created in Acrobat. You
    can create the fields in advanced and then show/hide them, but you can't
    "re-flow" the file on the fly and add more form fields to it, pushing the
    rest of the content down the page. For that you would need to use Adobe
    LiveCycle Designer, which has a separate forum here.

  • Adding one row to a table for displaying calculated amounts

    Hi,
    My requirement is like this:
    We are getting values  in the table with the columns
        recno     rectype      amount
            1            autofare         100
             2            airfare    50
            3             busfare    25
             4           railfare       10
             5          carfare         75
       i am getting all the values from backend.
    now our requirement is want to calculate amount for reno1,3,5 and row should be displayed  as below:
    recno   rectype  amount
      1           autofare  100
       3         busfare    25
      5         carfare      75
    amount                 200     (here amount is not coming from backend.we need to add amount for recno 1,3 ,5 and iot should be       displayed like that)
    2            airfare    50
    4           railfare       10
    amount               60
    please suggest how to proceed on this?
    Regards,
    Anitha

    hi Anitha,
    you have to create a separate value node for storing original elements and their subtotals in the order you want them in the table.
    For showing totals you can use cell variant in the table to give a different look and feel for the subtotal row.
    Add another attribute in the value node for storing the variant name. bind this attribute to selected cell variant of table column.
    int subtotal =0;
    for(int i =0;i < size;i++)
    IPrivate<view>NodeElement dataElement = dataNode.getDataElementAt(i);
    IPrivate<view>NodeElement tablelement = wdContext.node<table>().createElement();
    wdCopyService.copycorresponding(dataElement, tableElement);
    //set cell variant to blank for original rows
    tableelement.setSelectedVariant("");
    wdContext.node<table>().addElement(tablelement);
    //Calculate subtotals and add them in another valuenode
    subtotal = subtotal + dataElement.getAmt();
    if(i ==3)// give condition at which you need to add subtotal row.
    IPrivate<view>NodeElement subtotalelement = wdContext.node<table>().createElement();
    subtotalelement.setSubtotal(subtotal);
    //set cell variant for subtotal row
    subtotalelementsetSelectedVariant("subtotal");
    wdContext.node<table>().addElement(tsubtotalelement);
    subtotal =0; //reset subtotal
    hope this helps!
    Monalisa

  • CLIENT_OLE2 - Attempting to insert additional rows into a table in MS Word

    I cannot find the commands to perform the above. I have looked at the Microsoft site but it only gives the VB equivalent and I cannot work out the syntax for CLIENT_OLE2 commands. Does anyone know where I can find a list of Word.Application commands that directly correspond to the old Word.Basic commands?

    Jeff·Þ·Bohrer wrote:
    2) Why is it that after every other iteration the row values are erased?
    Classic race condition.  dump the for loop and p-node and just wire the 2D array to the table terminal.!
    I'm not seeing the race condition.  What I am seeing is the table emptying after the last element was written to it on every other run.  I saw watched this with highlight execution on.
    But I'm in full agreement with just writing to the terminal.  It is a 1D array, so you will need to use a build array and transpose 2D array in order for it to write properly.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • VT01N User exit for adding additional field to VTTP table and populate the

    Hi,
    Can any one sujjest what is the use exit/bapi when we add(append) a custom field to vttp table to populate the incremental number  based on ship to address when we create a shipment..
    need user exit in ...............to populate data to vttp table custom field when we append......

    hi,
    check these exits for vt01n.
    Transaction Code - VT01N                    Create Shipment
    Enhancement/ Business Add-in            Description
    Enhancement
    V56USVDP                                Preparation for updating new objects for transport?
    V56USVDO                                Update new objects for transport
    V56USTAT                                User-individual definition of transportation planning status
    V56UNUMB                                Shipment number allocation
    V56UDLUP                                Obsolete as of 4.6C: Delivery Update on Delivery Routines
    V56UCHCO                                Check shipments are complete
    V56UCHCH                                Shipment processing: Check whether changes were made
    V56TDLIF                                Filter Delivery Items for Shipment
    V56SLDET                                Shipment processing: Leg determination
    V56MVT04                                Extensions for Collective Processing of Shipments
    V56LOCID                                Shipment Processing: Determine Location Identification
    MV56AINI                                Initialization of transaction control for transportation
    V56AFCCH                                Shipment processing: Check function code allowed
    V56AGTAR                                User Exit for Filtering Shipping Unit Calculation
    V56ARCHV                                Customer-spec. checks for archiving shipments
    V56ATKTX                                Change the number of lines for text input in shipment
    V56BMOD                                 Transportation processing: Field modification
    V56DISTZ                                Shipment Processing: Determine Distance
    V56FCOPY                                Shipment processing: Copy delivery data
    V56FSTAT                                Shipment processing: Activities when setting a status
    V56L0001                                Status of Shipments for a Delivery
    V56LDELI                                Read Delivery Data for Shipment Processing
      Business Add-in
    BADI_LE_SHIPMENT                        BadI: Shipment Processing
    BADI_V56N                               User Exit for Message Determination: Shipment

  • Isuue in adding additional records to hashed table

    Hi,
    I want to add records to a hashed table.
    my code is:
    data: ipn_pc_zoba type hashed table of tpn_pc_zoba with unique key vbeln,
    wpn_pc_zoba like line of ipn_pc_zoba.
    loop at izoba into wzoba.
    clear wpn_pc_zoba .
    read table ipn_pc_zoba into wpn_pc_zoba with key vbeln = wzoba-LS_KDAUF.
    if sy-subrc ne 0.
    wpn_pc_zoba-vbeln = wzoba-LS_KDAUF.
    append wpn_pc_zoba to ipn_pc_zoba.
    endif.
    endloop.
    The Error is : You cannot use explicit or implicit index operations on tables with types "HASHED TABLE" or "ANY TABLE". "IPN_PC_ZOBA" has the type "HASHED TABLE". It is possible that .
    How to solve this?
    Please reply ASAP.
    Regards,
    SRI

    Hi,
    use
    insert wpn_pc_zoba into table ipn_pc_zoba.
    to insert the new record into the hashed table.
    Regards,
    Thomas Langen

Maybe you are looking for