Coloring a table in one (not too long) line.

Is there a way of coloring a table or cell a swatch color in one shot without having to go through: bottomEdgeStrokeColor = myColor, topEdgeStrokeColor = myColor, leftEdgeStrokeColor = myColor, rightEdgeStrokeColor = myColor?
Not the end of the world if not but would be nice

I got it.
It's useful if you have a lot of styles with the same stroke color or other property
Thanks for the giveaway clue
myDoc = app.activeDocument;
myColor = app.activeDocument.swatches.item("C=0 M=100 Y=0 K=0");
magentaStroke = {bottomEdgeStrokeColor:myColor, topEdgeStrokeColor:myColor, leftEdgeStrokeColor:myColor, rightEdgeStrokeColor:myColor}; // sets all edges to color
myColor = app.activeDocument.swatches.item("C=100 M=0 Y=0 K=0");
cyanStroke = {bottomEdgeStrokeColor:myColor, topEdgeStrokeColor:myColor, leftEdgeStrokeColor:myColor, rightEdgeStrokeColor:myColor};
try {myCellStyleMagenta = myDoc.cellStyles.add({name:"myCellStyleMagenta"});}
catch (exist) {myCellStyleMagenta = myDoc.cellStyles.item("myCellStyleMagenta");}
    with (myCellStyleMagenta){
      bottomInset =1;
     properties = magentaStroke; // applies color to cell style
  try {myCellStyleCyan = myDoc.cellStyles.add({name:"myCellStyleCyan"});}
catch (exist) {myCellStyleCyan = myDoc.cellStyles.item("myCellStyleCyan");}
    with (myCellStyleCyan){
      bottomInset =1;
     properties = cyanStroke;

Similar Messages

  • Work area is not too long enough

    hi,
    i am trying to insert data into a custom table and i use the statement
    insert ztable from workarea.
    and i get the syntax error "work area is not too long enough".
    i have a mandt field as the first field in my custom table. workarea is defined to hold the rest of the vaules.
    whats wrong ?
    thks

    I have tried as you said. My logic is following:
    FORM update_table .
       DATA wa_event1 TYPE zps_event.
       CLEAR wa_event1.
       wa_event1-pspid       = lv_proj.
       wa_event1-category  = p_cate.
       wa_event1-long_text = p_event.
       wa_event1-erdate     = p_date.
       INSERT zps_event FROM wa_event1.
       IF sy-subrc IS INITIAL.
         WRITE: 'Successful'.
       ENDIF.
    ENDFORM.                    " UPDATE_TABLE
    In p_event  I gave following this input:
    Do the implementation for the same class to handle the event i.e. if we select a radio button, then the already selected radio button should be deselect and new radio button should be selected. Code as follows.
    But when I checked in ZTABLE, the field contains only:
    Do the implementation for the same class to handle the event i.e. if we select a radio button, then the already selected radio b
    Any thing wrong in my code??

  • I downloaded photoshop not too long ago and then 1 week later got a new computer, is there anyway of

    I downloaded photoshop not too long ago and then 1 week later got a new computer, is there anyway of putting photoshop on the new computer??

    sure, just install and activate.  one license entitles you to two concurrent activations.
    if you've already activated on two computers you will need to deactivate (help>deactivate) on, at least, one.

  • Error while adding the Objects in Existing DSO -Table /BIC/B* is too long ( 004030)

    Hi Team,
    We added some objects in the existing Write Optimized DSO.  while activitating the DSO We got the below error .
    Table /BIC/BXXXXXXXXX is too long (>004030)
    Please go through the issue and provide the solution.
    Thanks,
    Purushotham.

    Hi Purushotham,
    Is the table in error log is active table of DSO? it doesnt look like...it will be /BIC/A<DSO>name
    in your case it is /BIC/B----!!
    Now  instead of adding 15 fields, could you try concatenating 2 fields in 1 and in that way you will have to add 7-8 fields.
    later at Standard DSO layer or Cube layer you can read relevant field value by "field+(<No.>)"
    And you mentioned that you willtry for concatenate 4 IO of length 60 into 1 InfoObject (IO).
    This cant be done...max lenght is 60! then how will you create a IO with lenght 240! please think of other logic.
    Regards,
    Gaurav

  • Firefox 4 does not wrap long lines.

    Firefox 4 is not wrapping long lines for www.lindasgourmetcookies.com. This worked in previous versions of Firefox. See "URL of affected site" for an example. Lines also wrap properly on IE

    There are a lot of typos in the CSS file: ';' instead of a ':' (font-size<u>;</u> 12px;), so you want to fix that first.<br />
    See the Tools > Error Console (Firefox > Web Developer)
    <pre><nowiki>.choicesbox2 a:visited {color:#0000bb; font-size; 12px;}
    .choicesboxl a:visited {color:#0000bb; font-size; 12px;}
    </nowiki></pre>
    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • My Mozilla updated or changed not too long ago, I had to reset and now it's gone back to 9 thumbnails. How to I get the other one back?

    Okay so like I said above, my Mozilla suddenly changed one day to showing a search box, and two different "favorite" tabs when I opened a new tab. After I set it up with my favorites and deleted the ones I didn't used I liked it a lot better and it was easier for my kids to use to find the websites they like. I had to reset my Firefox because I had a problem with a new blank tab opening every time I started it, when I did that it set it back to showing the nine thumbnail page. How to I get it back to the new page set-up?

    You can modify the <b>browser.newtab.url</b> pref on the <b>about:config</b> page and set its value to your preferred new tab page.
    You can open the <b>about:config</b> page via the location bar and you can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config
    See also this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • Why query against table(dbms_xplan.display) take too long?

    the env is PROD, version is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi.
    Most of the time, when I do explain plan and query the table(dbms_xplan.display), it takes like 3-8 minutes to display the result.
    So, I wonder what might go wrong here?
    How a simple query would take this long?
    Any thought or guess are welcome.
    Thanks

    That is not an option here. I only have query privilege on PROD.
    All I can do is to figure out the reason for the slowness and advise the fix.
    Thanks.

  • Not too long ago I was able to delete personal info from forwarded emails in Hotmail, but not now. Works fine in IE. What's wrong and where? Txs

    Being paranoid, I like to delete personal info (email addresses, etc.) from emails I'm forwarding. Ican do this right now in IE, but not Firefox.
    I had been running FF4(?), but downgraded to FF3.5 because of some other issues, but I don't recall when the problem with email started (before or after downgrade).
    IE9 allows me to delete this personal info from forwarded emails.

    Try an SMC reset. The article covers when this is required, but doing this will not affect anything.
    Reset SMC

  • Not too long ago today, I've tried to reset my billing password?

    Today, I contacted Customer Service through the 800 number. The automated voice wanted me to enter my billing password just to try and reset it. What good is that for when I don't know or remember it? I am trying to configure my account owner and account manager roles on My Verizon after I unregistered both numbers on the account. When setting up, i'm prompted to enter my "billing password". The thing is, ONCE AGAIN, I have no idea what is, do not remember it and I've had no use it since the first time I set up the MY VZW ages ago, so to speak. I'm frustrated. Thanks.

        Hello miabrahamson!
    I don't want you to be frustrated with anything about your VZW service. I can definitely help you in changing your billing system password; I'm so sorry for any inconvenience.
    I've followed you in the forums. Please accept me, then follow me back and send me a Direct Message. I'm happy to take care of this for you.
    ChristinaB_VZW
    VZW Support
    Follow us on Twitter @VZWSupport

  • I bought ringtones not too long ago on my iPhone 4 but I don't see them on my iPhone 5 now? Help, please

    I have iCloud too.

    Welcome to the Apple Community.
    Try unchecking them in your iTunes sync options then applying the change before checking them again and aplying once more.

  • I tried private browsing not too long ago and i cannot remember a cool website i visited. Is there any way that I can access the web history?

    Well I have a lot of people over and I recently got stumble. I don't like them seeing the things I have looked at because some of it isn't very tasteful. There was one site that I stumbled on and now I can't remember what it was. Is there anyway for me to retrieve the lost history?

    Well I have a lot of people over and I recently got stumble. I don't like them seeing the things I have looked at because some of it isn't very tasteful. There was one site that I stumbled on and now I can't remember what it was. Is there anyway for me to retrieve the lost history?

  • I bought a movie not too long ago and its not downloading. what should I do?

    So I tried renting a movie.."Alice In Wonderland" the old one the 1951 one..and it just won't download and last time I called iTunes they say just wait a few days and then once you have plugged it into iTunes it will download..and it hasn't..please help.

    Open itunes on your computer, click Store>Check for Available Downloads

  • P13n.ddl probs with UDB: field "value" too long to index

    We're trying to deploy the p13n.ddl on a UDB DB2 6.1.
    However, we encountered some problems:
    In UDB 6.1, an indexed column can be max 255 bytes long. So, the index
    WEBLOGIC_USER_ID_INDEX cannot be created, as the column "value" is one
    byte too long.
    CREATE TABLE WEBLOGIC_USER (userid int, property varchar(100), value
    varchar(256));
    CREATE INDEX WEBLOGIC_USER_ID_INDEX ON WEBLOGIC_USER (userid, property,
    value)
    How hard will omitting the "value" column from the index hit performance?
    All the columns in the table WEBLOGIC_USER has been indexed in one index.
    Was that done to prevent the DBMS from looking into the actual table at
    all (by looking only in the index)?
    Would it be possible to use the column as a varchar(255) or must it be
    256 chars wide? (Taking into consideration that the values at present are
    far from 256 chars.)
    Anders B. Jensen
    Consultant, Research & Development
    [email protected]
    LEC AS
    Denmark
    Remove the SPAMLESS to mail me.

    What you are trying to do shouldn't be a problem.
    There is no problems creating the weblogic_user as a varchar(255).
    I am not sure about omiting the "value" column and related performance
    issues, but I don't think it will be significant.
    "Anders B. Jensen" wrote:
    We're trying to deploy the p13n.ddl on a UDB DB2 6.1.
    However, we encountered some problems:
    In UDB 6.1, an indexed column can be max 255 bytes long. So, the index
    WEBLOGIC_USER_ID_INDEX cannot be created, as the column "value" is one
    byte too long.
    CREATE TABLE WEBLOGIC_USER (userid int, property varchar(100), value
    varchar(256));
    CREATE INDEX WEBLOGIC_USER_ID_INDEX ON WEBLOGIC_USER (userid, property,
    value)
    How hard will omitting the "value" column from the index hit performance?
    All the columns in the table WEBLOGIC_USER has been indexed in one index.
    Was that done to prevent the DBMS from looking into the actual table at
    all (by looking only in the index)?
    Would it be possible to use the column as a varchar(255) or must it be
    256 chars wide? (Taking into consideration that the values at present are
    far from 256 chars.)
    Anders B. Jensen
    Consultant, Research & Development
    [email protected]
    LEC AS
    Denmark
    Remove the SPAMLESS to mail me.

  • "Copying Music Failed - File name invalid or too long."  HELP!

    I desperately need to consolidate my music before my computer says goodbye for all eternity. It seems I can't consolidate my music because apparently, the file name is too long or invalid. I even got this program that was supposed to help me seek out the ones with too long file names. So I deleted those songs and it still won't work. And after I got the new iTunes the other day, I set it to add all new songs automatically into the iTunes Music Folder. However, it seems my iTunes is a little screwed up, because whenever I add a song with a long file name, it automatically shortens it down. For example if I add a song with the named "20th Century Masters - The Millennium Collection: The Best of Smokey Robinson & The Miracles - Smokey Robinson & The Miracles - Ooo, Baby Baby", which is obviously a very long name, it will shorten it down to about the first 4 or 5 words. I naturally shorten it down to just "Ooo, Baby Baby" myself, but I'm thinkin this whole error may have something to do with the fact that the library won't consolidate.
    I'm in desperate need of help here - come to my rescue, please!

    Well, aren't you lucky I signed in tonight? Sometimes you just have to be patient and wait until a person who might know an answer shows up.
    I have had problems with Consolidate too, and getting that stupid error message when the file name was not too long.
    The consolidate function starts copying things over by Date Added, with the older ones getting copied first. First in, first out.
    What I finally had to do was look in Windows Explorer for the target (new) drive and see the last file that was successfully copied. Let's call it Carole King.
    Then I went into iTunes and sorted by Date Added to see the file just AFTER the Carole King file. In my case, it was La Bohème and iTunes had filed it in the Compilations folder. I selected all the tracks and unchecked the Compilations box. This made iTunes move it out of the Compilations folder
    The Consolidate worked after I moved that file.

  • Network event is taking too long (100%)

    Hi everybody. We have a 10g DB on Windows. We're using OEM to manage the DB, and it has started to show an alert about database time spend waiting for "Network" event. It arises when we execute one module that updates several tables, that is taking too long. Before we had this app on 8i, also on Windows, and that operation was much more faster than now. The indexes on tables are valid, and I've gathered statistics for the CBO, so I suppose the problem is, as the OEM says, related with network, but I don't know why, because the connection speed is the same tan before, and the two machines are in the same LAN.
    Any ideas??

    Here is the output requested:
    SQL> select * from v$system_event
    2 where event like 'SQL%';
    EVENT TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED
    AVERAGE_WAIT TIME_WAITED_MICRO EVENT_ID
    SQL*Net message to client 1159200 0 252
    0 2516408 2067390145
    SQL*Net message to dblink 2234 0 1
    0 5590 3655533736
    SQL*Net more data to client 5753 0 166
    0 1657387 554161347
    EVENT TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED
    AVERAGE_WAIT TIME_WAITED_MICRO EVENT_ID
    SQL*Net more data to dblink 12 0 0
    0 548 1958556342
    SQL*Net message from client 1159181 0 218341084
    188 2,1834E+12 1421975091
    SQL*Net more data from client 23299 0 180602
    8 1806015123 3530226808
    EVENT TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED
    AVERAGE_WAIT TIME_WAITED_MICRO EVENT_ID
    SQL*Net message from dblink 2234 0 3693
    2 36934861 4093028837
    SQL*Net more data from dblink 4021 0 39
    0 390002 1136294303
    SQL*Net break/reset to client 182986 0 2740
    0 27397165 1963888671
    9 filas seleccionadas.

Maybe you are looking for