Line 1 columns do not merge with Row 2 columns in InDesign Script

It is my code: -.

var myTableFrame.insertionPoints = myTable [0].tables.add ({columnCount:3, headerRowCount:1, bodyRowCount:2});})

myTable.rows [0] .cells [0] .silence = "A";

myTable.rows [0] .cells [0].merge(myTable.rows[1].cells[0]);

But:-below the job line: -.

myTable.rows [0] .cells [0].merge(myTable.rows[0].cells[1]);

myTable.rows [1] .cells [0].merge(myTable.rows[2].cells[0]);


------------------------------------------------------------------------------

Problem is that column 1 & 2 of the fusion of line 1

and the column 1 row 2 & 3 fusion

but, to the column 1 rank 1 & 2 fusion has not and no column of row 1 merger with column of line 2

Can someone help me please...

Thank you...

Problem solved: -.

1. we cannot merge with bodyRow headerRow columns...

2. we can merge with headerRow headerRow columns...

3. we can merge with bodyRow bodyRow columns...

In the case of line 1 should be used below line: -.

var myTableFrame.insertionPoints = myTable [0].tables.add ({columnCount:3, headerRowCount:2, bodyRowCount:2});})

OR

var myTableFrame.insertionPoints = myTable [0].tables.add ({columnCount:3, bodyRowCount:3});})

Tags: InDesign

Similar Questions

  • How can I make the line thicknesses are displayed not correctly with zoom?

    When I Zoom in (1200%) the LineWeight display correctly, but at almost any point of view until the thickness of line is incorrect, sometimes the lines disappear completely.

    nayefa,

    You can try to switch between GPU and CPU by pressing Ctrl / Cmd + E, or you try disabling GPU performance by clicking on the icon of the rocket in the bar of the App, or on the top of the menu bar, deselect the box Performance GPU. You may also uncheck performance GPU in your preferences.

    There are some issues, including the GPU, with the new 19.2/2015.2, which should resolve some of the unresolved issues with the patch/update, 19.1 (which gives you 2015.1 CC), which should solve known unresolved problems with 19.0.1, who had to deal with issues GPU and a few others.

    Or if you don't have a 19.1, try that. If 19.1 does not appear, please disconnect and then reconnect the creative cloud application. After that, the 19.1 update must be visible in the creative application of Cloud.

    It's what the GPU:

    https://helpx.Adobe.com/Illustrator/KB/GPU-performance-preview-improvements.html

    Edit: Hi Lutz. It is very quiet here these days, it seems. Many must be busy elsewhere.

  • Audio is not importing with the video file to the script?

    Hi, Im and more recent Premiere Pro Windows 10.

    When I pull a mp4 or mts file regardless, only the video it shows.

    Audio is not brought.

    Who is wrong?

    See attachment.

    ANxP3uv.jpg

    [moved to the forum for the creation of mod]

    You forgot to patch source audio track;

  • Write a SQL query with lines in columns

    All the

    I need help in writing a SQL query with lines in columns, let give u an example...

    drop table activity;

    CREATE TABLE 'ACTIVITY '.

    (

    "PROJECT_WID" NUMBER (22.0) NOT NULL,

    VARCHAR2 (150 CHAR) "PROJECT_NO."

    VARCHAR2 (800 CHAR) 'NAME '.

    );

    Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1683691, '10007', 12-121');

    Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1684994, '10008', 12-122');

    Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1686296, '10009', 12-123');

    Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (2225222, '9040', 12-124');

    drop table lonet;

    CREATE TABLE 'LONET.

    (

    VARCHAR2 (150 CHAR) "NAME."

    NUMBER OF THE "ROOT."

    VARCHAR2 (150 CHAR) "ENTRYVALUE".

    );

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("GAC", 1683691, "LDE");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('NAM', 1683691, 'LME');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('BAG', 1683691, 'ICE');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1683691, 'IKE');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('NAM', 1686291, "QTY");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1686291, 'MAX');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("GAC", 1684994, "MTE");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1684994, 'MAC');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('FMT', 1684994, 'NICE');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('FMR', 1684994, 'RAY');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('BAG', 1686296, "CAQ");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("PAP", 1686296, "QAQ");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("VANESSA", 1686296, "THEW");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("ANDR", 1686296, "REYL");

    commit;

    Link: activity.project_wid = lonet.root

    look like output

    Project_wid Project_no NAME GAC NAM BAG RAC
    16836911000712-121LDELMELCELKE
    16849941000812-122MTEnullnullMAC
    16862961000912-123nullnullCAQQAQ
    2225222904012-124nullnullnullnull

    two problems, in that I am running

    1. I dono how simply we can convert rows to columns

    2. for root = 1683691, there are double NAM and RAC in lonet table... ideally these data should not be there, but since its here, we can take a MAX so that it returns a value

    3. There are undesirables who should be ignored

    Once again my thought process is that we join the activity and 4 alias table lonet.

    ask for your help in this

    Thank you

    Hello

    This is called pivoting.

    Here's a way to do it:

    WITH relevant_data AS

    (

    SELECT a.project_wid, a.project_no, b.SID

    , l.name AS lonet_name, l.entryvalue

    Activity one

    LEFT OUTER JOIN lonet l.root = a.project_wid l

    )

    SELECT *.

    OF relevant_data

    PIVOT (MAX (entryvalue)

    FOR lonet_name IN ("GAC" IN the gac

    "NAM" AS nam

    'BAG' IN the bag

    "RAC" AS cars

    )

    )

    ORDER BY project_wid

    ;

    Output:

    PROJECT_WID PROJECT_NO GAC NAM BAG RAC NAME

    ----------- ---------- ---------- ---------- ---------- ---------- ----------

    1683691 12 - 10007 121 LDE LME LCE LKE

    1684994 MAC MTE 10008 12-122

    1686296 12 - 10009 123 QAC QAQ

    2225222 9040 12 - 124

    To learn more about swivel, see the FAQ in the Forum: Re: 4. How can I convert rows to columns?

    Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

  • Oracle 11.2 - perform parallel DML on a table that is not partitioned with LOB column

    Hello

    Since I wanted to demonstrate the new enhancements of Oracle 12 c on SECUREFICHIERS, I tried to use PDML declarations on a table that is not partitioned with LOB column, in Oracle 11 g and Oracle 12 c releases. The Oracle 11.2 SECUREFICHIERS and large objects Developer Guide January 2013 said clearly:

    Parallel execution of the following DML operations on tables with LOB columns is supported. These operations performed in parallel run only mode when it is run on a partitioned table. The DML statements on tables not partitioned with LOB columns continue to run in serial execution mode.

    • INSERT SELECT AS
    • CREATE TABLE AS SELECT
    • DELETE
    • UPDATE
    • MERGE (conditionally UPDATE and INSERT)
    • Multi-table INSERT

    So, I created and filled a simple table with a BLOB column:

    SQL> CREATE TABLE T1 (A BLOB);
    Table created.
    

    Then, I tried to see the execution of a parallel ABOLITION plan:

    SQL> EXPLAIN PLAN FOR
      2  delete /*+parallel (t1,8) */ from t1;
    
    Explained.
    

    SQL> select * from table(dbms_xplan.display);
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Plan hash value: 3718066193
    
    -------------------------------------------------------------------------------------------------------
    | Id  | Operation             | Name     | Rows  | Cost (%CPU)| Time     |    TQ  |IN-OUT| PQ Distrib |
    -------------------------------------------------------------------------------------------------------
    |   0 | DELETE STATEMENT      |          |  2048 |     2   (0)| 00:00:01 |        |      |            |
    |   1 |  DELETE               | T1       |       |            |          |        |      |            |
    |   2 |   PX COORDINATOR      |          |       |            |          |        |      |            |
    |   3 |    PX SEND QC (RANDOM)| :TQ10000 |  2048 |     2   (0)| 00:00:01 |  Q1,00 | P->S | QC (RAND)  |
    |   4 |     PX BLOCK ITERATOR |          |  2048 |     2   (0)| 00:00:01 |  Q1,00 | PCWC |            |
    |   5 |      TABLE ACCESS FULL| T1       |  2048 |     2   (0)| 00:00:01 |  Q1,00 | PCWP |            |
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------------
    
    Note
    -----
       - dynamic sampling used for this statement (level=2)
    

    And I ended up executing the statement.

    SQL> commit;
    Commit complete.
    
    SQL> alter session enable parallel dml;
    Session altered.
    
    SQL> delete /*+parallel (t1,8) */ from t1;
    2048 rows deleted.
    

    As we can see, the statement was executed in parallel:

    SQL> select * from v$pq_sesstat;
    
    STATISTIC                      LAST_QUERY SESSION_TOTAL
    ------------------------------ ---------- -------------
    Queries Parallelized                    1             1
    DML Parallelized                        0             0
    DDL Parallelized                        0             0
    DFO Trees                               1             1
    Server Threads                          5             0
    Allocation Height                       5             0
    Allocation Width                        1             0
    Local Msgs Sent                        55            55
    Distr Msgs Sent                         0             0
    Local Msgs Recv'd                      55            55
    Distr Msgs Recv'd                       0             0
    
    11 rows selected.
    

    Is this normal? It is not supposed to be supported on Oracle 11 g with no partitioned table containing the LOB column...

    Thank you for your help.

    Michael

    Hello

    The explain plan shows that only the query is run in parallel but not delete it.

    Concerning

    Maurice

  • I still have not found "help" to tell me how to remove all the lines and columns beyond those needed for my spreadsheet.

    I used several worksheets.  More allows me to specify the rows/columns and then delete them.  This is to remove all the lines/columns beyond those set up and formatted for my spreadsheet.   I tried many ways to remove all additional lines/columns, but without success.  I even took the time to scroll down/on to highlight all the unnecessary lines and columns, but they do not remove it.
    Any suggestions?  I used spreadsheets most allow me to specify the number of rows/columns for my worksheet

    You can ask your question in the office | Excel Forum because it is not really a problem of Windows XP performance and maintenance.

    Office | Excel

    http://answers.Microsoft.com/en-us/Office/Forum/Excel

    Also, providing specific information may help to get a faster response or better, such as the version of Office or Excel? version of Windows XP? Home, Pro, 32-bit or 64-bit.

    I hope this helps.

  • Adobe story does not lines of dialogue that are amrked with (CONT'd) in a CSV export.

    For some reason any Adobe story does not export the lines of dialogue that are marked with (CONT'd) in a csv file. The rest of the dialogue exports very well, little bits that are marked with (CONT'd) are not displayed in the dialog column!. It can be changed with some settings or is this a bug? The script was imported from a file FDX. If anyone has a solution for this, please let me know.

    Thenk you.

    Thank you for reporting this issue.

    It is indeed a bug.

    Just to get the correct data in csv, a workaround for this problem would be to replace the word "suite" with a door-place Word, perform an export to csv and then change it back.

    1. press Ctrl + F in the script to open find/replace

    2. replace the word "Suite" with a placeholder Word, say "TEMPCONTD".

    3. the export to csv format script

    4. now replace the word placeholder with 'Suite '.

  • How can I change the first line of the table to a header row if it contains PGF with tblHead tags

    So far, I have the following text in a JavaScript:

    If (tbl. FirstRowInTbl.FirstCellInRow.FirstPgf.PgfFmt.Name = "tblHead")

    {

    If (tbl. FirstRowInTbl.RowType = 1).

    1 is Constants.FV_ROW_BODY

    tbl. FirstRowInTbl.RowType = 0;

    0 is Constants.FV_ROW_HEADING

    on the other

    continue;

    }

    on the other

    continue;

    It does not work. I'm not comfortable with tbl. FirstRowInTbl.FirstCellInRow.FirstPgf.PgfFmt.Name.

    It is clearly wrong. How I would I want to determine the tag of the first paragraph of the first line?

    Any help is very appreciated!

    Thank you

    Ruth

    Ruth, here is a function that converts the body lines to the header of a table lines. Please let me know if you have any questions or comments. -Rick

    #target framemaker
    
    var doc = app.ActiveDoc;
    
    // Set a variable for the selected table.
    var tbl = doc.SelectedTbl;
    
    // Convert the first body row to a heading row.
    bodyToHeadingRow (tbl, 1, doc);
    
    function bodyToHeadingRow (tbl, num, doc) {
    
        var row = 0;
    
        // Select the top "num" rows in the table.
        tbl.MakeTblSelection (0, num - 1, 0, tbl.TblNumCols - 1);
        // Push the current clipboard contents and cut the selected rows.
        PushClipboard ();
        doc.Cut (Constants.FF_CUT_TBL_CELLS);
        // Add "num" number of heading rows to the table.
        row = tbl.FirstRowInTbl;
        row.AddRows (Constants.FV_Heading, num);
        // Select the new heading rows.
        tbl.MakeTblSelection (0, num - 1, 0, tbl.TblNumCols - 1);
        // Paste the rows from the clipboard into the new heading rows.
        doc.Paste (Constants.FF_REPLACE_CELLS);
        // Restore the clipboard contents.
        PopClipboard();
    
    }
    
  • ORA-06550: line 1, column 34: PLS-00103 in Validation element with 4 APEX

    Hello
    I use 4 APEX?
    I created ths program to validate an element
    DECLARE
    LONGEUR1 NUMBER;
    BEGIN
    Select the LENGTH IN LONGEUR1 OF the BOOK WHERE code_ouvrage = (select code_ouvrage from the book where language =: P6_CODE_OUVRAGE);
    IF: P6_PK < 0 or: P6_PK > LONGEUR1 THEN
    RETURN FALSE;
    ON THE OTHER
    RETURN TRUE;
    END IF;
    END;

    I had thir error message when you run the page:
    ORA-06550: line 1, column 34: PLS-00103: symbol "DECLARE" met instead of one of the following symbols: () - + new case mod not null to other table avg current County exists max min prior sql stddev sum variance run the two main merger year forall multiset months DAY_ hour minute second stimezone_minute timezone_region timezone_abbr time end date interval timestamp timezone_hour

    ERR-1025 expression PLSQL treatment error. DECLARE LONGEUR1 NUMBER; START LENGTH Select INTO LONGEUR1 FROM BOOK WHERE code_ouvrage = (select code_ouvrage from the book where language =: P6_CODE_OUVRAGE); IF: P6_PK < 0 or: P6_PK > LONGEUR1 THEN RETURN FALSE; ELSE RETURN TRUE; END IF; END;


    All siggestion please?

    Rob wrote:
    Hello
    I use 4 APEX?
    I created ths program to validate an element
    DECLARE
    LONGEUR1 NUMBER;
    BEGIN
    Select the LENGTH IN LONGEUR1 OF the BOOK WHERE code_ouvrage = (select code_ouvrage from the book where language =: P6_CODE_OUVRAGE);
    IF: P6_PK < 0="" or="" :p6_pk=""> LONGEUR1 THEN
    RETURN FALSE;
    ON THE OTHER
    RETURN TRUE;
    END IF;
    END;

    I had thir error message when you run the page:
    ORA-06550: line 1, column 34: PLS-00103: symbol "DECLARE" met instead of one of the following symbols: () - + new case mod not null to other table avg current County exists max min prior sql stddev sum variance run the two main merger year forall multiset months DAY_ hour minute second stimezone_minute timezone_region timezone_abbr time end date interval timestamp timezone_hour

    ERR-1025 expression PLSQL treatment error. DECLARE LONGEUR1 NUMBER; START LENGTH Select INTO LONGEUR1 FROM BOOK WHERE code_ouvrage = (select code_ouvrage from the book where language =: P6_CODE_OUVRAGE); IF: P6_PK < 0="" or="" :p6_pk=""> LONGEUR1 THEN RETURN FALSE; ELSE RETURN TRUE; END IF; END;

    All siggestion please?

    What is the Validation Type? It seems you are trying to use the code for validation of Boolean function return in one of type PL/SQL Expression.

    Make sure that the Validation Type is function to return a Boolean.

  • Mail merge is not compatible with Firefox 31.01. How can I solve this problem?

    Hi everyone currently seeing this.

    I downloaded the mailing of the Add-ons for Thunderbird.
    I tried to install file in the page modules, and a message appears saying: mail merge could not be installed because it is not compatible with Firefox 31.01.

    Is someone can you please tell me what I can do to solve this problem.

    Thank you very much.
    J

    Maybe install it in Thunderbird

    Try the ideal here case http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • O2 iPhone 5 s phone line does not work with my map of Cyprus turkcell

    O2 iPhone 5 s phone line does not work with my map of Cyprus turkcell

    Yalcin davrandi wrote:

    O2 iPhone 5 s phone line does not work with my map of Cyprus turkcell

    OK, if the phone has been implemented using the o2 network and you want to use it with another carrier, you need to get o2 to unlock your phone.

  • 2540 DeskJet not print all rows in the column

    I am satisfied with my new 2540 Deskjet, except on the simple Excel documents it prints only a portion of the lines even if the grid is checked. This never happened with my old dell printer.

    Hi CathB123,

    Welcome to the HP Forums!

    If printing works well in other programs, I recommend this site, print gridlines in a worksheet. I would also try using the HP print and Scan Doctor, in which case there may be a driver conflict.

    Otherwise, if it does not help, please contact Microsoft Office technical support. The Agency supports, as I am not familiar with Excel.

    Good luck!

  • HP pavilion. Recently, an "out of memory at line 17" message keeps popping up and - web pages and files DO NOT OPEN, with browsers scrolling forever.

    Original title: out of memory at line 17

    Using Vista system op on an old HP Pavilion of 3 year. Recently, an "out of memory at line 17" message keeps popping up and - web pages and files DO NOT OPEN, with browsers scrolling forever.

    Help, please

    Hi Scott,.
    1. are you using Internet Explorer?
    2. If so, what is the version of Internet Explorer installed on the computer?
    3 are you facing this problem in all Web sites?
     
    I suggest you to follow the link below and check if it helps.
     
     
    Method 1: Follow the link mentioned below and check if it helps.
    How to resolve script errors in Internet Explorer on Windows computers
     
    Method 2: You can also try the steps and check if it helps.
     
     
  • Plan less first Pathfinder does not work with the lines?

    I'm all new to illustrator and may not have the vocabulary to ask this question well.  Please bear with me.  I want to remove the center of a shape from a bunch of lines

    Imagine that I have established a grid wavy using the Warp tool.  I want to place a circle on the top of the grid and then delete everything that is in the middle of the circle.  The result would be a grid with a hole of type Swiss cheese inside.  I need the parts circled the line actually be deleted (not just hidden) because I'll eventually use the model for laser cutting.

    I understand how to proceed when background objects are forms - such as a hole of Gruyère in another circle - using less before.  However, it doesn't seem to work if the background of the drawing is just a bunch of lines.

    Is there an easy way to do this?

    Thank you!

    Draw the circle:

    and a rectangle underneath which covers all - different colors are important

    All select and use the pathfinder "Outline."

    Give you this

    Take the magic wand and set it to stroke brain and tolerance 0%

    Click on the circle

    Remove. Then delete the rectangle.

  • Merge HDR will not work with three images

    Working with Lightroom CC... The merge to HDR feature works when you select two images, but when I select three that I get an error "could not merge... "Please cancel and review of your choice.  Can anyone offer a suggestion

    The device is set to shoot in RAW and jpg formats? At least you managed to reach the root cause of the problem.

Maybe you are looking for