Break link to Cell and Table Style and keep the style setting

For cell Selection is work (but can't keep the style setting after break the link), but I also want to break the table style, but error
For both Break link to cell/table style, I want to keep the style setting after break the link
BreakLinkToTableStyleSelection();
BreakLinkToCellStyleSelection();
function BreakLinkToTableStyleSelection () {
var
     mNone = app.activeDocument.tableStyles.item(0),
     mSel = app.selection[0];
if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
    mSel.tables.everyItem().appliedTableStyle = mNone;
    return;
if(mSel.hasOwnProperty("baselineShift")){
    mSel.tables.everyItem().appliedTableStyle = mNone;
    return;
function BreakLinkToCellStyleSelection () {
var
     mNone = app.activeDocument.cellStyles.item(0),
     mSel = app.selection[0];
if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
    mSel.cells.everyItem().appliedCellStyle = mNone;
    return;
if(mSel.hasOwnProperty("baselineShift")){
    mSel.tables.everyItem().cells.everyItem().appliedCellStyle = mNone;
    return;

For cell Selection is work (but can't keep the style setting after break the link), but I also want to break the table style, but error
For both Break link to cell/table style, I want to keep the style setting after break the link
BreakLinkToTableStyleSelection();
BreakLinkToCellStyleSelection();
function BreakLinkToTableStyleSelection () {
var
     mNone = app.activeDocument.tableStyles.item(0),
     mSel = app.selection[0];
if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
    mSel.tables.everyItem().appliedTableStyle = mNone;
    return;
if(mSel.hasOwnProperty("baselineShift")){
    mSel.tables.everyItem().appliedTableStyle = mNone;
    return;
function BreakLinkToCellStyleSelection () {
var
     mNone = app.activeDocument.cellStyles.item(0),
     mSel = app.selection[0];
if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
    mSel.cells.everyItem().appliedCellStyle = mNone;
    return;
if(mSel.hasOwnProperty("baselineShift")){
    mSel.tables.everyItem().cells.everyItem().appliedCellStyle = mNone;
    return;

Similar Messages

  • Check 2 tables(Table A and Table B) and figure out new columns present in Table A and add these new columns to Table B

    How to check 2 tables(Table A and Table B) and figure out new columns present in Table A and add these new columns to Table b.
    DDL-
    Create table A
    ( A INT,
    B INT,C VARCHAR(2)
    Create table B
    A INT,
    B INT
    Any advice on the best approach or method to achieve this.
    I understand that I need to check the schema of the columns and then do a match between 2 tables and find new columns and then alter my target table
    Mudassar

    Can you try this..
    CREATE TABLE A ( A INT, B INT, C VARCHAR(2) )
    CREATE TABLE B ( A INT, B INT )
    Declare @ColumnVar nvarchar(128),@DatatypeVar nvarchar(128)
    SELECT @ColumnVar=x.COLUMN_NAME, @DatatypeVar=x.DATA_TYPE
    FROM INFORMATION_SCHEMA.COLUMNS AS x
    WHERE TABLE_NAME = 'A'
    AND NOT EXISTS ( SELECT *
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'B'
    AND COLUMN_NAME = x.COLUMN_NAME )
    Declare @SQL VarChar(1000)
    SELECT @SQL = 'ALTER TABLE B ADD ' + @ColumnVar + ' '+ @DatatypeVar
    Exec (@SQL)
    select * from B
    Please Mark This As Answer if it helps to solve the issue
    http://stackoverflow.com/questions/2614101/alter-table-my-table-add-column-int

  • Compare table A and table B and update table B ,,,,table B has 300k rows

    Hi,
    I m trying to write a code, I have tables A and table B.
    I need to compare table A and table B , and update table B with one column.
    using joins b/w A&B tables, I selected one record from table A in cursor.
    After Begin I m trying to open cursor and in FOR LOOP
    Im trying to update table B WHERE CURRENT OF Cursor.
    this is erroring out.
    could you let me know on this.
    there is another way like selecting required columns from both table.but i was told to do as above.
    Thanks

    > this is erroring out.
    You haven't posted nearly enough for anyone to help you.  You didn't even tell us what error you are getting.
    So about the only thing we can do is post a generic MERGE statement which you'll have to modify for your use.
    merge into tableB b
    using (select some_key, some_column from tableA where etc.) u
    on (u.some_key = b.some_key)
    when matched then update
    set b.some_column = u.some_column;

  • When I buy full CC can I use that both in my laptop and table iMac and iPad?

    When I buy full CC can I use that both in my laptop and table iMac and iPad? I hope that I do not need to pay for the CC in every equipment.

    You have two activations and can use it on two systems. iPad apps are separate and don't count.
    Mylenium

  • I have Photoshop CS5 and a Epson 3880 . The print setting dialogue box won't open when selecting color output PRINTER MANAGES COLORS

    I have Photoshop CS5 and a Epson 3880 . The print setting dialogue box won't open when selecting color output PRINTER MANAGES COLORS
    It does ope when selecting PHOTOSHOP MANAGES COLOURS . This is first time in 7 year this has happened.
    Any one with ideas/

    What is your screen resolution?
    What operating system?

  • The iPad has a bruised hand, the screen freezes sometimes buy it 4 months ago and I wonder if I can change the other as it has warranty and I have to keep the receipt?

    The iPad has a bruised hand, the screen freezes sometimes buy it 4 months ago and I wonder if I can change the other as it has warranty and I have to keep the receipt?

    Apple's Limited Warranty http://www.apple.com/legal/warranty/ for iPad excludes coverage for damage resulting from accident, disassembly, unauthorized service and unauthorized modifications.
    Apple will provide a replacement iPad for:
    iPad model
    Out-of-Warranty Service Fee
    New iPad
    $299
    iPad 2, iPad
    $249
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
    You can get the iPad repaired at 3rd party repair sources for less $, however, the Apple warranty will be voided.
    iPad Repair & Screen Replacement Services
    http://www.ifixyouri.com/16-ipad-repairs
    RepairZoom iPad Repair
    http://www.repairzoom.com/ipad-repair.html
    Mission Repair
    http://www.missionrepair.com/Apple_iPad_Repair_Services_s/431.htm
    iGadgetResQ
    http://www.igadgetresq.com/ipad-repair/
     Cheers, Tom

  • How can I install a recent version of Photoshop Elements and keep the albums set up in the older ver

    How can I install a recent version of Photoshop Elements and keep the albums set up in the older version?

    http://tv.adobe.com/watch/learn-photoshop-elements-11/converting-a-catalog-from-previous-v ersions/

  • HT5463 Hi I am on an iphone 5 IOS7 and when I look at the 'Silence' setting at the bottom of the Don Not Disturb' screen - then even though all of the settings on that screen are off i.e. not green - the 'Silence' -'Only when iPhone is locked' setting is

    Hi I am on an iphone 5 IOS7 and when I look at the 'Silence' setting at the bottom of the Don Not Disturb' screen - then even though all of the settings on that screen are off i.e. not green - the 'Silence' -'Only when iPhone is locked' setting is tickedP

    Chris thanks for your reply, if none of the Do Not Disturb settings are switched on - then am I right that this setting will have no effect. I.e. I want my phone to ring at all times, so have turned off all of the do not disturb settings

  • Hi.. i've got problem with my iPhone 4s gsm factory unlocked it won't connect to a wifi. i tried to hold power and home button even reset the network setting but ended with i am not able even to turn the wifi on. does any body can help me out???

    hi..
    i've got problem with my iphone 4s gsm factory unlocked it won't connect to a wifi. i tried to hold the power and home button even reset the network setting but ended with i am not even can turn the wifi on. does any body can helpme?

    See this: http://support.apple.com/kb/TS1559
    If you carefully follow all of the instructions in this tip and none of them restore WiFi then your radio chip has failed and you need to get the phone replaced by Apple.

  • With multi tabs open I go to close Firefox 5.0 and it will not keep the tabs there it closes all tabs

    With multi tabs open I go to close Firefox 5.0 and it will not keep the tabs there it closes all tabs so when I restart I have to re-open the tabs. I was using 3.6 firefox and had the option to close but keep the tabs so they would open when I re-started firefox.

    upgrade your browser to Firefox 8 and check
    * getfirefox.com

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • If i bought the ipod touch 4th generation at walmart and i didn't keep the reciept,if it's broken which way could i do?

    f i bought the ipod touch 4th generation at walmart and i didn't keep the reciept,if it's broken which way could i do?

    If accidental damage like a cracked screen from dropping it, that is not covered by the warranty
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Fix it yourself
      iPod Touch Repair – iFixit
    If due to a defect, Apple will exchange it at no cost if within warranty and not abused. Go to an Apple store.
    Apple Retail Store - Genius Bar
    You can check your warranty coverage:
    Apple - Support - Check Your Service and Support Coverage

  • Keep the styles drawer open in Pages 5?

    I searched a bit and didn't see anything on it. Please forgive if this has been answered. Is there a way to keep the styles drawer open as in previous versions? My workflow is to type in everything I want - as in a screenplay - and then use the arrow keys and mouse button to quickly descend the document and change the styles as I go. As in keep the mouse on a particular style (CHARACTER NAME, for instance) and then as I hit a paragraph that needs that style just click while arrowing down...
    Anyway...I don't see a way to do this in the new version.
    TIA.
    David

    UPDATE -- I have discovered a fix of sorts. Sorry if this is obvious.
    Go to VIEW / Customize toolbar and drag in "copy style" and "paste style"
    you can also access these from FORMAT menu or via command-option-C; command-option-V
    Use this function to copy the style you wish to apply
    Then go through and paste it everywhere you want it.
    Not as good as the old way, but probably more efficient than constantly re-opening the drawer..

  • Problem linking A/R invoice table INV1 and Credit memo table RIN1

    Hi Experts,
    I have developed a sales report by picking data from the A/R invoice table INV1, BP partner table OCRD and Charts of accounts table OACT and the report is working fine. The only problem is I am having a challenge linking the above tables with the A/R Credit memo table RIN1. I want the linkage that is in case an A/R invoice is cancelled by raising an A/R credit memo, the same is not reflected on the sales report, kindly help.
    Patrick

    Hi Gordon,
    Sorry, I did both the report and relationships in crystal but if I do a query in a view it is something like
    SELECT     dbo.OACT.AcctCode, dbo.OACT.AcctName, dbo.INV1.ItemCode, dbo.INV1.Dscription, OCRD_1.CardCode, OCRD_1.CardName
    FROM         dbo.OCRD CROSS JOIN
                          dbo.OACT INNER JOIN
                          dbo.INV1 ON dbo.OACT.AcctCode = dbo.INV1.AcctCode INNER JOIN
                          dbo.OCRD AS OCRD_1 ON dbo.INV1.BaseCard = OCRD_1.CardCode
    the problem is incorporating the credit memo table coz if i include it I end up with wrong figures, hope this will help you guide.
    Patrick

  • Can't see Manage Link to work with tables views and links

    I have an Azure account linked to Office365, and a Pay as you go subscription;  and have been working with SQL for a few months without any problem.    I wanted to move one of my databases to my own Azure account (not tied to our O365)
    so I get a free trial, and then converted that to paid with my credit card.   I had someone help me move the database, but now when I look at it in the new account there is no "Manage" link at the bottom to open and see the tables, fields,
    views, etc.     I don't understand why that isn't there.  I can copy, delete, all sorts of things.   But I can't "manage".    any ideas would be greatly appreciated.

    I checked with a college and he pointed me to another post on the same topic:
    Clicking the ‘Manage’ button in Azure Management portal launches the SQL Azure Management (SilverLight) Portal in a new tab in the browser. At this time, we do not plan to support this SilverLight-based SQL Azure Management Portal with V12 databases and
    servers.
    We are working hard on an HTML-based T-SQL editor experience that will deeply integrate with the preview Azure Management Portal. Until then, we encourage customers to use Visual Studio Community 2013 which is a full-featured free version of Visual Studio
    2013 to connect to Azure SQL databases for tasks such as running T-SQL, designing schema and for offline and online database development.
    You can click the the ‘Open in Visual Studio’ in the database page in the Azure Management portal to launch VS2013 on your computer and easily connect to your SQL Database.
    In addition, you can also use SQL Server Management Studio 2014 with CU6 to connect to Azure SQL Database. More details are on this blog post.
    This posting is provided "AS IS" with no warranties, and confers no rights
    I hope that helps,
    Jan

Maybe you are looking for