How to apply a net of InDesign paragraph above, but not when the first column

How to do a paragraph rule 'above' but not when it is first in a column. In other words, the rule above will work only if it is not the first paragraph of the column (even if it appears in a block of text in multiple columns).

Before jump you the gun: rule below will not solve that, for various reasons.

Thank you very much in advance.

I'm not completely fluent in JS, but I think it should work:

main();

main() {} function

all the stories

for (var i = 0; i)< app.activedocument.stories.length;="">

monarticle var = app.activeDocument.stories.item (i);

text of history columns

for (var j = 0; j)

var c = myStory.textColumns.item (j);

first line in a column

var b1 = c.lines [0];

first line in the first paragraph of the column

var b2 = c.paragraphs [0] .lines [0];

disable the rule if they are equal

If (b1.baseline == b2.baseline) {}

{if (c.appliedParagraphStyle.ruleAbove)}

c.paragraphs [0] .ruleAbove = false

}

}

else {}

c.paragraphs [0] .ruleAbove = true

}

}

}

}

Tags: InDesign

Similar Questions

  • How can I open XML form in Adobe reader, but not through the name of browser extension

    I'm saving the document as form Adobe XML dynamic (using Adobe LiveCycle Designer), when I open the document, I get this error and I do not have an Adobe Reader Installer.

    Please wait...

    If this message is not subsequently replaced by the good content of the document, your PDF file

    Viewer is not able to display this type of document.

    You can upgrade to the latest version of Adobe Reader for Windows®, Linux® or Mac by

    visit http://www.Adobe.com/go/reader_download .

    For more assistance with Adobe Reader, visit http://www.Adobe.com/go/acrreader .

    Windows is a trademark or one brand mark of Microsoft Corporation in the United States and/or other countries. Mac is a registered trademark

    Inc., filed with the United States and other countries. Linux is a registered trademark of Linus Torvalds in the United States and other

    country

    Open the form in Adobe Reader.

  • Anyone know how to export a PDF from InDesign is "click to go to the next page" instead of "scroll to go to the next page?

    Anyone know how to export a PDF from InDesign is "click to go to the next page" instead of "scroll to go to the next page?

    I do not use the InDesign last, but in the past ID options for export to the format PDF did not define how a PDF should be considered once exported.  However, these settings can be adjusted in Acrobat via preferences: departure of layout and Zoom in the view of the Page.

    David

  • How to apply the filter to a specific column condition, but not to the report?

    Hello

    I'm having a problem in the application of a filter to one of the column condition.
    I have a scheme with the table around 10 dimension tables and a fact. My requirement is to provide a count on the table of facts with associated with some other columns in the dimension tables.

    Lets consider a scenario with tables as sales (Fact), region (Dimension), Year (Dimension), Type of sale (Dimension).

    Now my requirement is to highlight the fields

    City (Region) - city
    Year-
    Sales Count (dirty table) - number of all sales of the fact table
    Sales Count (dirty table) - count of all sales of the fact which type of sale table is 'Cash'

    Here, my question is how to apply the filter condition of Sales Type = 'MONEY in' only on one of the Sales Count column that comes from the fact table. I want to be ordered for the fourth column, the filter condition.

    Can someone let me know how?

    Thank you

    You must do this:

    1) click the button column fx sales. (This procedure does than on fact, not attributes.0

    2) click on the filter button.

    (3) select the size of sales from the left Type "selection list."

    (4) in the filter window, enter CASH, and click OK.

    This will create one filter on sales 'use' size 'type sales' as the filter. It willl filter only to this column.

  • Incompatibility of fix SQL: installed in the PDB but not in the CDB - how to fix?

    I have a 12.1.0.1 database in which I wanted to migrate a number of PDB files in the AL32UTF character set. To do this I created a second database (temporary) with the character OK, unplugged and re plugged each PDB and ran the DMA you to migrate the PDB files - all right.

    Then, I dropped the first database and built another one with the correct character set.

    When I disconnect and reconnect the PDB from temporary to the new database, I get the PDB next violation:

    PDB_ACPT_CLONE SQL patch 19648840 offset: installed in the PDB but not in the CDB.

    This patch had been applied to the original and then rolled database before the new and temporary databases have been created.

    datapatch says:

    C:\oracle\product\12.1.0\dbhome_1\OPatch > datapatch-verb

    Patching SQL tool version 12.1.0.1.0 Wed Jan 21 09:43

    Copyright (c) 2012, Oracle.  All rights reserved.

    Connecting to the database... Ok

    Determine the current state...

    SQL patches currently installed:

    PDB CBD$ ROOT:

    PDB PDB$ SEED:

    PDB_ORCL12C OF THE PDB:

    PDB_ACPT_CLONE OF THE PDB:

    C patches currently installed:

    For the following PDB files: PEH$ ROOT

    Nothing to roll back

    Nothing to apply

    For the following PDB files: APB$ SEEDS

    Nothing to roll back

    Nothing to apply

    For the following PDB files: PDB_ORCL12C

    Nothing to roll back

    Nothing to apply

    For the following PDB files: PDB_ACPT_CLONE

    Nothing to roll back

    Nothing to apply

    Patching SQL tool Wed Jan 21 09:43:44 2015

    C:\oracle\product\12.1.0\dbhome_1\OPatch >

    PDB_ORCL12C has been created in the new database.

    Moved PDB is now stuck in RESTRICTED mode.

    Any ideas on how to solve this problem?

    Looks like the restoration of the original patch in CBD was not perfect.

    Option could be applying the fix to the PIC and try to plug in the PDB.

    If critical instances raise SR

    concerning

    Pravin

  • How to insert a page in a section, but NOT like the last page?

    How to insert a page in a section, but NOT like the last page?

    and how to integrate fonts in a pdf export?

    How does choose a 5.5 x 8.5 book format?

    Adding pages to get to the end.  You can, however, keep typing to the point you need to add a page. Once the page seems to make corrections.

  • On my ipad, addresses in the e-mail of sellers are appearing in my favorite app of cards.  I can't remove them as I can with other recent in the cards.  How can I stop this from happening?  I'm not typed the e-mail address link.

    On my ipad, addresses in the e-mail of sellers are appearing in my favorite app of cards.  I can't remove them as I can with other recent in the cards.  How can I stop this from happening?  I'm not typed the e-mail address link.

    Maps - tap the box down a drop of addresses

    Under recent - click Favorites

    At the bottom, click on Favorites and remove addresses from this point of view - shot from right to left

  • Grammar red line will only appear on the words misspelled on the half top of my document, but not on the bottom half how to fix this?

    Grammar red line will only appear on the words misspelled on the half top of my document, but not on the bottom half how to fix this? I am writing an essay and I know I misspelled words it contains, but the red line will not work. What should I do about it?

    Hi Brittany,

    You use Microsoft Word?

    If you use Microsoft Word, you can post your request in the Forum Office for assistance.

    Microsoft Office Forum

  • Columns of folder: by default, how can return the first column 'Name' without having to move it manually every time?

    Something's happened awhile and when I create a folder which appears the first column is the column 'Date modified '. By default, how can return the first column 'Name' without having to move it manually every time?

    Hello

    I suggest you to visit these links and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-files-and-folders#section_4

    http://Windows.Microsoft.com/en-us/Windows-Vista/folders-frequently-asked-questions

    It will be useful.

  • How to remove temporary files, waiting to be written to disk when the computer starts? __

    How to remove temporary files, waiting to be written to disk when the computer starts?

    Hi Reasman,

    Welcome to the Microsoft answers site!

    To clear pending files, select the files/folders in the 'Files to add to the CD/DVD' box and press DELETE. However, if you want to delete all files, click the CD/DVD drive and select 'Clear the staging area' from the context menu.

    You can manually delete the files that are stored in the following location:

    %USERPROFILE%\Local Settings\Application Data\Microsoft\CD Burning folder

    I hope this helps!

    Kind regards
    Gokul - Microsoft Support

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • I bought a 1 year of InDesign subscription plan, but this is the trial version again and asks me to buy a subscription...

    I bought a 1 year of InDesign subscription plan, but this is the trial version again and asks me to buy a subscription...

    Your subscription to cloud shows correctly on your account page?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    If you have more than one email, you will be sure that you use the right Adobe ID?

    .

    If Yes

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • All my objects in Indesign are locked. I can move objects with the help of the arrow keys on my keyboard, but not with the mouse. I must have done an order by mistake. Any suggestions?

    All my objects in Indesign are locked. I can move objects with the help of the arrow keys on my keyboard, but not with the mouse. I must have done an order by mistake. Any suggestions?

    Thanks for your help. I work again InDesign brokedown and after a reboot, everything works perfectly fine.

  • InDesign CS5 and can not find the download of this version

    I need to re - install indesign CS5 and can not find the download of this version - I can find CS5.5 and my serial number is not valid for this version

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • How to fill a field of date with today's date when the signature field is signed?

    How to fill a field of date with today's date when the signature field is signed? In the LCD, I insert a signature field and a date field, what parameters in these two fields are necessary to make this work? Is the date field, the value calculated? I tried different JS suggestions I found, but none work. In the form, I named the signature ClaimSignature field and the date in the ClaimSigDate field.

    The thought of her with a little help. In the script editor window, I selected the postSign event and added the following JS:

    Form1.Page1.ClaimSignature::postSign - (JavaScript, client)

    var date = new Date();

    var day = date.getDate ();

    var month = date.getMonth () + 1;

    var monthstring = (month, 10?) ('0' + month: month)

    year var = date.getFullYear ();

    var = year DateString + '-' + monthString + '-' + (day< 10="" "0"="" +="" day="" :="">

    ClsimSigDate.rawValue = dateString;

    I hope this helps someone else save time.

Maybe you are looking for