Unsplitting cells in InDesign tables

I want to edit or remove the splits in a cell in a table, i cannot find a way of doing this apart from recreating the row. Does anyone know a better method?

Maybe it will help if I explain what I'm trying to do. The table is a drugs chart which keeps track of the number of times a day a certain medicine should be taken. Each row represents a different medicine, and the cells the days of the week. Each cell is then split to indicate the number of doses in a day. I am trying to alter the the number of splits in a cell to indicate a different number of doses in a day. So I want to keep the cells separate but alter the number of vertical splits.

Similar Messages

  • Globally adding content to empty cells in InDesign Tables

    I have a file with 190 tables, all with a number of empty cells. The client has decided that these cells need to contain an m-dash. Is there a way to globally add this m-dash to all empty cells, to avoid having to go cell by cell?

    I think that would have to be scripted.
    Perhaps check out the Scripting forum - but sometimes those clever scripters are lurking here too

  • Ignore cell boundary in InDesign table?

    Is it possible to have the text in an InDesign table cell ignore the boundaries of the cell walls without merging cells?

    Sure, but without using Merge Cells (why not?) you'll have to cheat a bit.
    You can place a single cell table in a cell -- see image -- because, famously, table cells may run outside any border of its parent (even text frames).
    You can also put your text into a new frame of its own and cut-and-paste that into a cell (on afterthought, that might be a bit easier).

  • How can I find overset text in a InDesign table and locate the page?

    I am currently using CC but see the same issue in CS5 as well. If text within a table is overset or cannot be displayed, I can use search/replace for a term that I know is in an affected cell, however InDesign will find the first instance but will not automatically navigate to the page. Instead it remains on whatever page I happened to be on.

    For product specific questions you may do better in the specific product forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right to open the drop down list and scroll
    http://forums.adobe.com/community/indesign

  • How could I insert just a single cell in a table (not an entire extra row or column)?

    I am having trouble making an easy edit. I need to insert an a 'CELL', but I am only being given the option to insert an entire 'ROW' or 'COLUMN'. I would like to just insert a cell and have the rest of the content below it move accordingly. Please help!

    There's no way to set it so that you're just inserting a cell and everything moves along after that cell?
    Simple answer is "No." Sorry.
    InDesign tables are not good for juggling data. If you have a project that requires single-cell-insertion on a regular basis, I suggest doing your table outside of InDesign in an app with easier table-cell-juggling tools (Excel comes to mind here) and then perfecting you use of table and cell styles so that it's easy to update. It'll always be a hassle of some kind, of course, but the hassle can be minimized.

  • [CS3][VBS]Converting a CALS table to Indesign table in XML

    Hi!<br /><br />I have an xml-file with tables that I want to import into Indesign. It works fine when I use the Import CALS tables as Indesign tables in "Import options", but the problem is when I do this some emphasis elements inside the "entry" elements isn't found when I try to use XMLRules to format the emphasis elements in the document...<br />The structure of the table can be like this (in general):<br />Tabell<br />  table<br />    tblgrp<br />      tbody<br />       row<br />         <entry>Some text...<emp Type = "bold">bold text</emp></entry><br />         <entry>Some text</entry><br />         <entry>some text</entry><br />       row<br />      tbody<br />    tblgrp<br />   table<br /> Tabell<br /><br />When I import the Table as CALS tables to Indesign tables, the table structure is collapsed into just a <Tabell> element. I assume this is the reason why the <emp> element isn't found.<br /><br />I try to solve this by NOT importing CALS tables to Indesign tables. I see then that the whole table structure is intact in the structure panel and the <emp> elements are also found by the XMLRules, but the contents is not put inside a table in the indesign document. To put the table elements into a table in Indesign I use the Command: "ConvertElementToTable" but this doesnt work very well. I use it in XMLRules like this:<br /><br />Public Property Get xpath()<br />xpath = "//Tabell"<br />End Property<br /><br />Public Function apply(myXMLElement, myRuleProcessor)<br />With myXMLElement<br />.ConvertElementToTable "row", "entry"<br />End With<br />apply = False<br />End Function<br /><br />Does anyone have any experience of importing XML-tables in Indesign and formatting them? I could really need some to put the xml table into Indesign tables...Please help!<br /><br />In advance thanks!

    Hi!
    Just check the checkbox "Import CALS tables as Indesign tables" in the XML import options dialogbox. Then it should go automatically.
    The problem with this approach is that the entire table structure is collapsed to a single table element in the struture. If one want to do some xml-prosessing at row or cell level one need to to this outside indesign or not import CALS as Indesign tables. The big question is if there is some easy way to convert a CALS table to an Indesign table inside Indesign after one have imported the data and prosessed the row and cell elements...
    Hope anyone knows more than me about this....
    Anyway, mkarthic, I hope my answer helped you to import your CALS tables!:-)
    Greetings
    Pål

  • Create a drop down list in a cell within a table ?

    Is there a way to create a drop down list in a cell within a table ? Like the way it can be done in ms word or excell ? I dont mean an interactive pdf/form. I want to create a table in indesign which has drop down lists other people can use to populate a table quickly.

    Not possible. InDesign isn't designed to be form-filling software. At best, it can create fields which can be passed on to a PDF file, which usually further has to be edited in Acrobat Pro.

  • Do InDesign table fields convert to form fields for interactive PDFs?

    Does InDesign CC recognize table fields as form fields when creating fillable form PDFs - or do I have to create individual text fields on top of the InDesign table and assign form field text field characteristic in the buttons and forms menu?

    I don't believe InDesign itself will apply any form of automated recognition to table cells...BUT...Acrobat's form field recognition certainly picks up empty table cells and assigns them as text-input fields.
    See this page: http://www.eformsfactory.com/mobile-desktop-forms-with-form-field-recognition-in-adobe-acr obat/

  • Fastest way to fill an InDesign table with data

    Hello,
    I have to fill several InDesign tables with the content of my database.
    I have the database in memory and fill the cells in two Loops (For Each row..., For Each col...).
    But it is so slow! Is there a faster way?
    Here a code snippet of the solution today:
                For Each row In tableRecord
                    Dim inDRow = table.Rows.AsEnumerable().ElementAt(intRow)
                    For Each content In row
                        Dim cell = inDRow.Cells.AsEnumerable().ElementAt(content.Index)
                        cell.Contents = content.Value
                    Next
                    intRow+=1
                Next
    Thank you for help!
    Best regards
    Harald

    Hi, Harald!
    "This should be faster: table.Contents=Array. Or not?"
    Surprisingly is was not. It was slower. A lot slower.
    The array was gathered by (here ExtendScript(JavaScript) dummy code) :
    myArray = myTable.contents;
    Then I did operate on the array. Not on the table object or its cell objects. No direct access to InDesign's DOM objects. Just the built array.
    My text file was written by populating it with a string of the array:
    myString = myArray.join("separatorString");
    separatorString was something that was never used as contents in the table.
    Something like "§§§"…
    After importing the text file I used the convertToTable() method providing the separatorString as separator for the first and second argument with the number of columns as third argument. The number of columns was known from my original table.
    var myNewTable = myText.convertToTable("separatorString", "separatorString", myNumberOfColumns);
    Alternatively you could also remove the table after building the array and assign "myString" as contents for the insertionPoint of the removed table in the story. I think I tested that as well, but do not know, if there is a difference in speed opposed to placing a text file with the same contents (I think it was, but not I'm not sure anymore). So I ended up with:
    1. Contents of table to Array
    2. Array manipulation
    3. Array to String
    4. Write String as file
    5. Remove table
    6. Place file at InsertionPoint of (now removed) table
    Also to note: This was in InDesign CS5 with a very large table.
    Things could have changed in InDesign versions with 64-Bit support.
    But I did not test that yet. The customer I wrote this script for is still on CS5.
    Uwe

  • Import CALS table as Indesign Table

    Hi All,
    InDesign CS3.
    Im working on NLM-DTD, When im importing the xml file into indesign template, i have checked the option "Import CALS table as Indesign table". So it is transfered to table format, after finished the pagination, i want to export the xml file, now the formatting of the table cells (italic, bold, etc) are not coming properly. so i have troubled with this.
    Can you help me!!!
    Regards,
    sudar

    Hello,
    Thanks.
    Yes, that worked fine. But the small XML file below, containing some titles and a table, does not work. I assumed that I could drag and drop the <informaltable> element onto the page and get a rendered table.
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
    <article lang="en">
      <articleinfo>
        <pubsnumber>Some number</pubsnumber>
        <releaseinfo>Another number</releaseinfo>
        <title>A title</title>
      </articleinfo>
      <informaltable frame="all" rowsep="1" colsep="1">
        <tgroup cols="2">
          <colspec colname="col_1" colwidth="50*" />
          <colspec colname="col_2" colwidth="50*" />
          <thead>
            <row>
              <entry align="left" valign="top" namest="col_1" nameend="col_2">
                Some heading here
              </entry>
            </row>
          </thead>
          <tbody>
            <row>
              <entry align="left" valign="top">
                Some content in left cell
              </entry>
              <entry align="left" valign="top">
                Some content in right cell
              </entry>
            </row>
            <row>
              <entry align="left" valign="top">
                Some content in left cell
              </entry>
              <entry align="left" valign="top">
                Some content in right cell
              </entry>
            </row>
           </tbody>
        </tgroup>
      </informaltable>
    </article>
    Best wishes,
    Sven

  • InDesign Table Fit (Clear overflow, Height and Row fit)

    Hi All,
    I am using MagicFit.jsx for fit the table. But it does not clear the overflow and it does not fit the Height. I want to do all of this.
    Plz suggest.
    MagicFit.jsx
    function MagicFit(){
        app.scriptPreferences.version = 4.0;          //Because I am using CS5
        MagicFit_1()
        app.scriptPreferences.version = 6.0;
    function MagicFit_1(){
            MagicFit 2.1b for InDesign CS / CS2 -- 01/18/06               
            Fits to content the WIDTH of the selected text container(s)   
            Features:                                                     
            - Fits selected TextFrame(s) width to content                 
            - 1st call: "strict" fitting (preserve each lines length)    
            - 2nd call (within 2 secs) : "fluid" fitting (preserve height)
            - (NEW) Alternate fitting of table column(s) if selected      
            - (NEW) Compute a minimal width by parsing embedded objects   
            - (NEW) Runs on selected frames, CELLS, groups, insertion pt  
            Installation & usage:                                         
            0) !! CS2 users only !!                                       
               Rename this script file with .jsx extension                
               (activating extend script features)                        
            1) Put the present file into the Presets/Scripts/ subdir      
            2) Run InDesign, open a document and select object(s) to fit  
               (or put insertion point into)                              
            3) Run the script via Window > Automation > Scripts           
               and double-clic on MagicFit.js                             
               Alternate way: assign a keyboard shortcut to the script via
               Edit > Keyboard Shortcuts... > Product area:"Scripts"      
            Help (FR) : http://marcautret.free.fr/geek/indd/magicfit/     
                (sorry, thats a french web page!)                      
                    Feedbacks : [email protected]                    
        //            SETTINGS
        var LATENCE = 2;         // in seconds (default:2)
        var PRECISION = 0.5;    // in pts (default:0.5)
        var APP_INT_VERSION = parseInt(app.version);
        //            TOOLBOX FUNCTIONS
        /*void*/ function exitMessage(/*exception*/ ex){
            alert("Error:\n" + ex.toString());
            exit();
        //            DOCUMENT METHODS
        /*void*/ Document.prototype.setUnitsTo = function(/*units*/ newUnits){        // units can be single value (horiz=vert) or array(horizUnits, vertUnits)
            var arrUnits = (newUnits.length) ? newUnits : new Array(newUnits,newUnits);
            this.viewPreferences.horizontalMeasurementUnits = arrUnits[0];
            this.viewPreferences.verticalMeasurementUnits = arrUnits[1];
        /*arr2*/ Document.prototype.getUnits = function(){
            return(Array(
                this.viewPreferences.horizontalMeasurementUnits,
                this.viewPreferences.verticalMeasurementUnits));
        /*bool*/ Document.prototype.withinDelay = function(){
            if (this.label)
                return( (Date.parse(Date())-this.label) <= LATENCE*1000 );
            return(false);
        /*void*/ Document.prototype.storeTimeStamp = function(){
            this.label = Date.parse(Date()).toString();
        //            GENERIC METHODS (OBJECT LEVEL)
        // Returns the "fittable-container" corresponding to THIS
        // Return array or collection HorizFit-compliant
        // NULL if failure
        /*arr*/ Object.prototype.asObjsToFit = function(){
            switch(this.constructor.name){
                case "TextFrame" :            // textframe -> singleton this
                    return(Array(this));
                case "Cell" :                // cells -> parent columns
                    var r = new Array();
                    // !! [CS1] Cell::parentColumn === Cell !!
                    // !! [CS2] Cell::parentColumn === Column !!
                    // !! [CS2] Cells::lastItem().parentColumn BUG !!
                    var c0 = this.cells.firstItem().name.split(":")[0];
                    var c1 = this.cells.lastItem().name.split(":")[0];
                    for (var i=c0 ; i<=c1; i++)
                        r.push(this.parent.columns[i]);
                    return(r);
                case "Table" /*CS2*/ :        // table -> columns
                    return(this.columns);
                case "Group" :                // group -> textFrames
                    return((this.textFrames.length>0) ? this.textFrames : null);
                case "Text" :                // selection is Text or InsertionPoint
                case "InsertionPoint" :        // -> run on container
                    var textContainer = this.getTextContainer();
                    return((textContainer) ? textContainer.asObjsToFit() : null);
                default:
                    return(null);
        // Returns Text's or InsertionPoint's container :
        // Type returned: TextFrame or Cell - NULL if failure
        /*obj*/ Object.prototype.getTextContainer = function(){
            try{ // try...catch because of CS2 behaviour
                if (this.parent.constructor.name == "Cell")           
                    return(this.parent);
                if (this.parentTextFrames)        // plural in CS2
                    return(this.parentTextFrames[0]);       
                if (this.parentTextFrame)    // single in CS1
                    return(this.parentTextFrame);
                return(null);
            }catch(ex) {return(null);}
        // Parse embedded "objects": tables, pageitems [including graphics]
        // and returns the max width
        // !! All parsed objects have to provide a computeWidth method !!
        /*int*/ Object.prototype.computeIncludedObjectsWidth = function(){
            var objsNames = new Array("pageItems","tables"); // could be extended
            var objsWidth = 0;
            var w = 0;
            for (var j=objsNames.length-1 ; j>=0 ; j--){
                for (var i=this[objsNames[j]].length-1 ; i>=0 ; i--){
                    try{
                        w = this[objsNames[j]][i].computeWidth({VISIBLE:true});
                    }catch(ex){
                        w=0;
                    if (w > objsWidth) objsWidth=w;
            return(objsWidth);
        // Generic computeWidth method for bounded objects
        // VISIBLE true -> external width
        // VISIBLE false -> internal width
        /*int*/ Object.prototype.computeWidth = function(/*bool*/ VISIBLE){
            if (VISIBLE){
                if (this.visibleBounds)
                    return(this.visibleBounds[3]-this.visibleBounds[1]);
            else{
                if (this.geometricBounds)
                    return(this.geometricBounds[3]-this.geometricBounds[1]);
            return(0);
        // Override Object::computeWidth for Table : returns simply the width
        /*int*/ Table.prototype.computeWidth = function(){
            return(this.width);
        // Returns chars count for each LINE of this (-> array)
        // empty array  IF  this.lines==NULL  OR  this.lines.length==0
        /*arr*/ Object.prototype.createLinesSizesArray = function(){
            r = new Array();
            if (this.lines)
                for (var i=this.lines.length-1; i>=0 ; i--)
                    r.unshift(this.lines[i].characters.length);
            return(r);
        // Compare chars count beetween THIS and arrSizes argument
        // (generic method just presuming that THIS have lines prop.)
        // -> TRUE if isoceles, FALSE if not
        /*bool*/ Object.prototype.isoceleLines = function(/*arr*/ arrSizes){
            if (this.lines.length != arrSizes.length) return(false);
            for (var i=arrSizes.length-1 ; i>=0 ; i--)
                if (arrSizes[i] != this.lines[i].characters.length)
                    return(false);
            return(true);
        //            TEXTFRAME METHODS
        // intanciate the part of the abstract process for TextFrames
        /*bool*/ TextFrame.prototype.isEmpty = function(){
            return(this.characters.length==0);
        /*bool*/ TextFrame.prototype.isOverflowed = function(){
            return(this.overflows);
        /*int*/ TextFrame.prototype.getWidth = function(){
            return(this.computeWidth({VISIBLE:false}));
        // Redim the frame in width by widthOffset
        /*void*/ TextFrame.prototype.resizeWidthBy = function(/*int*/ widthOffset){
            this.geometricBounds = Array(
                this.geometricBounds[0],
                this.geometricBounds[1],
                this.geometricBounds[2],
                this.geometricBounds[3] + widthOffset);
        // Returns the minWidth of the frame according to embedded content
        // and inner space
        // inner width space
        /*int*/ TextFrame.prototype.computeMinWidth = function(){
            var inSpace = this.textFramePreferences.insetSpacing;
            var inWidth = (inSpace.length) ?
                inSpace[1] + inSpace[3] :    // distinct left & right inspace
                2*inSpace;                    // global inspace
            return(this.computeIncludedObjectsWidth() + inWidth);
        /*int*/ TextFrame.prototype.getCharsCount = function(){
            return(this.characters.length);
        /*int*/ TextFrame.prototype.getLinesCount = function(){
            return(this.lines.length);
        // Return chars count BY LINE (-> array)
        /*arr*/ TextFrame.prototype.getLinesSizes = function(){
            return(this.createLinesSizesArray());
        // YES -> -1  , NOT -> 1
        /*int*/ TextFrame.prototype.preserveCharsCount = function(/*int*/ charsCount){
            return( (this.characters.length != charsCount) ? 1 : -1 );
        // Indicates whether:
        // - chars count equals linesCount
        // - frame DOES NOT overflow
        // YES -> -1  , NOT -> 1
        /*int*/ TextFrame.prototype.preserveLinesCount = function(/*int*/ linesCount){
            return( ((this.overflows) || (this.lines.length != linesCount)) ? 1 : -1 );
        // Indicates whether:
        // each x line isoceles linesSizes[x]
        // YES -> -1  , NOT -> 1
        /*int*/ TextFrame.prototype.preserveLinesSizes = function(/*arr*/ linesSizes){
            return( (this.isoceleLines(linesSizes)) ? -1 : 1 );
        //            COLUMN METHODS
        // intanciate the part of the abstract process for Columns
        /*bool*/ Column.prototype.isEmpty = function(){
            for (var i=this.cells.length-1; i>=0 ; i--)
                if (this.cells[i].characters.length>0) return(false);
            return(true);
        // Indicates whether AT LEAST a cell overflows
        // !! We can't trust Column::overflows !!
        /*bool*/ Column.prototype.isOverflowed = function(){
            for (var i=this.cells.length-1 ; i>= 0 ; i--)
                if (this.cells[i].overflows) return(true);
            return(false);
        /*int*/    Column.prototype.getWidth = function(){
            return(this.width);
        // Redim the column width by widthOffset
        // !! we HAVE TO update the display after resizing !!
        /*void*/ Column.prototype.resizeWidthBy = function(/*int*/ widthOffset){
            this.width += widthOffset;
            // updates the display
            if (APP_INT_VERSION > 3)        // CS2+
                this.recompose();
            else{
                // CS -- thx to Tilo for this hack --
                for(var i = this.cells.length - 1 ; i >= 0 ; i-- ){
                    // Comparing the cell contents against null
                    // seems to internally recompose the cell!
                    if (this.cells[i].contents == null) {}
        // Returns the minWidth of the column according to embedded content
        // and inner space
        /*int*/ Column.prototype.computeMinWidth = function(){
            var iCell = null;
            var w = 0;
            var r = 0;
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                iCell = this.cells[i];
                w = iCell.computeIncludedObjectsWidth() +
                    iCell.leftInset + iCell.rightInset;
                if (w > r) r = w;
            return(r);
        // Returns SIGNED chars count BY CELL (negatif if overflows)
        /*arr*/ Column.prototype.getCharsCount = function(){
            var r = new Array();
            var sgn = 0;
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                sgn = (this.cells[i].overflows) ? -1 : 1;
                r.unshift(sgn * this.cells[i].characters.length);
            return(r);
        // Returns lines count BY CELL
        /*arr*/ Column.prototype.getLinesCount = function(){
            var r = new Array();
            for (var i=this.cells.length-1 ; i>= 0 ; i--)
                r.unshift(this.cells[i].lines.length);
            return(r);
        // Matrix: returns the chars count BY LINE / BY CELL
        /*bi-arr*/ Column.prototype.getLinesSizes = function(){
            var r = new Array();
            for (var i=this.cells.length-1 ; i>= 0 ; i--)
                    r.unshift(this.cells[i].createLinesSizesArray());
            return(r);
        // Indicates whether:
        // overflow sign BY CELL x equals sgn(charsCount[x])
        // YES -> -1  , NO -> 1
        /*int*/ Column.prototype.preserveCharsCount = function(/*arr*/ charsCount){
            var sgn = 0;
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                sgn = (this.cells[i].overflows) ? -1 : 1;
                if (sgn * charsCount[i] < 0) return(1);
            return(-1);
        // Indicates whether:
        // - lines count BY CELL x equals linesCount[x]
        // - no cell overflows
        // YES -> -1  , NO -> 1
        /*int*/ Column.prototype.preserveLinesCount = function(/*arr*/ linesCount){
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                if (this.cells[i].overflows) return(1);
                if (this.cells[i].lines.length != linesCount[i]) return(1);
            return(-1);
        // Indicates whether:
        // - in each CELL x, each LIGNE y isoceles linesSizes[x][y]
        // (if a cell overflows, returns 1)
        // YES -> -1  , NO -> 1
        /*int*/ Column.prototype.preserveLinesSizes = function(/*bi-arr*/ linesSizes){
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                if (this.cells[i].overflows) return(1);
                if (this.cells[i].isoceleLines(linesSizes[i]) == false) return(1);
            return(-1);
        //            METHODES CENTRALES
        // !! [CS2 only] Prevents a strange crash on wide table columns selection !!
        // !! Thx to Tilo for this hack --
        /*void*/ Object.prototype.manageFit = function(/*bool*/ FLUIDFITTING){
            if (APP_INT_VERSION>=4){
                $.gc();
            // NOP if empty object
            if (this.isEmpty()) return;
            // min width to preserve
            var minWidth = this.computeMinWidth();
            // let's go!
            this.processFit(FLUIDFITTING, minWidth);
        // Fits this object
        // if FLUIDFITTING -> fluid fitting, else: strict fitting
        // minWidth sets the threshold
        /*void*/ Object.prototype.processFit = function(/*bool*/ FLUIDFITTING, /*int*/ minWidth){
            if (FLUIDFITTING){ // FLUID FITTING
                if (this.isOverflowed()){ // NB : overflowed CELLS are "transparent"
                    var charsCount = this.getCharsCount();
                    var evalFlag = function(thisObj){return(thisObj.preserveCharsCount(charsCount));}
                else{
                    var linesCount = this.getLinesCount();
                    evalFlag = function(thisObj){return(thisObj.preserveLinesCount(linesCount));}
            else{ // STRICT FITTING
                  // NB : overflowed columns are "intouchable"
                if ((this.constructor.name=="Column") && (this.isOverflowed()))
                    return;
                var linesSizes = this.getLinesSizes();
                var evalFlag = function(thisObj){return(thisObj.preserveLinesSizes(linesSizes));}
            // DICHOTOMIC LOOP
            var sgnFLAG = -1;
            var w = ( this.getWidth() - minWidth ) / 2;
            while (w >= PRECISION){
                // resize width by +/- w
                this.resizeWidthBy(sgnFLAG*w);
                // +1 = increase | -1 = reduce
                sgnFLAG = evalFlag(this);
                // divide
                w = w/2;
            // exit with sgnFLAG==+1 -> undo last reduction -> +2w
            if (sgnFLAG>0) this.resizeWidthBy(2*w);
        // MAIN PROGRAM
        if ( app.documents.length > 0 ){
            if ( app.activeWindow.selection.length > 0 ){
                try{
                    var thisDoc = app.activeDocument;
                    var FLUIDFLAG = thisDoc.withinDelay();
                    var memUnits = thisDoc.getUnits();
                    thisDoc.setUnitsTo(MeasurementUnits.points);
                    var selObjs = app.activeWindow.selection;
                    var objsToFit = null;
                    for (var i=selObjs.length-1 ; i>=0 ; i--){
                        objsToFit = selObjs[i].asObjsToFit();
                        if (objsToFit){
                            for (var j=objsToFit.length-1 ; j>=0 ; j--)
                                objsToFit[j].manageFit(FLUIDFLAG);
                    thisDoc.setUnitsTo(memUnits);
                    thisDoc.storeTimeStamp();
                }catch(ex){
                    thisDoc.setUnitsTo(memUnits);
                    exitMessage(ex);
            else
                alert("No object selected!");
        else
            alert("No document opened!");

    InDesign table cells don't break across pages the way they do in Word. It's all or nothing.

  • Adding Effects to text in individual cells of a table

    Hello every one,
    I am creating a five day calendar for a larger day timer. I have used a table to format all my information now I just wanted to add effects to some of the text( drop shadow to the name of the month and what not). Is there a good way to add effects to just one cell of a table? So far I can only add effects to the entire table. I am using Indesign cs5 on a Mac. Also does any one know of a good calendar creating script or template? I am currently using calendar magic but it is a little limited and cant make independent mini calendars or weekly calendars.
    Thanks

    Hi Mike,
    I tried with your suggested solution.
    The text was hypertexed but when i click to display the text which is linked to it is not shown.
    In general text i had linked the Text to a file to open after click on the hypertext by using Append Hypertext Link Anchor to Report.vi by stating the URL or the File Path to its input.
    I am attaching the VI for your reference.
    Thanks & Regards,
    Samriddh Sarbalhi
    Attachments:
    HTML Report Generation.vi ‏44 KB

  • Using a button and a textfield in the same cell of a table

    I have been struggling with this problem for ages, please someone help...
    I am trying to implement a table similar to NetBeans property sheet editor where you have a textfield and a button with "..." in the same table cell. The button is used to invoke a custom editor.
    I have most things working, custom renderers, custom editors and such.
    However, the focus interactions on the table seem completely screwed. Clicking in the editor causes the cell to switch to editing mode as expected. Pressing cursor down or tab, which should close the editor and move focus to the next cell down does not work - the editor closes but the focus disappears to a completely different component elsewhere on my GUI.
    My textfield and button are on a JPanel, and I return that JPanel when getTableCellEditorComponent is called.
    If I switch out the JPanel and instead return the textfield, the focus works as normal.
    I've even looked at the NetBeans source but I can't work out what their trick is.
    Any tips would be gratefully received.
    TIA.

    Thanks for your time, Jeanette...
    Here is a bare-bones example of the problem I'm having. I'm running on JDK1.4 and JDK1.3.1_02.
    I've tried some tricks (hacks) with getNextFocusableComponent and requestDefautFocus and such but with no success.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    * This example shows a keyboard/focus navigation problem when using a JPanel
    * as a table cell editor. The JPanel contains a textfield and a button.
    * Click in the editor to invoke it, and tab-off (or press cursor down). The
    * edit ends, but the focus disappears rather than moving to the next cell in
    * the table.
    * Change the line that returns the panel to return a text field instead, and
    * all is well.
    public class Test
      public static void main( String[] args )
        new Test();
      public Test()
        JFrame f = new JFrame();
        f.setContentPane( new TablePanel() );
        f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        f.setSize( 800, 600 );
        f.setVisible( true );
      class TablePanel extends JPanel
        TablePanel()
          setLayout( new BorderLayout() );
          JTable table = new JTable();
          table.setDefaultEditor( Object.class, new MyEditor() );
          table.setModel(
            new DefaultTableModel(
              new Object[][]
                {null, null},
                {null, null},
                {null, null},
                {null, null}
              new String[] { "A", "B" } ) );
          add( table, BorderLayout.CENTER );
      class MyEditor extends AbstractCellEditor implements TableCellEditor
        private JComponent myEditorPanel;
        private JTextField myTextField;
        MyEditor()
          myEditorPanel = new MyEditorPanel();
          myTextField = new JTextField();
        public Object getCellEditorValue()
          return null;
        public Component getTableCellEditorComponent( JTable table, Object value,
                                                      boolean isSelected,
                                                      int row, int column )
          return myEditorPanel;   // Problems...
    //      return myTextField;   // Keyboard and focus as expected
      class MyEditorPanel extends JPanel
        JTextField tf;
        MyEditorPanel()
          setLayout( new BorderLayout() );
          tf = new JTextField();
          add( tf, BorderLayout.CENTER );
          add( new JButton( "edit" ), BorderLayout.EAST );

  • How do I click on a cell in a table control, and display the value in a string?

    What I would like to do is to click on a cell in a table control, and have the value of the cell be displayed in a string indicator. What ever cell I click on, I would like the value to be displayed in the indicator.
    Thank you!
    Solved!
    Go to Solution.

    ... or
    Event >>> ouse down for table.
    Use Coords" to feed invoke node "point To Row Column" and returned "Cell Postion" can be unbundled to produce the row and column tht can be used to index out the value.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I create an internal space from the border in every cell in a table?

    How can I create an space between the text contents and the border inside in every cell in a table in Pages?

    Change the Inset margin in the Inspector palette > T tab > Text

Maybe you are looking for

  • Photoshop CC 2014.1 crashing

    Been using Photoshop CC 2014.1 since it came out and just recently I have been getting several crashes where I get the spinning Beach Ball. It actually ends up crashing my computer. I reinstalled PSD CC 2014 but it still happens. I also have PSD CS6.

  • Photosmart 3310 on network is always offline.

    I have a Photosmart 3310 connected to an ethernet LAN. I set it to a fixed IP of 192.168.0.151 It's connected to a 10/100 switch. To start with it worked perfectly, I could print to it from all the PCs on the LAN, which are running XP Pro. But today

  • HT4228 Can't seem to turn Limit Ad tracking on.

    I just get a spinning wheel were the slider switch should be... Any idea what that is all about? By the way, I have let this spin away for eight or 10 minutes and still nothing happens. Same thing happens on both my iPhone 5 and iPad 4 both with iOS7

  • ORA-06528: Error executing PL/SQL profiler

    Hai I would like to see the outcome of package (to view the report on the package).In order to get that I installed the below package connect as internal sql>d:\oracle\orq81\rdbms\admin\profload.sql In order to use dbms_profiler,after that i need to

  • Album Artwork/Playlist doesn't match

    I am trying to print a few CD inserts.  The album artwork matches the CD's I selected, but the playlists are wrong.  All 4 have a playlist from the same completely different album.