Dynamic Table -  same data repeating in all rows

Hi Satya,
      I am creating the PDF form using WebDynpro java application, and the form should be stored in local disk. The user should be able to fill and save the data in the table at any time.
Note : The table used in PDF form is a dynamic table, an empty row will be added, when ADD button is clicked, the row will be deleted when DELETE button is clicked.
The javascript code udes are,
For adding a row,
xfa.form.PDFDataSource.Subform1.Table1.Row1.instanceManager.addInstance(1);
For deleting a row,
Subform1.Table1.Row1.instanceManager.removeInstance(this.parent.index);
I have done the data binding to the fields of the table. I am able to save the data in local disk.
The problem is, when I click ADD button, a new row is created but with the same data in previous row. even if I create 10 rows, all have same data. If I try to change any data any where in the table, it reflects in all the rows.
Can you give me a solution?
Regards,
Prabhakar.

Thanks. Actually yesterday night I could not do the thorough testing so just waiting for your confirmation.
Actually if you open my PDF in Adobe Life Cycle Designer and check the data binding you will get the answer.
Special care should be taken in designing the context for table attribute.
The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
Now coming to final solution :
For designing a table in adobe interactive form you have consider following
You have to design the view context upto three level, I am explaining you the properties
PDFDataSource (Parent Level1) -  Cardinality 1:1 - Signetone -True - This is assigned to datasource
TableList (Parent Level2) - Cardinality (1:1) -  Signetone -True
TableWrapper(Parent Level3) - Cardinality (0:n) -  Signetone -True
TableData (Parent Level4) - Cardinality (0:1) -  Signetone - false (This is the main point)
Then under TableData value node, you have to put all your table attributes. 
This Value Node name can be anything but hierarchy should be same as I have mentioned above.
Please try out these steps and get back to me if you have any doubt.
Cheers
Satya

Similar Messages

  • Dynamic Tables in PDF - repeating Header row in all pages

    Hi ,
          I have created a dynamic table in PDF, When I add rows, the table is spanning to next page, and I should get the header row in all pages. But, I am getting the header row only for the 2nd page(In Header row properties, I have choosed the header row to be displayed in all pages). I need the Header row to be displayed in all pages.
        To see the previous thread, Click [here|Dynamic Table -  same data repeating in all rows;.
    Thanks and Regards,
    Prabhakar.

    Hi Prabhakar,
    Try out with following step
    Header Row -> Binding -> Select the check box
    Repeat Row for each Data item (Min Count 1)
    Please let me know if this is working or not.
    Cheers
    Satya

  • Is there any table in data dictionary has all clients and their email ids?

    Is there any table in data dictionary has all clients and their email ids?

    Hello,
    KNVK-ADRNP_2
    use this to pass to the bapi BAPI_BUPA_ADDRESS_GETDETAIL. this is function module & will return the address details in diff itabs..
    You can also try the Table ADR6 field SMTP_ADDR where ADDRNUMBER = KNVK-ADRNP_2.
    *************Reward points,if found useful

  • Same image appears in all rows in jsp read only table :(

    ok this is the the problem: let say i have a table IMAGES (ID NUMBER, PIC ORDSYS.ORDIMAGE) and i want to show the table in web with all images... and let say that every row have a different image loaded in db...
    if i want to create an UIX page to show the content all i need to do is just to drag and drop the view as readonly table from data control pallet and when i run the app all images are listed...
    but in JSP instead of different images listed i got one image in all of the rows... and when i change the row currency (click on next or preview) all images in all rows change to the image of current row.... and i dont want that...
    i want to be able to show apropriate image in every row...
    image is shown using adf renderer just like here: http://www.oracle.com/technology/sample_code/products/jdev/10g/StreamingMedia.zip
    but that sample code have the same problem, atleast on my system... instead of differnet images in differnet rows i see the same image in all rows (image from the current row)
    any help?
    thank you in advance :)

    ok guys i found the solution thanks to steve muench and his "upload text file and image example" on his weblog..
    thanks steve :)
    insted of:
    <adf:render model="bindings.Pic"/>
    it should be
    <adf:render model="Row.Pic"/>

  • Table Problem - Fields repeat on every row

    Hi there,
    I have a dynamic table, which adds rows with the click of a buttn, using AddInstance.
    My first problem is that when I try to enter data in my second row (or any after the first) whatever data I enter refreshes the data on the previous rows, so all my rows look exactly the same.
    I have the table bound to a schema, because I need this data to be passed on with Workflow.
    My second problem is that when I pass on the form to the next step, Only the first row is preserved, but all the other ones are lost.
    I think it might be shcema/binding problem. Is there a particular syntax for declaring a table in an xml schema?
    Thanks.

    if you are working with a more complicated schema, then you need to define a subform that is bound to the upper element, and have fields inside that form that relate to the upper element's subelements.<br /><br />eg say you have in the schema<br /><xsd:complexType name="SomeName"><br /><xsd:sequence><br /><xsd:element name="ServiceAreaType" type="xsdLocal:string30" minOccurs="0" maxOccurs="1"/><br /><xsd:element name="ServiceAreaValue" type="xsdLocal:string250" minOccurs="0" maxOccurs="1"/><br /></xsd:complexType><br /><br />the easy way: go to the data view and drag "SomeName" onto your row (and reformat to make it look pretty) - this will bring across text fields for ServiceAreaType and ServiceAreaValue; <br />this will mean that there is a subform that is bound to the upper element "SomeName", and then fields inside it bound to it's sub-elements SerivceAreaType and ServiceAreaValue.<br /><br />hope that makes sense!<br />Amanda

  • How do I configure a dynamic table with Data-Drop Down selections to store separate values?

    I am attempting to use LiveCycle to create an Order Form that uses an ODBC to a SQL database. When a user makes a selection, a separate column in the table references the "Item #" associated in the SQL table, and generates a corresponding barcode.
    My problem is that when I select an Item from the drop down list, all the items in the table change. What am I missing here to separate the rows as different line items? I tried adding a [*] to the end of the connection string, and that allows me to select different options but does not generate the "Item #" or "Barcode" field.
    The screenshot below shows the basic form. When I select any of the data drop downs, all of the Items change.
    I used the auto generated script for the "Add Row +" button shown below. Is this my issue? Or do I need to alter the way I'm setting up the Data Binding in for my Data Drop Down?
    this.resolveNode('Table1._Row1').addInstance(1);
    if (xfa.host.version <8) {
      xfa.form.recalculate(1); }

    package pruebadedates;
    import java.sql.*;
    * @author J?s?
    public class ClaseDeDates {
        /** Creates a new instance of ClaseDeDates */
         * @param args the command line arguments
        public static void main(String[] args) {
            java.sql.Date aDate[] = null;       
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con = DriverManager.getConnection("jdbc:mysql://localhost/pruebafechas", "root", "picardias");
                    if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT dates FROM datestable");
                    rs = stmt.getResultSet();
                        while (rs.next())
                        aDate[] = rs.getDate("dates");
            catch(Exception e)
               System.out.println(e);
            //System.out.println(aDate);     
    }Hi, There is my code and the errors that I get are:
    found : java.sql.Date
    required: java.sql.Date[]
    aDate = rs.getDate("dates");
    Actually I have No idea as How to get a Result set into an ArrayList or Collection. Please tell me how to do this Dynamically. I have like 25 records in that Database table, but they will grow, so I would really appreciate to know the code to do this. I suspect my problem is in the bolded part of my code.
    Thank you very much Sir.

  • Dynamic tables with data driven visibility of columns (XML).

    Hi
    I am trying to make a template in LiveCycle Designer (XDP) with a dynamic table, and with dynamic visibility of columns.
    I want the column visibility to be driven by the xml input.
    (There is no user input.)
    I want the columns to visible in the table only if one or more of the rows has a data cell with value in a spesific column. If not the entire column should dissappear from the generated pdf.
    If that is not possible, my alternative is so set a value in th XML file to hide a tables column. But how?
    I have no problems of making dynamic tables, that is solved.
    I only want to hide unused columns in a table, defined in the xml source file.
    Can anyone help?
    Borge

    Hi,
    The link is not working..
    Please provide a valid link.

  • Dynamic Tables and Data Service

    hi :)
    i have a dynamic table (with add/delete row) buttons,
    one of the fields in each row, needs to populate the rest of the fields with first/last/address information.
    i understand how the data service works for a single fields, is there a way to do this by adding/deleting rows?
    how can i bind them? and how do i ensure that the proper row is populating?
    Thanks!

    To get the instance of the subform that you are working on you can use this.parent.index. Now when addressing the field the occurance number is on the container subform and not on the field itself. So if you had a Page1 - Subform1 - Row - Object you would use Page1.Subform1.Row[instancenumber].object.rawValue
    The only issue is the the [] are illegal in javascript so you can use the syntax:
    xfa.resolveNode("Page1.Subform1.Row[" + this.parent.index + "]").object.rawValue
    Make sense?

  • Creation of dynamic tables in data dictionary.

    Hi Techies,
    Can you help me how to create physical dynamic table in Abap dictionary.
    In the selection screen, if i give Mara or Marc it should be create a dynamic table (zaa_mara) or (zaa_marc) with the similar structure.
    Thanks.

    1) Parameters : P_TABLE --- Enter Table name.(Say mara/Marc)
    2) Get the DataElements of Mara/Marc tables from DD03L.
    Select RollName From DD03L INTO ITAB Where TABNAME = P_TABLE.
    3) Do a Recording in SHDB Tcode for se38 to create table.
    4) Use BDC to Created DBtableTABLE.
    Call Transaction 'SE38' Using T_bdctable.
    Regards,
    Gurpreet

  • NEED HELP... Creating dynamic table from data file...

    Hi
    I'm writing an application for data visualization. The user can press the "open file" button and a FileChooser window will come up where the user can select any data file. I would like to take that data file and display it as a table with rows and columns. The user needs to be able to select the coliumns to create a graph. I have tried many ways to create a table, but nothing seems to work! Can anyone help me?! I just want to read from the data file and create a spreadsheet type table... I won't know how many rows and columns I'll need in advance, so the table needs to be dynamic!
    If you have ANY tips, I'd REALLY appreciated.....

    Thank you for your help. I tried to use some of the code in the examples... I'm really new at this, so I'm not sure how to set it up. I added the code, but when I open a file, nothing happens. Here's the code I have so far...
    package awt;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.text.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    * @author
    public class Main {
    public static void main(String[] args) {
    JFrame frame = new ScatterPlotApp();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.show();
    class ScatterPlotApp extends JFrame implements ActionListener{
    private JButton openButton, exitButton, scatButton, refreshButton;
    private JMenuBar menuBar;
    private JMenuItem openItem, exitItem;
    private JFileChooser chooser;
    private JMenu fileMenu;
    private JTextPane pane;
    private JTable table;
    private DefaultTableModel model;
    private JScrollPane scrollPane;
    private Container contentPane;
    /** Creates a new instance of ScatterPlotApp */
    public ScatterPlotApp() {
    setTitle("Data Visualizer");
    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension d = tk.getScreenSize();
    int width = 867;
    int height = 800;
    setBounds((d.width - width)/2, (d.height - height)/2, width, height);
    contentPane = getContentPane();
    JPanel panel = new JPanel();
    //pane = new JTextPane();
    panel.setLayout(new FlowLayout(FlowLayout.CENTER));
    contentPane.add(panel, BorderLayout.SOUTH);
    //contentPane.add(pane, BorderLayout.NORTH);
    scatButton = new JButton("Create ScatterPlot");
    scatButton.addActionListener(this);
    openButton= new JButton ("Open File");
    openButton.addActionListener(this);
    exitButton = new JButton ("Exit");
    exitButton.addActionListener(this);
    refreshButton = new JButton ("Reload Data");
    refreshButton.addActionListener(this);
    panel.add(openButton);
    panel.add(scatButton);
    panel.add(refreshButton);
    panel.add(exitButton);
    fileMenu = new JMenu("File");
    openItem = fileMenu.add(new JMenuItem ("Open", 'O'));
    openItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.CTRL_MASK));
    openItem.addActionListener(this);
    exitItem = fileMenu.add(new JMenuItem ("Exit", 'X'));
    exitItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.CTRL_MASK));
    exitItem.addActionListener(this);
    JMenuBar menuBar = new JMenuBar();
    fileMenu.setMnemonic('F');
    menuBar.add(fileMenu);
    setJMenuBar(menuBar);
    public void actionPerformed(ActionEvent e){
    Vector columnNames = new Vector();
         Vector data = new Vector();
    try{
    Object source = e.getSource();
    if (source == openButton || e.getActionCommand().equals("Open")){
    chooser = new JFileChooser(".");
    int status =chooser.showOpenDialog(this);
    if (status ==JFileChooser.APPROVE_OPTION)
    File file = chooser.getSelectedFile();
    FileInputStream fin = new FileInputStream(file);
    BufferedReader br = new BufferedReader(new InputStreamReader(fin));
    String line;
    //StringBuffer bf = new StringBuffer();
    StringTokenizer st1 = new StringTokenizer(br.readLine(), ";");
                   while( st1.hasMoreTokens() )
                        columnNames.addElement(st1.nextToken());
                   // extract data
                   while ((line = br.readLine()) != null)
                        StringTokenizer st2 = new StringTokenizer(line, ";");
                        Vector row = new Vector();
                        while(st2.hasMoreTokens())
                             row.addElement(st2.nextToken());
                        data.addElement( row );
                   br.close();
    model = new DefaultTableModel(data, columnNames);
              table = new JTable(model);
    scrollPane = new JScrollPane( table );
    getContentPane().add( scrollPane, BorderLayout.NORTH );
    while((line=br.readLine())!=null)
    bf.append(line+"\n");
    pane.setText(bf.toString());
    //pane.setText(bf.toString());
    else if (source == scatButton){
    else if (source == exitButton || e.getActionCommand().equals("Exit")){
    System.exit(0);
    else if (source == refreshButton){
    catch (Exception ex){
    ex.printStackTrace();
    }

  • 'Call Transaction' on same data repeated causes it to lock

    Hi,
    Has anyone come across a case where you use CALL TRANSACTION repeatedly on a tcode with the same input and sometimes you end up having a locked data?
    I am calling CN22 repeated with the request to change the same network and I end up having locked data for no particular reason. Do I need to put a PAUSE between the call transaction?
    Thanks,
    Guan

    Hi Guan,
      yes it is possible. In fact if the transaction calls a FM in asyncronous mode (that locks an object), it may happend that when the statement CALL TRANSACTION ends, the async.FM has not release the lock yet.
    you can ty to do the following (if you know the name of the locked object).
    call transaction ...
    * loop until the object is unlocked
    do.
      call function 'ENQUEUE_<object name>'
      exporting
        mode = 'E'
        <object key>.
      if sy-subrc = 0.
        exit.
      endif.
    enddo.
    call transaction ...
    Regards, Manuel

  • How to refresh a table of data after inserting a row using ADF BC

    Hi,
    i am using ADF BC, JSF to construct a page to browse and another to create/update record. But after creating or updating the record it is not reflected when i come back to browse page.
    I tried to insert invokeaction in page definition page but i can not find the iterator bindings for that table in Binds option.
    can any one provide any example how to do it.
    Please help me.

    On the page def for your submit page, add inside the executables (on the structure pane) your iterator you want refreshed (if it isn't already there).
    Then double click on the submit button and bind it to a backing bean. My method in the backing bean looks like:
        if ( !operationBinding.getErrors().isEmpty() )
            return null;
        DCBindingContainer dcbindings = (DCBindingContainer)bindings;
        DCIteratorBinding appsIter = dcbindings.findIteratorBinding("ApplicationsIterator");
        appsIter.executeQuery();
        return null;
    }The executeQuery method will refresh that iterator for your return page. The "ApplicationsIterator" is what the structure pane calls your iterator. Works for me.
    Brian

  • Dynamic table data isn't transfered to the context, with webdynpro for java

    Hi,
    I'm using LifeCycle designer 7.1 and Adobe reader 7.0.5.
    I'm trying to make a dynamic table in a PDF form, that will be related to a table in the context.
    I've designed the context like it says here: Dynamic Table -  same data repeating in all rows
    I made a dynamic table and related the cells on the row to the context, by dragging the variables from the DataView into them.
    The table is related to TableList, the row to TableWrapper[], and the cells are related like this: TableData[].ItemName
    And there's a button which adds a row to the table.
    And for some reason, that's not working; When hitting the Submit to SAP button, it doesn't appear as though the data was transferred to the WebDynpro context.
    Can anyone help me with it please..?
    By the way - I tried using the SAP standard subform controls, the 'Insert Remove Move' control.
    When trying it through the PDF preview, it doesn't work - whatever I click displays an error message, and when it runs from the browser - It automatically searches for an update for Adove Reader (I use 7.0.5).
    Is it supposed to work only with version 8 of the Adobe Reader?

    Well, I reinstalled ACF, and now the Submit button works, and the Insert Remove Move buttons work as well.
    But the table context still doesn't work.
    I had put some values in the context, in DoInit, and they appeared in the table in the form, but when I changed them in the form it didn't affect the context at all.
    There's a simple attribute value related to a text field, which IS affected when changed in the form, and the Submit button is clicked. Only the table doesn't work.
    How can I make it work?
    Thanks,
    Udi Dekel

  • Dynamic Table in PDF - only first row passed to the WD Java

    Hi Experts,
    I'm working with Web Dynpro for Java on WAS 2004s SP13, ADS for SP13 and LiveCycle Designer 7.1
    I am facing a problem related to PDF-dynamic table generation.
    I am creating the PDF form with a dynamic table, an empty row will be added, when ADD button is clicked, the row will be deleted when DELETE button is clicked. After form submit, only first row of the table is passed to the Web Dynpro. I'v tried to use different dataSource Context node structure without results. The structure diescribed in the thread [Dynamic Table -  same data repeating in all rows;  doesnt works for me. The same happend if i try to folow the advise from Wiki https://wiki.sdn.sap.com/wiki/display/WDJava/Creating%20Table%20in%20Interacting%20form%20using%20Web%20Dynpro.
    Beside this,  my DropDown list in the table column is not populated. I know how to populate the DropDown list outside of table. That's working fine. But the DropDown in the table just not respond on the click (is not going open). I'm pretty sure that this is a result of a Context node structure/binding issue. 
    Please suggest me how can i implement dynamic table and populate the data in table dropdown column.
    Edited by: A. Mustacevic on Sep 7, 2009 12:18 AM

    Hi Prabhakar,
    You describe exactly my situation. The node which is bound to the table row has cardinality 1..n. Exactly Context structure is:
    node dataSource (cardinality 1..1/ Singleton true) ======> dataSource of the Interactive Form
    subnode TableList (cardinality 1..1/ Singleton true) ======> bound to the table in the Interactive Form
    subnode TableWrapper (cardinality 1..n/ Singleton true) ======> bound to the table row in the Interactive Form
    subnode TableData (cardinality 0..1/ Singleton false) ======> table data
    attribute 1  ====>     Context nodeattribute bound to the table row field   
    attribute 2
    This structure is recommanded in the post that I found on the Forum (see the firs hyperlink in my firs post).
    Is this structure correct? Why is not working?
    Your link is not working. Can you post the correct one.
    Thanks in advance.
    Regards
    Adnan
    Edited by: A. Mustacevic on Sep 8, 2009 1:56 PM
    Edited by: A. Mustacevic on Sep 8, 2009 1:57 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:00 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:01 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:02 PM

  • How to check if a field in the table is same in all rows??

    Hi Folks,
    Is there a feature in abap where we can check if a field in a table is same in all rows.
    Thanks,
    Matt

    This can be easily self-programmed
    read itab index 1.  "get first row
    "now check if exeists any entry with different value
    read itab with key field1 ne itab-field1 transporting no fields.
    if sy-subrc = 0.
      "not all rows have the same value
    else.
      "all rows have the same value
    endif.
    Regards
    Marcin
    Right now I noticed that using NE operator is not allowed in READ TABLE statement, but you can do simple loop instead
    read itab index 1 into l_field1.  "get first row
    loop at itab where field1 ne l_field1.
       flag = 'X'.
       exit.
    endloop.
    if flag = 'X'.
      write: 'some fields are not equal'.
    endif.
    Edited by: Marcin Pciak on Oct 6, 2009 5:35 PM

Maybe you are looking for

  • Howto call/open a Windows program on the SAP client?

    Hi all, in an ABAP report I want to call a program that is installed on the client machine running the SAP GUI, optionally with a parameter. For example, on the client machine a program called "test" is installed, I want to call it from within my ABA

  • HT4305 connect ipad to sony tv over wi fi

    connect ipad to sony tv over wi fi

  • PL/SQL Queries in OC

    Is it possible to write normal SQL Queries into the Custom Code of OC? for ex - "select count(a.visdate) from tablename" or "select max(col) from table name"? is it also possible to write and set up CURSORS in OC like how we do normally in PLSQL of o

  • WRT120N working firmware version 1.04

    try this version for firmware version WRT120N. 1.04 is working my laptop msi and desktop.... hope you can help on this....  http://downloads.linksysbycisco.com/downloads/firmware/1224646102739/FW_WRT120N_1.0.04.002.bin

  • CS6 Color Channel Problem When Saving Oil Paint Files

    When I save an OIL PAINT file created in Photoshop CS6, it saves with red and blue shapes over the image. Before saving, the image looks fine. I'm running windows 8. Is it me or a CS6 bug?