Add columns empty tray to spread the table in the width of the page

I'm working on a book of hundreds of individual tables, most of which should end by 504 points wide. At present, I the size of each column to the width wider input, subtract a total width of 504, divide by the number of columns in the gutter and then add and size a new column between each existing column.

It must be scriptable, but I don't know a script. Does anyone know if there is already a script like this?

Ken Benson

(After re-reading your messages - I could have read more carefully the first time :))

This new scriptlet is going more towards what you were asking. So that this works as expected, you resize all columns to its minimum width, leaving a lot of space on the right side. Click your cursor inside the table, and then run the script.

I think he's following now exactly your current operating instructions - the current width of the table is subtracted from the space remaining (504 points), which is divided over gutter (NumColumns - 1) columns between existing ones.

aTable = app.selection[0].parent;
if (aTable.constructor.name == "Cell")
 aTable = app.selection[0].parent.parent;
extraGutter = (504 - aTable.width)/(aTable.columns.length-1);
for (a=aTable.columns.length-1; a>=1; a--)
{
 aTable.columns.add(LocationOptions.BEFORE, aTable.columns[a], {width:extraGutter});
}

Tags: InDesign

Similar Questions

  • "email link" does not work with exchange or 365 in version 34.0.5 - he continues to send me to an account page add and then tells me that the page is already added

    Emailing links directly from firefox using my email to business was easy, but now, using windows 8 (currently firefox v 34.0.5) I keep getting redirected to a page asking I have add my e-mail (exchange, office 365) account. However when I do this it just says that this account is already added and don't give me any other options. I also tried to add Outlook and Exchange ActiveSync and the result is the same. Can someone advise please?
    If I open the same pages in internet explorer, I can send the link without any problem but firefox is my favorite browser.

    You are using an add-in on? https://addons.Mozilla.org/en-us/fire.../email-link-button/
    Once reach you the accounts and check the credentials on your operating system, it should work.

    However, if you want to change what is happening to try the following steps: https://support.mozilla.org/en-US/kb/change-program-used-open-email-links

  • How to get a form empty when we run the page?

    Hi all!

    Hope you are well

    My question is, How to get empty a form at run time? means that when we run the page, text fields is filled with white... Could someone please help me with this...

    Thanks in advance,

    Nanda.

    Hi Nanda,

    Just follow these steps:

    (1) create a stubborn taskflow (uncheck create with fragments box)

    (2) drag the CreateInsert operation on your narrow-minded taskflow and mark it as the default activity

    (3) drag a view and the CreateInsert a link to the component view using a case of control flow

    (4) double click on the view to create the page

    (5) slide the view object in the page as a form of ADF

    6) back to your narrow-minded taskflow and the general tab make sure you under visibitliy you select "url-invoke-enabled.

    You run tasfklow and your form will be rendered in insert mode.

    Concerning

    Antonis

  • The new tab page appears just in white. There are no empty boxes to pin the pages or anything like that. How can I fix it?

    Just updated to the new firefox on my new computer, this whole tab feature is not even appear. Sometimes I have clear cache, but small boxes dotted white that are supposed to be on a new page are non-existent. Help, please!

    Hello cryptorchidangel, you can either install the addon searchreset which should get rid of the problem, or you can manually reset the page that opens on each new tab enter Subject: config in the address bar of firefox (confirmed the message information where it appears), search for the preference named browser.newtab.url , and double-click on & change its value to on : newtab.

  • The "Noscript" add-on is not automatically reload the pages after the granting of a temporary permit.

    It's as simple as that. I tried to seek support of noscript, without success.

    Personally, I have disable this setting because I did change the permissions several times, but NoScript used to recharge automatically.

    Have check you the settings to make sure that is still selected? See attached (where I disabled it) screenshot.

    There is a forum for support on NoScript.netand an active thread on another user with this problem: https://forums.informaction.com/viewtopic.php?f=8 & t = 21330. In this case, the extension of blur disabling solved the problem.

  • I can't view the tabs sync in Firefox Mobile for iPhone. The page loads and would become so empty or automatically accesses the page comments section.

    I use:

    Beta version of Firefox Desktop

    iPhone 4

    See:

  • Add columns

    Hi all

    11g.2 Oracle under OL 5.6

    I must add column in my paintings like the below:
    desc x ;
    id 
    name 
    sal 
    
    i want to add column comm 
    
    desc x;
    id 
    comm
    name
    sal
    in fact we have tables that hold the CDRs, but today I found the CDRs not uploaded in the database because of the team IN to increase the columns in the table
    We have a 40 column but it became 41 and the added column life team in position 32.
    so I need to know how to do to add the column in the middle of my table without re-creating the table again (contain data).


    Thank you

    I don't think there is any direct sql command to do so. But you can do something for this. This link will help you:

    http://www.orafaq.com/FAQ/how_does_one_add_a_column_to_the_middle_of_a_table

  • Add code to the basic model of the Pages

    Hello

    I am following up on an existing building (somewhat complicated). I have several models from which all the generated pages. I need to add scripts to follow-up to a handful of pages please. If I add models, he goes to all the pages of the site... not good.

    I tried to add to pages first, but he put the script in the editable pages. Name of the vendor is not like that. They prefer to be just below the body tag. It is very good but is not editable page interface. So I have to do two things: a - duplicate templates and create one for thank you pages or two - find a way to make the body of these pages editable.

    What is the best and how it would accomplish this?

    Thanks in advance.

    Rob

    How many models and the number of child pages do you have?

    I would put an empty editable region above right in the template pages.  Then you can add the tracking code or not as you want.

  • Citing a taskflow of the fragment on the page

    Hello

    I use JDev PS3. I use export custom Excel feature (which includes a popup and a shuttle service to select the required columns) in each fragment of the page.
    I intend to generalize this task and do use this feature available to other applications. Any suggestions are appreciated.

    Thank you

    Hello

    I think that he is a candidate for a declarative component. If the component is a panelCollection users would then drag and drop the table. The export button is added to the toolbar of the collection of panels and its logic could then access the table (this is a child element of the collection of panels) and a list of its columns to export. I implemented a similar use case in an article for the 2013 edition of the Oracle Magazine (next issue) July/August and know that it works.

    Frank

  • Own CSS and JS in the page

    Hello! Is there a way to add own css and js in the page of the Adobe portfolio? How can I do?

    Hello! It is currently not a feature that is available, but I will definitely take that back to the team as a suggestion for future updates. In addition, you can submit the request feature here: https://behance.wufoo.com/forms/adobe-portfolio-feature-suggestions

  • Add columns to the table

    I'm having a bit of a basic problem here...

    I start with a waveform D 1 from a request of data acquisition, which contains ~ 22 columns of data corresponding to the different measures. I wanted to take the first 20 columns of data and add the "column vectors" (i.e. each measure) for a 1 d table (the sum of the first 1 22 tables/measures/vectors). The logical way to proceed, it seems, is by indexing the waveform with a loop, conversion in DBL and then adding each column with a registry change.

    1 d Waveform--> for (indexed) loop--> get waveform components to get the DBL table to the index column--> go to 'add block '.

    And then, using a shift register, I add each column in the index.

    However, I get no output once for the finished loop.

    Any ideas? Examples are JPEG/png files please!

    I'm a big fan of doing things the easy way.

  • How to dynamically add columns to the table

    Hi all

    I'm new to ADF and need help on sub condition.

    We have created a ViewObject on the EMPLOYEE table that has under columns:

    EMP_ID,

    EMP_NAME,

    DEPARTMENT,

    COST_CENTER,

    BUSINESS_UNIT

    COUNTRY

    GCODE

    We need to create a page in the ADF with employee table to show only below the columns

    EMP_ID,

    EMP_NAME,

    DEPARTMENT,

    COST_CENTER

    Later, if necessary user should be able to add other columns to the page dynamically.

    Can you please advice on how to implement this feature.

    Thank you.

    Kind regards

    Vidya

    Hello.

    There could be a simple solution, which is to use the component PanelCollection.

    Drag ' drop your VO to a page and create a Table with all the attributes.

    For columns that emp_id, emp_name, cost_center, set the Visible property to false.

    Put the PanelCollection component on your page and drag your table inside.

    When you run the page you will see the view menu in the upper left corner of the table above. You can show/hide columns in this menu.

  • Please let me know how I can add a new column with a constraint not null, table already has data, without falling off the table... Please help me on this issue...

    Hello

    I have an emp_job_det with a, b, c columns table. Note that this TABLE ALREADY has DATA OF THESE COLUMNS

    IAM now add a new column "D" with forced not null

    Fistly I alter the table by adding the single column "D", if I do, the entire column would be created with alll of nulls for the column DEFAULT D

    ALTER table emp_job_det Add number D; -do note not null CONSTRAINT is not added

    Second... If I try to add the constraint not null, get an eoor as already conatained null values...

    (GOLD)

    In other words, if I put the query

    ALTER table emp_job_det Add number D NOT NULL; -THROWS ERROR AS TABLE ALREADY CONTAINS DATA

    So my question is how how can I add a new column with a constraint not null, table already has the data, without falling off the table

    Please help me on this issue...

    Add the column without constraint, then fill the column. Once all the rows in the table are given in the new column, and then add the constraint not null.

  • ALTER Table Add column not null, no default

    I want to add two columns in a table with not null, and the default value 0 for two columns
    Can I write everything in a single statement or do I have to divide the declaration
    I tried, but didn't work

    ALTER table DWSODS01. DWT00301_ORD_DTL_OMS add)
    COMB_ORD_FLG NUMBER (5.0) default null, 0
    COMB_ORD_NO NUMBER (12.0)
    by default, 0 not null);

    How can I change the code?

    user10390682 wrote:
    OK, so if it is NOT NULL, while there should be a value.

    Yes.

    So, when I set these two columns as NOT NULL will only future data must be NON NULL.
    What of the old and present data if I defined as NOT NULL

    NOT NULL mean value of eachcolumn + line (current or future) _ must not be null. That's why always adding NOT NULL column to a non-empty table fails - the column value for existing lines will be NULL which does NOT violate the constraint nullability. If you add the NON NULL column with a default value, the column will be added and all lines existing column value will be defined by specified default (0 in your case). As a result Oracle will be able to settle forced to null for this newly added column from the value of this column in all the existing lines will be not not null (0 in your case).

    SY.

  • Add column from the moment of the execution of query UNPIVOT

    11g

    Hello

    I used UNPIVOT to structure reorgansise my data and I would like to create a column called WORK_STATUS to place the column header original OFFICE or FIELD as an identifier of line on each record.

    Something like this (WORK_STATUS is the DURATION column, I add);

            ID NAME                      HOURS   WORK_STATUS
    ---------- -------------------- ---------- -------------
           317 Brendan C                    16        OFFICE
           317 Brendan C                    80         FIELD
    
    
    

    That's what looked like the original data;

    SELECT ID, NAME, OFFICE_HOURS, FIELD_HOURS FROM XM_INTERPRETATION
    
    
            ID NAME                 OFFICE_HOURS FIELD_HOURS
    ---------- -------------------- ------------ -----------
           325 Tony H                          0          20
           325 Leroy B                         0          16
           325 Brendan C                      16          80
           325 Caitlyn O                       0          72
           326 Tony H                          2           6
           326 Leroy B                         2           6
    
    
    

    It is the UNPIVOT statement;

    SELECT ID
          , NAME
          , HOURS
       FROM XM_INTERPRETATION
    UNPIVOT EXCLUDE NULLS (HOURS
        FOR X
         IN (OFFICE_HOURS
          ,  FIELD_HOURS)
          );
    
            ID NAME                      HOURS
    ---------- -------------------- ----------
           325 Tony H                       0
           325 Tony H                      20
           325 Leroy B                      0
           325 Leroy B                     16
           325 Brendan C                   16
           325 Brendan C                   80
           325 Caitlyn O                    0
           325 Caitlyn O                   72
           326 Tony H                       2
           326 Tony H                       6
           326 Leroy B                      2
           326 Leroy B                      6
    
    
    

    I hoped I could do was something like the following:

    SELECT ID
          , NAME
          , HOURS
          , WORK_STATUS
       FROM XM_INTERPRETATION
    UNPIVOT EXCLUDE NULLS (HOURS, WORK_STATUS
        FOR X
         IN (OFFICE_HOURS, "OFFICE"
          ,  FIELD_HOURS, "FIELD")
          );
    
    
    

    Ben

    Hi, Ben.

    Benton says:

    11g

    Hello

    I used UNPIVOT to structure reorgansise my data and I would like to create a column called WORK_STATUS to place the column header original OFFICE or FIELD as an identifier of line on each record.

    Something like this (WORK_STATUS is the DURATION column, I add);

    1. ID NAME HOURS WORK_STATUS
    2. ---------- -------------------- ---------- -------------
    3. OFFICE C Brendan 16 317
    4. Brendan FIELD 317 C 80

    That's what looked like the original data;

    1. SELECT ID, NAME, OFFICE_HOURS, XM_INTERPRETATION FIELD_HOURS
    2. ID NAME OFFICE_HOURS FIELD_HOURS
    3. ---------- -------------------- ------------ -----------
    4. Tony 325 0 20 H
    5. Leroy B 0 16 325
    6. Brendan 325 C 16 80
    7. Caitlyn 325 0 72 O
    8. Tony 326 2 6 H
    9. Leroy B 2 6 326

    It is the UNPIVOT statement;

    1. SELECT THE ID
    2. NAME
    3. HOURS
    4. OF XM_INTERPRETATION
    5. UNPIVOT EXCLUDE NULLS (HOURS
    6. FOR X
    7. IN (OFFICE_HOURS
    8. FIELD_HOURS)
    9. );
    10. ID NAME HOURS
    11. ---------- -------------------- ----------
    12. Tony 325 H 0
    13. Tony 325 H 20
    14. Leroy 325 B 0
    15. Leroy 325 B 16
    16. Brendan 325 C 16
    17. Brendan 325 C 80
    18. Caitlyn 325 O 0
    19. Caitlyn 325 O 72
    20. Tony 326 H 2
    21. Tony 326 H 6
    22. Leroy 326 B 2
    23. Leroy 326 B 6

    I hoped I could do was something like the following:

    1. SELECT THE ID
    2. NAME
    3. HOURS
    4. WORK_STATUS
    5. OF XM_INTERPRETATION
    6. UNPIVOT EXCLUDES NULL VALUES (HOURS, WORK_STATUS
    7. FOR X
    8. IN (OFFICE_HOURS, 'OFFICE'
    9. FIELD_HOURS, "FIELD")
    10. );

    Ben

    Look at the syntax of the UNPIVOT operator function: http://docs.oracle.com/database/121/SQLRF/statements_10002.htm#sthref7311

    SELECT id, name, hours, work_status

    OF xm_interpretation

    UNPIVOT (hours

    FOR IN work_status (office_hours 'OFFICE'

    , field_hours AS 'FIELD '.

    )

    )

    ORDER BY id

    work_status DESC

    ;

    The columns you want to unpivot (office_hours and field_hours in this case) are separated by commas, so commas can also be used to separate the columns of their labels.  In addition, the labels are literals; sttring literals are enclosed in single quotes, not double - quote.

    I hope that answers your question.

    If not, please post CREATE TABLE and INSERT statements for your sample data and results you like from these data (otherwise what you have already posted).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

Maybe you are looking for

  • How to convert .smi .dmg in El Capitan

    I downloaded the system 7 in the .smi (System 7.0.1.smi) format image file and I found no way to mount it or convert it to dmg. Disk utility doesn't support .smi conversion to the current version. Are there other ways of "extract"? Thank you in advan

  • Satellite NB10 A986 webcam problem

    Hello Please help me, I have a problem of blur using the webcam with Skype, and even with the camera utility windows 8.1, videos on Skype and photos taken by webcam are blurry (sorry for my English!).I don't think that there is a plastic sticker on w

  • Disappeared from the sidebar of the Finder. Where at - it go?

    On my MacBook, I'll see something like this in the sidebar of Finder - a new feature in El Capitan. Three options will usually appear in the sidebar of the Finder, and they look like this: However, on my iMac, the Finder sidebar has disappeared for s

  • Why can't work more crosswords?

    Iusually visit three sites of daily crossword. Each of them worked Wednesday. I downloaded several updates, including IE8, Wednesday. Thursday, while I was still able to use the USA Today crossword and crossword Web, the best crossword site did not w

  • Error message "Windows cannot open this file" for all .exe files.

    I have talked with agents of cat and directly by e-mail to a person called Betty to and followed the steps all the recommended without correcting this problem. I can only run a .exe file in a folder. Any attempt to run an exe from Windows XP - Pro re