Exact height on 1st and last table row

PLease--How do I modify this script so that it will affect the first and the last row.I out of ideas.--- app.activeDocument.stories.everyItem().tables.everyItem().rows.everyItem(0).properties = {autoGrow:false, minimumHeight:"14pt"};

@Bob – To get access to the first row forget the everyItem(0) in your script. Instead write rows[0], for the last row write rows[-1].
//First row of every table in the document:
app.activeDocument.stories.everyItem().tables.everyItem().rows[0].properties = {autoGrow:false, minimumHeight:"14pt"};
//Last row of every table in the document:
app.activeDocument.stories.everyItem().tables.everyItem().rows[-1].properties = {autoGrow:false, minimumHeight:"14pt"};
If you have tables with one single row the last row is the first row. The script will not break.
To get the exact height, there are two options:
minimumHeight
height
See Jongware's online documentation of  JavaScript:
http://jongware.mit.edu/idcsjs5.5/pc_Rows.html
Uwe

Similar Messages

  • Can please tell me how to implement expand and collapse table row data?

    i am trying implement expand and collapse table row data but i do not get any ideas..can please any one help me its an urgent requirement

    Yes, we can.   
    I think the best place for you to start for this is the NI Developer Zone.  I recommend beginning with these tutorials I found by searching on "data log rio".  There were more than just these few that might be relevant to your project but I'll leave that for you to decide.
    NI Compact RIO Setup and Services ->  http://zone.ni.com/devzone/cda/tut/p/id/11394
    Getting Started with CompactRIO - Logging Data to Disk  ->  http://zone.ni.com/devzone/cda/tut/p/id/11198
    Getting Started with CompactRIO - Performing Basic Control ->  http://zone.ni.com/devzone/cda/tut/p/id/11197
    These will probably give you links to more topics/tutorials/examples that can help you design and implement your target system.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • IPhoto 11 Book 1st and last page errors

    When previewing my completed book, the 1st and last page have white lines going through them.
    How can i fix this so I can buy it.
    Thanks

    Boot into  Safe Mode and preview the book.  If the first and last page photos are OK order the book from the Safe Mode.  It's a problem others are having and worked around it with the Safe Mode boot.
    Be sure to report it to Apple via http://www.apple.com/feedback/iphoto.html.
    OT

  • Cannot close tabs in Firefox 4 - only able to access 1st and last tab...nothing in between

    As the title says... even if I hover over tabes between 1st and last tabes adn right click, 'close tab' still doesn't close

    nearly. when there are 2 tabs, when I move mouse over the second tab's closing X, OR the new tab opener + near it, it doesn't highlight so I cannot click on them although the area where I can click can be found a bit left for the X and a bit right for the +. If there are more tabs open, only the second tab's closing problem stays, the new-tab-opener's goes. /default theme/

  • First And Last Visible Row - JTable

    I have a JTable on a ScrollPane backed by a TableModel, which provides a view on a potentialy large database table. It would be very helpfull if I could find the First and the Last visible row in the JTable every time it makes an elementAt request via TableModel interface, so that the cache underneeth the TableModel could make more intelegent descissions as to when to request more rows from the DB. I cant seem to see any methods on JTable or JScrollpane( and subclasses ) to acheive this. I would greatly appreciate any sugestions.

    use
    Rectangle rect = MyTable.getVisibleRect();
    Point point = rect.getLocation();
    int firstRow = myTable.rowAtPoint( point ) );
    point.setLocation( rect.getX() + rect.getWidth(),
                             rect.getY() + rect.getHeight() );
    int lastRow = myTable.rowAtPoint( point ) );

  • Framemaker10: can't cut and paste tables, rows, or columns

    When I select a table row, copy, and then try to paste it as a new row, only text pastes in. When I Edit>Paste Special, the only options provided are Text and Unicode Text.
    I used to be able to cut and paste rows but that is no longer an option. Has anyone experienced this? Know a fix?
    Editing my maker.ini files does not fix it.

    Exactly how are you attempting to copy/paste?
    For a whole table, I select the marker, copy, paste wherever.
    For a row, I'm able to position my cursor in a row, highlight the row, then paste either at the end of that table or separately.
    Haven't tried columns, but they probably work the same way.

  • Copy-and-paste table row results in hang in Contribute 6.5 Mac

    Am running Adobe Contribute 6.5 for Mac on OS X 10.8.2 Mountain Lion.
    Cannot copy-and-paste a table row from one page to another without having Contribute hang. Get spinning multi-colored beach ball and have to eventuall Force Quit Contribute.
    This worked correctly in Contribute 3 on OS X 10.7.x Lion.
    Any suggestions? Any Adobe engineers who have seen this behavior?

    Can you try restoring default preferences of Contribute. Please refer to the link below:-
    http://help.adobe.com/en_US/contribute/using/WS9bb3bf4338822288-4d5ec4dc12bd2bd955c-8000.h tml

  • Small issue with custom table cell editor and unwanted table row selection

    I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
    My TreeComboBox component:
    public class TreeComboBox extends JPanel implements MouseListener {
        private JTextField itemField;
        private TreeModel treeModel;
        private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
        private Object selectedItem;
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
        public TreeComboBox(TreeModel treeModel) {
            this(treeModel, null);
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public TreeComboBox(TreeModel treeModel, Object selectedItem) {
            this.treeModel = treeModel;
            this.selectedItem = selectedItem;
            initComponents();
         * Returns the current drop-down tree model.
         * @return the current <code>TreeModel</code> instance.
        public TreeModel getTreeModel() {
            return treeModel;
         * Sets the tree model.
         * @param treeModel a <code>TreeModel</code> instance.
        public void setTreeModel(TreeModel treeModel) {
            this.treeModel = treeModel;
         * Returns the selected item from the drop-down selector.
         * @return the selected tree object.
        public Object getSelectedItem() {
            return selectedItem;
         * Sets the selected item in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public void setSelectedItem(Object selectedItem) {
            this.selectedItem = selectedItem;
            String text = selectedItem != null ? selectedItem.toString() : "";
            itemField.setText(text);
            setToolTipText(text);
         * Overridden to enable/disable all child components.
         * @param enabled flat to enable or disable this component.
        public void setEnabled(boolean enabled) {
            itemField.setEnabled(enabled);
            super.setEnabled(enabled);
        public void addActionListener(ActionListener listener) {
            actionListeners.add(listener);
        public void removeActionListener(ActionListener listener) {
            actionListeners.remove(listener);
        // MouseListener implementation
        public void mouseClicked(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
            showPopup();
        private void initComponents() {
            setLayout(new GridBagLayout());
            itemField = new JTextField();
            itemField.setEditable(false);
            itemField.setText(selectedItem != null ? selectedItem.toString() : "");
            itemField.addMouseListener(this);
            add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
        private void showPopup() {
            final TreePopup popup = new TreePopup();
            final TreeComboBox tcb = this;
            final int x = itemField.getX();
            final int y = itemField.getY() + itemField.getHeight();
            int width = itemField.getWidth() + popupButton.getWidth();
            Dimension prefSize = popup.getPreferredSize();
            prefSize.width = width;
            popup.setPreferredSize(prefSize);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    popup.show(tcb, x, y);
                    popup.requestFocusInWindow();
        private void fireActionPerformed() {
            ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
            for (ActionListener listener : actionListeners) {
                listener.actionPerformed(e);
        private class TreePopup extends JPopupMenu {
            private JTree tree;
            private JScrollPane scrollPane;
            public TreePopup() {
                initComponents();
                initData();
            private void initData() {
                if (treeModel != null) {
                    tree.setModel(treeModel);
            private void initComponents() {
                setFocusable(true);
                setFocusCycleRoot(true);
                tree = new JTree();
                tree.setRootVisible(false);
                tree.setShowsRootHandles(true);
                tree.setFocusable(true);
                tree.setFocusCycleRoot(true);
                tree.addTreeSelectionListener(new TreeSelectionListener() {
                    public void valueChanged(TreeSelectionEvent e) {
                        tree_valueChanged(e);
                scrollPane = new JScrollPane(tree);
                add(scrollPane);
            private void tree_valueChanged(TreeSelectionEvent e) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
                setSelectedItem(node.getUserObject());
                fireActionPerformed();
                this.setVisible(false);
    }My TreeComboBoxTableCellEditor:
    public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
        protected TreeComboBox treeComboBox;
        protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
        public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
            this.treeComboBox = treeComboBox;
            treeComboBox.addActionListener(this);
        public Object getCellEditorValue() {
            return treeComboBox.getSelectedItem();
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
            treeComboBox.setSelectedItem(value);
            return treeComboBox;
        public void actionPerformed(ActionEvent e) {
            stopCellEditing();
    }Any thoughts?
    Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
    Edited by: MiseryMachine on Apr 3, 2008 1:27 PM

    As I said, you have to have empty context elements before additional rows will be open for input.
    For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
    data itab type standard table of sflight.
    do 5 times.
      append initial line to itab.
    enddo.
    context_node->bind_table( itab ).
    The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table.

  • Rownum and last inserted row !!!!!!!!!!!!

    hi everybody,
    I am at present using oracle 8i Release 2. According to my knowledge and "Oracle 8 complete reference", when we use ROWNUM, the rownum is decided when the data is selected from the database. So when we use "order by" clause actually the rownum gets jumbled up.
    But to my surprise when i did something like this on my SQl prompt row num is acting very "innocent" :)
    <Code>
    1* select rownum, empno from emp
    SQL> /
    ROWNUM EMPNO
    1 7369
    2 7499
    3 7521
    4 7566
    5 7654
    6 7698
    7 7782
    8 7788
    9 7839
    10 7844
    11 7876
    12 7900
    13 7902
    14 7934
    15 1
    15 rows selected.
    SQL> select rownum, empno from emp order by empno;
    ROWNUM EMPNO
    1 1
    2 7369
    3 7499
    4 7521
    5 7566
    6 7654
    7 7698
    8 7782
    9 7788
    10 7839
    11 7844
    12 7876
    13 7900
    14 7902
    15 7934
    15 rows selected.
    </Code>
    As you can see rownum is ordered again .. m i missing something.
    B)
    Is it possible to get a row that was inserted last. Does oracle guarantee that data retrieval will be according to the time of inssertion !!
    Thanx in advance
    Chetan

    Rownum is decided afeter the complete execution of ur SQL statment (it includes ordey by, group by, where etc.).
    you can get the last inserted row using:
    select * from emp where rowid=
    (select max(rowid) from emp);
    Regards
    Riaz

  • Scheduling process chain in 1st and last of the month

    Hello ,
    Can some one help in scheduling the process chain at the starting of the month and the end of the month ?
    The chain has to start on 1 st and 28th of every month.
    Help me with the informations please!
    Points will be assigned!
    Thanks in Advance
    Ram!

    Have your process chain to start "After event". Then create an ABAP program to call function module BP_EVENT_RAISE. There are numerous postings in this forum on how to do this.
    Next create two monthly jobs (one scheduled on the 1st and the other on the 28th) using SM36, and the only step in the job is to call the program to trigger (raise) the event. By triggering the event, your process chain will execute.
    Check these links:
    Re: scheduling process chain 3 specific times a day

  • Converting Period to 1st and last date of that month

    Dear all,
    is there any FM to to do the following:-
    if in the selection screen i give the date as 09.2007 (MM.YYYY) then i want the output as
    01.09.2007 to 30.09.2007
    If u go to transaction MC.1  in that u will find this as select options.
    So when i enter in the selection screen the period from 09.2007 to 11.2007
    then the output should be 01.09.2007 to 30.11.2007. which i want to pass to MKPF table
    PLZ help

    hi rahul
    AT SELECTION-SCREEN.
      IF NOT p_abkrs1 IS INITIAL.
        IF NOT p_timr9 IS INITIAL.
          CALL FUNCTION 'PA03_PERIODDATES_GET'
            EXPORTING
              f_abkrs               = p_abkrs1
            IMPORTING
              f_permo               = wf_permo
              f_current_begda       = wf_begda
              f_current_endda       = wf_endda
            CHANGING
              f_current_period      = wf_pabrp
              f_current_year        = wf_pabrj
            EXCEPTIONS
              pcr_does_not_exist    = 1
              abkrs_does_not_exist  = 2
              period_does_not_exist = 3
              OTHERS                = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          p_begda = wf_begda.
          p_endda = wf_endda.
          p_ipabrp = wf_pabrp.
          p_ipabrj = wf_pabrj.
          IF NOT p_pabrp IS INITIAL OR NOT p_pabrj IS INITIAL.
            MESSAGE e016(rp) WITH 'Do not enter other period'.
            STOP.
            EXIT.
          ENDIF.
        ELSE.
          IF p_pabrp IS INITIAL OR p_pabrj IS INITIAL.
            MESSAGE e016(rp) WITH 'Enter a period'.
            STOP.
            EXIT.
          ENDIF.
          SELECT SINGLE * FROM t549a
                      INTO int_t549a
                      WHERE abkrs = p_abkrs1.
          IF sy-subrc = 0.
            SELECT SINGLE * FROM t549q INTO int_t549q
                                       WHERE permo = int_t549a-permo
                                         AND pabrj = p_pabrj
                                         AND pabrp = p_pabrp.
            IF sy-subrc = 0.
              p_begda  = int_t549q-begda.
              p_endda  = int_t549q-endda.
              p_ipabrp = p_pabrp.
              p_ipabrj = p_pabrj.
            ENDIF.
          ENDIF.
    reward points if useful
    karthik

  • Outlook contacts sync puts some 1st AND last names in iPhone 1st name

    After I initially synched all my Outlook contacts onto my new iPhone, some of the names show up on the iPhone as "lastname firstname" (which is what I want), but some show up as "firstname lastname". The problem with this is that they don't sort correctly. I've looked into the Outlook contact, and, in both cases, they have the correct firstname and lastname fields. In the iPhone contact, the entire name (firstname lastname) is in the iPhone firstname field and the lastname field is blank. I can find no other difference between the correctly synched contact and the incorrectly synched contact.
    Any suggestions??

    The sync messed up somehow. Sync does that sometimes.
    If you plug in the phone, but don't sync it yet, I believe there is an option somewhere (labeled Advanced) to overwrite the information on the phone with information from your computer. You might try that, for contacts. Explore all the iPhone panels in iTunes.
    Alternatively, delete all your contacts on the phone and re-sync.
    Caveat: I'm no sync expert and don't use windows.

  • HT5621 I set up an apple ID, however it  was incorrect. The user name should have a "dot" between the 1st and last name. How do I fix this?

    I set up an apple ID, however I inadvertently made an error in the user ID. How do I fix this?
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it.

  • CSS issue when changing the table row height to 16px

    Hello,
    After changing the table row height through css like this:
    .table-row-cell, .table-cell {
    -fx-cell-size: 16;
    the table rows are correctly displayed with a 16px height but the cell bottoms seem to be incorrectly set.
    For example the following css style (a red 3px bottom border):
    .table-cell {
    -fx-border-width: 0 0 3 0;
    -fx-border-color: red;
    doesn't work anymore with the new row height whereas it works with the 24px standard row height.
    While investigating with Scenic View, I noticed that changing the row height changes the TableRow layoutBounds height (from 24px to 16px so that's ok) but not the boundsInParent height which remains to 27px. I think it should become 19px (16 + 1.5 + 1.5). I don't know if it's a bug.
    Anyway, any help making the css red border working for a 16px row height would be greatly appreciated.
    Regards,
    Bruno.

    Q: Would this help to just use absolute div tags and give me 'ABSOLUTELY ABSOLUTE' positioning?
    No.  APDivs are not a good primary layout method.  Use default CSS positioning (which is no positioning at all).  Align page elements with margins, floats and padding.
    See example -- 2-Column CSS Layout with Grids
    (View Page Source in your browser to see the code)
    http://alt-web.com/TEMPLATES/2-col-fixed-with-grid.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • View a single table-row as multiple rows in a GridControl

    Hi,
    is it possible to distribute the entries of a single row of a table/RowSetInfo over multiple lines of a GridControl?
    I've seen an example on the Internet (http://www2.gol.com/users/tame/swing/examples/JTableExamples4.html) which does this without database connection but it seems as if it's necessary to replace the default JTable, TableModel and UI by customized ones. As far as I've seen it's not possible to replace the JTable which is used by a GridControl? So is there any other way to do this? (A modification of the JTable-UI itself doesn't suffice as the JTable yields wrong row- and column-numbers on mousclick-events and therefore the components of the second row are not enabled properly).
    Thanks in advance
    null

    |I've seen an example on the Internet |(http://www2.gol.com/users/tame/swing/exampl|es/JTableExamples4.html) which does this |without database connection but it seems as |if it's necessary to replace the default |JTable, TableModel and UI by customized |ones.
    You wont be able to replace the JTable. But you can change all the attributes on the internal table which the grid uses (see getTable() method). The datamodel for the grid is impemented by oracle.dacf.control.swing.GridDataSource. You can possibly extend this class. You can also change the Table column model and the renderers used by the Table.
    |So is there any other way to do this? (A |modification of the JTable-UI itself doesn't |suffice as the JTable yields wrong row- and |column-numbers on mousclick-events and |therefore the components of the second row |are not enabled properly).
    Could you expain how the mapping between cell renderer and the table (row, col) is done in the extended JTable - which class ?.
    (http://www2.gol.com/users/tame/swing/exampl|es/JTableExamples4.html)
    null

Maybe you are looking for

  • How do I set Firefox to automatically open documents after download is complete?

    Currently, the way it is is setup causes the attachment to download, then the downloads go to my download folder on my desktop. To open a downloaded document, I open that folder then click on the document. I seem to remember a time when clicking on t

  • Problem with current date field...

    I want to display the current date and time, but when I change the data format in the binding tab to "Date and Time" and assign a pattern that includes date and time, all I get is the current date, NOT the time. TIA!

  • Does Flash Engine supports "Mouse Over" events on an Android device with a mouse?

    We built our custome Android on a Beagle Board. When we play a Flash content on WebKit, the flash does not respond to mouse over events. When mouse pointer comes on an object with mouse over effect, nothing happends. Can you confirm that there is Mou

  • Printing PDF attachments

    Hello, We seem to have a little bit of uncertainty on our end as to whether you are allowed to print PDF attachments along with your specifications. The doucmentation only specifically mentions printing JPG and GIF attachments, are these the only two

  • Speeds slow in the evening consistently

    Hi everyone. I had infinity 2 installed last week. Speeds at times are great - even yesterday I saw downloads exceeding 74Mbps around midnight. However I am consistently seeing speeds slow to under 30Mbps or even slower in the evenings, which obvious