Filling a Table from text boxes

This is what I am starting with
Table1.Row1.Cell2.rawValue = TextField3.rawValue;
                  TextField3.rawValue = "";
                  Table1.Row1.Cell3.rawValue = TextField2.rawValue;
                  Table1.Row1.instanceManager.addInstance(1);
This is on my button click. The table gets filled from the Text field.
However i need to move the Row in the table to the next row.
Can i do this with some kind of variable like
var n;
n = "1";
Table1.Row(n).Cell2.rawValue = TextField3.rawValue;
TextField3.rawValue = "";
Table1.Row(n).Cell3.rawValue = TextField2.rawValue;
Table1.Row1.instanceManager.addInstance(1);
n + 1
My syntax is probably way off but is there a way to do something like this??

I think this is what you are looking for.
This script is attached to the click event on the  'Add Result' button of the attached PDF. It takes the values from the columns in the last row of the table, creates a new row, populates the columns in the new row with the column values from the former last row, and resets the second last row.
var lastRow = form1.page1.subform1.table._row.count;
var currentRow = lastRow - 1;
var wins_ = table.resolveNode("row[" + currentRow + "].wins");
var draws_ = table.resolveNode("row[" + currentRow + "].draws");
var losses_ = table.resolveNode("row[" + currentRow + "].losses");
form1.page1.subform1.table.row.instanceManager.addInstance(1);
table.resolveNode("row[" + lastRow + "].wins").rawValue = wins_.rawValue;
table.resolveNode("row[" + lastRow + "].draws").rawValue = draws_.rawValue;
table.resolveNode("row[" + lastRow + "].losses").rawValue = losses_.rawValue;
table.resolveNode("row[" + currentRow + "].wins").rawValue = "";
table.resolveNode("row[" + currentRow + "].draws").rawValue = "";
table.resolveNode("row[" + currentRow + "].losses").rawValue = "";
Steve

Similar Messages

  • 30EA3 - Edit Table/Create Table(Advanced) - Table Name, Text Box Size

    I am not sure if its the same on non-Linux versions, but in the edit table dialog, the table name text box size is tiny. Its only wide enough that you can see approx 7 chars.
    Is it possible to increase this? The size of the text box in the simple create table dialog seems like a good size. As far as I can tell, it is not tiny to conserve space for other items.
    Anyway, it's just a minor issue that wont prevent me from doing work - just think it'd be better a bit bigger. I am sure it didn't used to be this small.
    Ta,
    Trent

    oh interesting.
    are you using openJDK?
    $ /usr/lib/jvm/java-6-sun-1.6.0.22/bin/java -version
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
    Ta,
    Trent

  • Images in PDF file being converted into Word elements (e.g. tables and text boxes)

    A friend of mine has recently signed up to ExportPDF so that he can convert PDF format wiring diagrams into Word format.  On trying this the other day, we found that the wiring diagrams in the PDF file were being converted into elements of Word such as tables and text boxes.
    Is there any way to get the diagrams converted into pictures within the Word document so that they can be copied and pasted into other documents?  From looking at the limited settings panel to the right of the document in Reader I can't see it.

    Perhaps an application dedicated to converting PDF's to Word documents may get better results.
    Here's a free online converter I use with occasional success: http://www.pdftoword.com/

  • Fill database table from internal table

    I made one table ZDISP_CHDOC_CC and want to fill that table from internal table.and i got runtime error. that duplicate entry
    and two entry are like 10 200000    likhp 10
                                        10 200000    likp   10
    DESCRIBE TABLE IT_CHDOC .
        LOOP AT IT_CHDOC.
        INSERT ZDISP_CHDOC_CC FROM  IT_CHDOC.
        endloop.
        IF SY-SUBRC = 0.
          COMMIT WORK.
        ELSE.
    and when i used following then only one entry is insreted.
    DESCRIBE TABLE IT_CHDOC .
        LOOP AT IT_CHDOC.
        INSERT ZDISP_CHDOC_CC FROM  IT_CHDOC.
        IF SY-SUBRC = 0.
          COMMIT WORK.
    endloop.
        ELSE.

    Hi,
    Replace your current code
    DESCRIBE TABLE IT_CHDOC .
    LOOP AT IT_CHDOC.
    INSERT ZDISP_CHDOC_CC FROM IT_CHDOC.
    endloop.
    IF SY-SUBRC = 0.
    COMMIT WORK.
    ELSE.
    WITH THE ONE GIVEN BELOW
    DESCRIBE TABLE IT_CHDOC .
    INSERT ZDISP_CHDOC_CC FROM TABLE IT_CHDOC ACCEPTING DUPLICATE KEYS.
    IF SY-SUBRC = 0.
    COMMIT WORK.
    ELSE.
    Regards,
    Siddarth

  • How to clear font and or fill/stoke attributes from new boxes in InDesign3

    InDesign CS3 --How can I clear out the font style that automatically appears in any new text box I make? It's not the Basic Paragraph Style set up for the document but seems to be something I used in a design months ago. It does the same thing with an old fill color and stroke when I make a new picture box.
    I've looked in the Prefs for some way to clear this and I tried deleting the unwanted font from the document and resaving it but it the same font automatically fills the next new box after I reopen it.
    Thanks for any ideas.
    np

    Hello
    np
    It looks like an Effect just try this out go to object Menu Effects and Clear effects or Transparencies
    Imran

  • I can't type on a document unless in a table or text box, what happened?

    In Pages, when I try to type something, it "bings" at me.  I can't see any typed font unless I type in a table or in a text box.

    You opened a Layout template instead of a Word Processor template.
    Layout templates have no default type area (between the document margins) and as you have found they require that you create an object to type into.
    Choose from the Word Processor category in the Template Chooser sidebar instead.
    Peter

  • Filling a table from an array

    Dear all,
    I need your help in this issue please,
    I have this code that reads from a table A , fills an array and then insert into anoher table B the content of the array.
    The table A has a matrix table data:
    line column value
    1--- 1--- 133
    1--- 2--- 134
    1--- 3--- 1566
    2--- 1--- 5362
    2--- 2--- 822
    2--- 3--- 116
    Table B has the following structure and should be filled as follows by the procedure code:
    line ||| value_column_1 ||| value_column_2 ||| value_column_3
    1 ||||| 133 |||||||||||||||| 134|||||||||||||||||| 1566
    2 ||||| 5362 |||||||||||||| 822 ||||||||||||||||| 116
    The problem is that the procedure code doen't fill the Table B with the correct data, any suggestions about how to fix it please:
    +create or replace+
    +PROCEDURE proc(+
                                +P_param1 IN DATE,+
                                +P_param2 IN VARCHAR2,+
                                +P_param3 IN VARCHAR2)+
    +IS+
    +V_DESC                        varchar2;+
    +V_TabLine                number(5):=-1;+
    +V_PrvLine                number(5):=-1;+
    +V_TabVal                number(18,3);+
    +V_Tabcol                number(5);+
    +V_date                date;+
    +V_code               varchar2;+
    +V_grp                number;+
    +TYPE TabVal IS TABLE OF number(18,3)+
          +INDEX BY BINARY_INTEGER;+
    +W_ColVal        TabVal;+
        +CURSOR C_Crs IS+
        +SELECT  CDATE,CODE, GRP, CLINE, COL, RESULT+
        +FROM    TableA+
        +WHERE   cDATE        = P_param1+
        +AND     CODE        LIKE P_param2||'%'+
        +ORDER BY CLINE, COL;+
    +BEGIN+
            +DELETE FROM        TableB+
            +WHERE        CDATE =P_param1;+
            +COMMIT;+
            +For i_count in 1..10+
            +Loop+
                +W_ColVal(i_count) := 0;+
            +End Loop;+
            +open C_Crs;+
            +Loop+
                    +fetch C_Crs        into V_date, V_code, V_grp, V_TabLine, V_TabCol, V_TabVal;+
                     +exit when c_crs%notfound;+
                    +IF V_TabCol= 1+
                    +Then        V_DESC:= null;+
                                    +begin+
                                            +SELECT         DESC+
                                            +INTO        V_DESC+
                                            +FROM        DescTables+
                                            +WHERE        CODE =V_code+
                                            +AND                CLINE = V_TabLine+
                                             +AND                COL=1;+
                                    +exception+
                                            +when others then v_desc := null;+
                                    +end;+
                    +END IF;+
                    +IF V_TabLine <> V_PrvLine and V_PrvLine <> -1+
                    +Then+
                        +INSERT INTO TableB(+
                                +CDATE        ,Cind        ,CODE        ,Cline        ,+
                                     +FLD01        ,FLD02, FLD03)+
                             +values        (+
                                +P_param1        ,P_param2        ,V_grp        ,V_TabLine        ,+
                                     +W_ColVal(1)        ,W_ColVal(2), W_ColVal(3));+
                             +For i_count in 1..10+
                            +Loop+
                                +W_ColVal(i_count) := 0;+
                            +End Loop;+
                    +End If;+
                    +W_ColVal(V_TabCol) := W_ColVal(V_TabCol) + V_TabVal;+
                    +V_PrvLine := V_TabLine;+
            +End Loop;+
            +Close C_Crs;+
            +if V_TabLine <> -1+
            +Then  INSERT INTO TableB(+
                                +CDATE        ,Cind        ,CODE        ,Cline        ,+
                                     +FLD01        ,FLD02, FLD03)+
                             +values        (+
                                +P_param1        ,P_param2        ,V_grp        ,V_TabLine        ,+
                                     +W_ColVal(1)        ,W_ColVal(2), W_ColVal(3));+
             +End if;+
            +commit;+
            +return;+
    +End;+ Thank you in advance for your help.
    Edited by: user562674 on 15/02/2012 05:32 م
    Edited by: user562674 on 15/02/2012 05:34 م
    Edited by: user562674 on 15/02/2012 05:35 م

    user562674 wrote:
    but the problem is that in the future the number of columns may increase Then you have a BROKEN data model, not?
    too much so i need a dynamic way to fill the columns without enumarating them col 1, col 2, col3 because in the future they may be till col100Not possible - you will need to enumerate the columns to determine how to construct dynamic code to support variable columns. If this is a valid case for doing dynamic processing, then you need to write code that generates and uses dynamic SQL. And that adds complexity, potential run-time instability and security issues.
    There is no easy way to do stuff dynamically.

  • 4.5 Pro - Massive Size increase in XLF from Text Boxes!

    Hi everyone - weird problem encountered & would like some feedback.
    I am building a dashboard that incorporates a 3 x 6 text box grid (regular grid tool won't match the current style formating).  The sources for the text boxes are a dynamic vlookup formula of a very small area.
    Here is my problem.  The minute I link any of the text boxes to the spreadsheet, my file jumps from 2.5 MB to over 40 MB!
    What is also weird is that I have not set any dynamic visibility rules for the grid to display yet.  Also, when I delete the text boxes, it doesn't return the XLF to it's original size - it remains over 40MB.
    I orginally thought my XLF was corrupted, so I cleared the data sources, and confirmed the file growth problem is linked to the cell targeting somehow.  My Excel 2003 spreadsheet is not XML linked, so there is no dynamic data dumping, and I am pre-aggreating the data before adding it into the spreasheet.  There are no outside dynamic feeds - all data is static.  The spreadsheet size is tiny (about 150 KB), and I have deleted all of the blank rows & columns, as well as any named ranges, so it's as light as it is going to get.  I have XP SP3 if that matters.
    I have also applied all of the hotfixes listed on the site, and this is the full product, not a demo.
    Has anyone else seem this problem before?
    Edited by: Michael Dyne on Feb 20, 2009 5:33 PM

    Thanks Andy.
    I replaced all of my vlookups with index & match, saved the spreadsheet as a new name, and changed the tab names for good measure, then reimported.
    Good news is it did reduce the file size, the bad news is it only reduced it by 6 MB.
    One thing I didn't mention before is a I have a simple vba macro button (clear ranges) in the spreadsheet to clear out the old data (I've been using it in my excel modesl for about a year now).  Could that all of a sudden be a problem?
    Is there any other ways to blow out metadata from a spreadsheet?

  • Is there a way to prevent from text boxes to be numbered?

    Everytime I add a text box, it adds a number on the page for each one. Is there a way to prevent this?
    Thanks!

    Hey thanks for the response. Below is a screenshot:
    Thanks

  • How to fill datasource/table from archive?

    Dear Colleagues!
    How can I fill a datasource with archived data?
    I have created the Infostructure and the generic datasource (SD_VBRK_ARKIV). The datasource is available in BW after replication. But when I try to load it with an infopackage it finds 0 records. Am I missing a step? Is there something I need to do on the R/3 side to fill the table?
    Hope you can help,
    Regards Silje

    Hi Shabar,
    I have only tested it in Test, since I do not have any rights in Prod yet (waiting..). And it extracts data in test. But I don't know if there has been done any special operation on the R/3 test side before the extractor was able to collect data. It might be that the extractor is imported into production (since I get it when replicating in BI prod) but there is some operation that need to be done to collect data. Becaus as of now I am receiving 0 records in prod.
    Silje

  • How to extract code from text box in html format

    "I have a text box. When the form is submitted I need to extract the data in html format. i.e. a string type variable needds to hold all html tags alongwith[b] the data."

    A textbox submitted in a form delivers a String. What's inside is no issue. If you want to process it further, pick the tool of your choice, like an HTML parser.

  • Capturing Enter key event from text box

    In my application, there are a number of text boxes. I want to create a feature where an enter key even is seen and specific function executed depending on which text box was in focus when the enter key was pressed. Currently I am able to capture an enter key event on the whole page. How do I do that specifically for a text box?
    This application is done in HTML, javascript and Adobe AIR.
    Thanks
    Binu
    www.verseview.info

    Hi
    That's true that Flex4.5 SDK under Flash builder Burito doesn't listen Enter key in Text Area for KeyUp or KeyDown event.
    Here I found a work around you can use.
    Add an eventlistener to the component in actionscript and set the useCapture=true next to eventlistener function. Now you can listen enter key for KeyUp or KeyDown Event
    Hope this helps
    Rush-me

  • Uploading into database table from text file using tab (GUI_UPLOAD)

    i have small doubt
    i have 3 fiels in text file using tab as separator
    i need to update into database table 'ZABPSP_01'
    from 's.txt' located in local disk.
    My code is below.
    Please let me know the correction.
    Awaiting for ur response.
    Thanks in advance
    REPORT  ZABPSPPRG_02.
    TABLES: LFA1,MARA,KNA1,ZABPSP_01.
    DATA:  begin of itab occurs 0,
    IKUNNR type zabpsp_01-kunnr,
    IMATNR type zabpsp_01-matnr,
    IADRNR type zabpsp_01-adrnr.
    DATA:END OF ITAB.
    DATA: FILENAME1 TYPE STRING.
    FILENAME1 = 'C:/s.txt'.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = FILENAME1
      FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                     = itab.
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF sy-subrc EQ 0.
    zabpsp_01-kunnr = ITAB-IKUNNR.
    zabpsp_01-matnr = ITAB-IMATNR.
    zabpsp_01-adrnr = ITAB-IADRNR.
    WRITE : / ' UPLOAD SUCCESS ' .
    ENDIF.
    \[subject changed, don't write everything in upper case!\]
    Edited by: Jan Stallkamp on Aug 6, 2008 2:39 PM

    Hi,
    After upload modify the code like below. Also change the file name as some one suggested already. If u are still facing problems then check in debug mode what is happening after FM call.
    CALL GUI_UPLOAD FM.
    IF sy-subrc EQ 0
    IF NOT itab[] IS INITIAL.
    MODIFY ZABPSP_01 FROM TABLE itab.
    WRITE : / ' UPLOAD SUCCESS ' .
    ELSE.
    WRITE 'No data in file'.
    ENDIF.
    ELSE.
    WRITE 'Upload failure'.
    ENDIF.
    Thanks,
    Vinod.

  • Issues with external table from text file ( tab delimiter )

    Hello Guru,
    --Data in my file, file name : TEST1 ( tab delimiter )
    "C1" "C2"
    "test column1" "01/27/2012"
    "test column1" "01/27/2012"
    "test column1" "01/09/2012"
    -- Table
    CREATE TABLE EXT_TEST
    C1 VARCHAR2(50 BYTE),
    C2 VARCHAR2(12 BYTE)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER DEFAULT DIRECTORY "TEST"
    ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE
    SKIP 1 FIELDS
    TERMINATED BY X'9' missing field VALUES are NULL REJECT ROWS
    WITH ALL NULL FIELDS ) LOCATION ( 'TEST1' )
    REJECT LIMIT UNLIMITED;
    -- my current output
    select * from EXT_TEST ;
    C1 C2
    "test column1" "01/27/2012"
    "test column1" "01/27/2012"
    "test column1" "01/09/2012"
    -- I need output in this way
    C1 C2
    "test column1" "01/27/2012"
    "test column1" "01/27/2012"
    "test column1" "01/09/2012"
    my version :
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for HPUX: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    Please help me resolve this and learn further steps.
    Thank You!

    Try this:
    -- Etc ---
    FIELDS TERMINATED BY X'9'
    OPTIONALLY ENCLOSED BY '"'
    missing field VALUES are NULL REJECT ROWS
    -- Etc ---
    {code}
    :p                                                                                                                                                                                                                                                                                                               

  • Help! Word Tables are Coming into FrameMaker as Text Boxes

    Help! I am converting a Word file into FrameMaker (FM) the same way for the past 10 years---now all of a sudden the Word tables are converting to text boxes, ahh! I open the Word file in FM, apply all my formatting & page layouts from my template, and then I go through and apply styles, format, etc.---this is the 2nd time in 2 weeks where ALL tables convert into text boxes in FM, help! I need to get these docs out ASAP! Thank you so much.

    Hi Arnis, it's happened with both FM8 & 10, and Word 2010. It's also happened when I save a PDF as an RTF---always worked in the past w/o any issues at all, but I just saved a 70-page doc from PDF to RTF, and ALL tables came in within text boxes...?
    I just saved the Word file as an RTF, brought it into FM, & it worked, thank God! Thank you so much for your help----what do you suggest about the PDF to RTF tables-in-text boxes issue? THANKS!!!

Maybe you are looking for