Alternating strokes in a table style

I'm setting up a table style like the following:
|--------||---------|------------|
|--------||---------|------------|
|--------||---------|------------|
|--------||---------|------------|
|--------||---------|------------|
|--------||---------|------------|
The table has two heading rows. The vertical column strokes are set up to alternate 3 pt and 1 pt strokes. I created a heading row cell style. The problem is that the heading rows don't have the alternating strokes. Is there a way to have alternating heavy and light column strokes for the table style and have them apply to the heading cells as well as the body cell?

Create 2 css classes that represent you're alternating row
colors and use this UDF and it will adapt to missing rows from the
query.
<style>
.ResultSetA {
background-color: #FFFFFF;}
.ResultSetB {
background-color: #D7DBFF;}
</style>
used like : <tr
class="#alternateRow('ResultSetB,ResultSetA')#">
// alternateRow(styleList[,clear])
// @styleList (list - classes to cycle through)
// @clear (string - anything)
// returns a CSS class
// Example #alternateRow('ResultSetA,ResultSetB')#
function alternateRow(styleList)
var class = "";
if (not isDefined("styleNumber") OR arraylen(arguments) GT
1) {
styleNumber = 1;
class = listGetAt(styleList,styleNumber);
if (styleNumber EQ listLen(styleList)) {
styleNumber = 1;
} else {
styleNumber = styleNumber + 1;
return class;
}

Similar Messages

  • How do you have the bottom stroke of a table show up using Table Styles and Cell Styles only?

    I am using InDesign CS6, and I want to create a Table Style that has the bottom stroke show up, but does not have a table border, such as:
    However, whenever I try to change the Table or Cell strokes so that the last stroke shows up, I get the entire table border, or some strange combination of borders:
    Does anyone have any insight on how I can get the bottom stroke to show up while preserving my other stroke properties? Since I work with long documents, it's necessary to be able to control all of my tables through Table Styles and Cell Styles, and not by manually changing each and every table with the Stroke palette.
    For reference, here are the my current Table Style properties and the resulting table:

    Michael Murphy is the InDesign style-meister. He wrote "Adobe InDesign Styles" for Adobe Press, and did a great Lynda.com title on InDesign styling. Here's what he says in the book:
    "As mentioned at the beginning of this chapter, with all the power of table and cell styles, it is important to understand not only how they work and what they can do for you, but also to understand their limitations.
    "Two formatting features missing in table and cell styles have already been discussed: You will always have to set the column width and row height of cells when applying a table style for the first time, and you will always have to convert body rows to header and/or footer rows every time you apply a table style for first time or update the table's data....
    "But there's another kind of limitation that's important to keep in mind as you are designing tables: It is very easy to design a table that cannot be completely defined by a table style. In many cases, you'll need to define an extra cell style or two that lets you complete for formatting. [my emphasis]."
    So I think that's what you have to do: Apply another cell style on top of the cells at the bottom of the table after applying the table style.

  • Can't "Define default table style"

    I am trying to define how a new table gets inserted into my document. I can set the header text formatting, table body formatting, table text etc just fine, go to format>advanced> define default table style but I cannot seem to get the table borders the way I want.
    I am trying to have ONLY horizontal table borders appear on a newly inserted table. It seems you only have a choice of ALL borders or NO borders in the table body... not any variation in-between.
    Anybody seen this issue or know of a workaround?

    Okay, did everything you suggested: Cleared caches, rebooted, checked disks, permissions, etc. (all was fine as I am very meticulous about keeping my Mac in a pridstine state... no junk, hacks, minimal 3rd party bits etc.)
    This is what I did:
    1 Launch pages
    2 Choose blank template
    3 Type a few letters of text
    4 Save file
    5 Insert table
    6 Click outside table, then once on table so that it has the four square "handles"
    7 Pages Graphic Inspector - change stroke to none
    8 Click the horizontal lines button in table inspector
    9 Graphic Inspector - change Stroke to the line
    10 Click outside table, then once on table so that it has the four square "handles"
    11 Format>advanced> define default table
    12 Table lines re-appear
    13 adding a new table shows all lines, not just horizontal
    I tried with different templates (Blank, CV, etc)
    I created a new user and tried it there
    This occurs both on a 20 inch iMac and a 12' 867 Powerbook. It's strange that other people can apparently do it and I can't.
    mac 10.4.2, Pages 1.0.2

  • Problems applying table styles

    I created a table style. I was under the impression that I could click on any existing table with random formatting, and the new styles would be applied. This is not the case. On some tables they are only partially applied, e.g. fills and strokes.
    Any idea what's happening here?
    Thanks,
    totallockout

    Here's a screen grab which shows the cell styles also greyed out. Does this help?

  • Can this be done with table styles?

    Hello,
    Can someone tell me if this table layout is possible to achieve with table styles? Specifically the first column being slightly darker is proving a problem with the alternating rows, I feel like I need a 'column style' option but there isn't one (in CS5) that I can see. Thanks very much.

    Sans cell styles, this Javascript adds 20% to the tint of cells in the very first column for each table. It does not change header rows (and on 2nd thought, maybe it shouldn't do footer rows either).
    .. Without trying, I couldn't tell what happens with complickated merged cells. The document I'm working on contains 8 tables, but the idiotic author pasted them as figures into Word. All of my scripting prowess can't work around that ...
    tables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    for (t=0; t<tables.length; t++)
    processTable (tables[t]);
    function processTable (table)
    var i, cells = table.columns[0].cells;
    for (i=table.headerRowCount; i<cells.length; i++)
      cells[i].fillTint += 20; // percentage to add

  • Create a new table style based on an existing table in a document

    Hi,
    In a document I'm working on, there is a specific table. It is made in the past by a colleague, and it has a very suitable format.
    Therefore I would like to use the layout of this table on all future tables in my document (or even in others).
    Is there an option to select my table, and create a new table style with it, so that I can use it over and over again? That would be very helpful.
    I'm working in MS Word, MS Office Professional Plus 2010, on a Windows 7 64-bit OS.
    Best regards, Sietske
    Ps.: I know
    a question like this was already asked, but the answer was quite dissatisfying (because it was not answering the question)
    Pps: Note that I'm now creating a new table style from scratch, so an answer to the above question is not that urgent, but it would still be nice to know for future use.

    you can  use format painter
    i hope that you already know about it.
    Nope, not the right answer. With Format Painter, you can copy the format of the table, but you can't create a new Table Style with it. I am looking for a solution as well.

  • Problem with footer in table style not applying paragraph style... or just me?

    I'm having a niggling problem making a table style with cell/paragraph styles for the header, body, and footer respectively. I want to make it as simple as possible for other users but one thing keeps tripping me up. I'll try and describe with screenshots. I'm using InDesign CS5 on Windows 7.
    I have a table style set up with cell styles for the header, body, and footer, and paragraph styles for each as well. Say I'm converting a list of generic text to this table:
    i convert it to my table style. The body style is a numbered list:
    I convert the header to an, err, Header. The cell applies the header paragraph style as I should expect:
    I convert the footer likewise, but it maintains the Body text paragraph style as an override!
    So naturally I clear the override and it works fine. But of course, I'd rather it acted like the header row. I can't work out where the override on the footer comes from and why it operates differently in this respect to the header row. There is nothing different about how the styles are constructed. Have I made a mistake somewhere, or is this correct behaviour I'm misinterpreting, or something...?
    edit: Here is the file, if that will help:
    https://www.dropbox.com/s/4kzgui1itaskuvz/strip%20list%20test.indd

    Hi,
    I was able to reproduce the issue you are facing.
    I will be logging a bug for this and it would be investigated.
    Thanks a lot for reporting the problem!!
    Javed

  • How to update table styles in the new Pages?

    Anyone found out how to update table styles in the new Pages? I see it's done in some of the templates that Apple provided, but I can't find it. Also, the Copy table style command is gone, so I can't make my tables look in a uniform way, unless I use one of the built-in styles.
    Thanks.

    I'm having the same trouble. Looks like no way to create an overal 'table' style and I cannot access the table paragraph styles either.

  • InDesign CS3 crashing adding table style...HELP!!

    This issue started on Friday.  I just starting working on a large document that will have many tables throughout, so I must use the table styles.  Here is the order in which I do things to get the crash.
    Place document from Word in to InDesign document
    Highlight table to be changed
    Convert text using paragraph styles
    Alter column widths to fit page
    Highlight entire table to select table style
    Click desired table style
    CRASH!!!!
    I have tried the following things with NO LUCK:
    Deleted adobefntX file multiple times (actually worked for a couple of hours first time I did it)
    Deleted InDesign preferences (did nothing)
    Re-created all "Styles" in InDesign (Character, Paragraph, Cell, & Table) (Did nothing)
    Changed the order in which I altered the tables text and formatting (thinking it was just a silly order problem)
    Unistalled and Re-installed CS3 (worked for 5 tables and then CRASH)
    Updated ALL software (Adobe and Mac)
    Started up in Safe mode and CRASH!!!
    I realize from seraching for this problem on the web that I am probably the ONLY person having this issue, but I thought it was a font problem until I started in Safe Mode and still crashed.  I am totally confused as to what I should do next.  I am running on a
    Model Name:    MacBook Pro
    Model Identifier:    MacBookPro4,1
    Processor Name:    Intel Core 2 Duo
    Processor Speed:    2.4 GHz
    Number Of Processors:    1
    Total Number Of Cores:    2
    L2 Cache:    3 MB
    Memory:    4 GB
    Bus Speed:    800 MHz
    Boot ROM Version:    MBP41.00C1.B03
    SMC Version (system):    1.27f1
    Any help would be GREATLY appreciated.

    I am not familiar with InDesign Interchange, do you think this will help?
    That's why I suggested it. But you didn't answer my question: Is this happening with only one file? The reason I ask is because if one file is corrupted, saving to INX and back to INDD often clears out minor corruptions. If you're seeing this in many files it's unlikely they're all corrupt.
    1. Convert text using paragraph styles - I meant modified "placed" text using character styles
    Now I'm really confused. Your steps are:
    Place document from Word in to InDesign document
    Highlight table to be changed
    Modify placed text using character styles
    Are you really highlighting an entire table and applying a character style? While this will work to modify certain formatting aspects, it's not really the best approach. Character styles are for characters *within* a paragraph. Paragraph styles are for *entire* paragraphs. Each table cell contains at least one full paragraph, even if it's just a single number, a space, even if there's nothing there at all. If you want to format the contents of an entire cell or range of cells with the same formatting, use a paragraph style, not a character style. If you want to italicize one or two words in some text in a cell (the way I just did), then use a character style.
    I really feel that the issue either stems from fonts or from placing the document from Word.
    Could be. Cheap fonts are the cause of many problems in Indesign. Indesign is really picky about fonts. But let's try the easy fix first (INX). If you don't trust it, save the .inx to a new .indd filename (keep your old .indd file as a backup).
    Ken

  • Table styles in RH don't transfer to Word 2010

    In RH, I have defined a table style called top-row-shaded, and have mapped this style for delivery to Word, in word-template.dot file. All RH tables of style top-row-shaded shoud map to my Word template style top-row-shaded, but they don't.
    Does anyone kmow a fix?
    If not, does anyone have a word macro that can convert my tables to the  top-row-shaded style in the Word file?
    My RH file has another table style (called no-border) that I don't want to convert, so I can't simply apply the style to all tables in the Word file.
    Thanks, Joanne

    Without setting up a test, I'm not sure why the tables are not mapping. By all means see the Contact page on my site and send me a one topic project and the Word template. I will take a look but it will be at least a week or so before I can.
    Meantime there is a macro on my site that will need editing that will find each table and then allow you to apply changes or skip to the next table.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to reuse a table style in Numbers 3.0

    I can save a Numbers Table Style in one spreadsheet, but I've no idea how to open and use the saved style in another spreadsheet.
    When I save the style it shows up in the inspector for that document, but does't appear in the inspector when I open another document.
    Am I attempting something that can't be done?

    Guillame,
    You're right about not being able to add styles, and I have not figured out how to modify a predefined character style, other than to Rename or Delete a predefined style. I have added this to my list of things lost.
    Jerry

  • Find and replace a table style

    I have about 10  table styles in a document and I want to replace all of them with the #1 table style. Can this be done with Find and Replace?

    You'll need to do this for each of the Table formats that need to be replaced.
    Let's assume the desired format is "Format A" (a default FM style), and one of the formats to be changed is "Specs 2".
    Click in any instance of a Specs 2 table.
    In the Table Tag field, pull down and click on [Format A].
    Click Commands > Global Update Options:
    (*) All Properties
    (*) All Tagged [Specs 2]
    [Update]
    If it works properly, you'll get a dialog:
    OK to change all Format B tags to Format A?
    [OK]
    Additional global updates may be required to clean up any overrides.
    Trying this on FM7 at home, it didn't always work. I don't know if newer versions are more stable. Personally, I never do it this way (probably because of prior experience), and I usually just hack the MIF.

  • Table style doesn't display when viewed or when project is published

    I'm running RH8 (with RH8 Server).  The table style no longer displays when viewed or when published.  I checked the table style of the same project (but older version) and the styles to me looked the same.  It displayed fine last week (famous last words), but this week something changed. Can anyone help?
    The tablegradient.jpg can be seen in the project (image A), but when I view (eyeglasses), or if I open a published project, it doesn’t (image B).
    Image A
    Image B

    I really do not know what has caused this but in your situation I would be looking at the CSS for the table now and when it worked.
    After that I would probably create a new project and create the same setup afresh. That can often identify the cause of problems like this.
    Sorry I don't have anything more constructive.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Separate table title autonumbering for two named table styles?

    I believe this very same question whizzed by a few weeks ago but I'm having no luck searching for it.
    I have two named table styles.  I want the autonumbering for the table titles to be separate.  More specifically, one will autonumber as "Table t", while the other will autonumber as "Example e".
    I have redefined the autonumbering counter for the second of the two TableTitle para style, and if I apply that style while in that table's title, I get the new autonumbering.  But I can't transmit (a) selectively update the Table Title style to this format to other tables in the chapter.  By extension, I can't copy the  wonderful new table format to other chapters in the book.
    I next tried creating a new para style "ExampleTitle", then in the Table Designer trying Update All.  Nope, other tables of type example do not receive the new title style.
    This is fully-patched FM8.  The document is structured but I don't (want to) care about that -- I simply need to get the two different named table styles
    to autonumber sequentially.
    This is probably pretty easy once I learn the "trick"...(?)
    Cheers & thanks,
    Riley

    Arnis:
    Thanks.  For some reason I couldn't get my table to update, so I went through and manually create a second table title paragraph style, then manually applied that.  (I also created a second x-ref format so that I could x-ref to "Example n:" without including the colon in the x-ref, but that's another story...)
    So for now I've worked around the problem.  After I get this document out I'll revisit the issue.  (Why do I have a vague recollection that there's a known idiosyncracy where FM6+ table styles don't update properly...?)
    Cheers & thanks 'gain,
    Riley

  • 3EA4 -- can not run SqlDeveloper report to "table" style

    The same SqlDeveloper report, which was/is working in 3EA3 - same Oracle user, same privileges, same platform, same connection, same Java version, same same ... can not run the report to the "table" style. It works only with the "Script" style. So, betwen EA3 and EA4 something changed. No work around, just lost capability.
    note: I tried many SqlDeveloper reports that were working in the "table" style - none of them works in the "table" style anymore with EA4 - that really is not cool :(
    Here is one of those reports:
    SELECT
       object_name "Object_Name",
       object_type "Object_Type",
       CASE OBJECT_TYPE
          WHEN 'PACKAGE BODY' THEN 'alter package ' || OWNER||'.'||OBJECT_NAME || ' compile body;'
          WHEN 'SYNONYM'      THEN 'CREATE PROCEDURE ' || OWNER||'.tmp_compile_synonym AS BEGIN EXECUTE immediate ''alter synonym ' || OWNER||'.'||OBJECT_NAME || ' compile''; END tmp_compile_synonym;'||chr (10) || '/'||chr (10) || 'EXECUTE ' || OWNER||'.tmp_compile_synonym;'||chr (10) || 'DROP PROCEDURE ' || OWNER||'.tmp_compile_synonym;'
          ELSE 'alter ' || lower (OBJECT_TYPE) || ' ' || OWNER||'.'||OBJECT_NAME || ' compile;'
       END "Compile_Statement"
    FROM dba_objects
    WHERE owner=upper(:OWNER)
    AND status = 'INVALID'
    ORDER BY object_type;Note: Reverted to EA3 until the problem is idenfied/solved
    Edited by: zaferaktan on Feb 24, 2011 11:50 AM
    Edited by: zaferaktan on Feb 24, 2011 12:30 PM

    ok, I did update to JDK 1.6_24 , edited the jdk file under .sqldeveloper to point to the correct JDK version and invoked the 3EA4 from the command line:
    raisin:~/sqldeveloper3EA4$ ./sqldeveloper.sh -J-Xmx1024m
    still having the issue. None of the "table" style reports work.
    So, something definitely changed in EA4 that broke the "table" style reports (at least in my case).
    I am using the same "thin" connections that I created before (it picked it up from the .sqldeveloper settins). Did anything change for the thin jdbc connection in EA4 compared to EA3 ? I looked at the change list and don't see it there. I saw bug 09883309 reported here: 3.0 final+EA4: Doesn't work with 11.1 OCI/Thick driver , but don't think it has anything to do with the problem I am seeing - I don't use OCI, but jdbc thin. I wonder if there is a problem with 11.2.0.2 jdbc thin in EA4 and my database server version (10gR2 base version on RHEL 4).
    But if Jim doesn't have the problem with the same JDK version and "almost" the same platform - maybe the database server version is an issue ? All I know, these reports (table style) was/is working with the EA3 - but not in EA4 .
    When I run the report - the execution window does not display anything - all grey - then if I click on the green arrow (go/run) button, I see the following exceptions in the terminal from which I invoked the sqldeveloper:
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:470)
         at java.lang.Integer.parseInt(Integer.java:499)
         at oracle.javatools.data.HashStructure.getInt(HashStructure.java:410)
         at oracle.dbtools.raptor.config.DBConfig.getInt(DBConfig.java:1044)
         at oracle.dbtools.raptor.controls.grid.ResultSetTableModel.init(ResultSetTableModel.java:112)
         at oracle.dbtools.raptor.controls.grid.OracleRSTModel.init(OracleRSTModel.java:30)
         at oracle.dbtools.raptor.controls.grid.RSTModelFactory.getResultSetTableModel(RSTModelFactory.java:47)
         at oracle.dbtools.raptor.controls.grid.ResultSetTable.setQuery(ResultSetTable.java:115)
         at oracle.dbtools.raptor.controls.display.DisplayResultTable.updateQuery(DisplayResultTable.java:158)
         at oracle.dbtools.raptor.controls.display.DisplayResultTable.refresh(DisplayResultTable.java:112)
         at oracle.dbtools.raptor.controls.display.DisplayPanel.refresh(DisplayPanel.java:769)
         at oracle.dbtools.raptor.controls.display.DisplayPanel.refresh(DisplayPanel.java:618)
         at oracle.dbtools.raptor.report.addin.ReportEditor$1.actionPerformed(ReportEditor.java:164)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Maybe you are looking for

  • Copy and paste stopped working in photoshop CC

    I've been using Photoshop CC since march and this is a new issue. Not previously a problem until today. When I select and area to copy, from a JPEG or photoshop PSD photograph, and make a new file to paste it into, the new file comes up the same size

  • Disk aint the

    I just got a new album today in the sho ps. I inserted it to my dvd-rw dri've to put it on to my zen touch. But the disk does not appear on the dri've. the light on the dri've is on and running but in the my computer folder it is not there. What coul

  • Suggestions for SAP BI/BW training

    Hello All, I am a newbie to SAP without any prior knowledge of programming. I am a data analyst by profession with 5 years of working experience. Now I would like to learn SAP BI/BW module. I would like to take training in SAP BI. I am not fully awar

  • Inheritable instance counter variable

    Here's a problem that's been bugging me for a while, and i'm sure there's a simple solution to it that is just escaping me. I'm developing a pluggable module based system, so i have my base class module with a reference counter counter += 1 in the co

  • Slight dependency problem when installing calibre

    Hi, I installed calibre on my pogoplug with this command: pacman -S calibre The install went OK, but trying to start calibre thereafter showed an error because the dbus-glib library was missing. I had to install the corresponding library to fix this