Set content-based cell style

Is there any way to use GREP or something to apply style to cells by its' content?
Situation:
I have a table of about 10K rows, and in one column cells contain specific symbol. They must have different color. Doing it manually is a real hell to me.

Use this (MyColorCellStyle should be set to your cell style):
if (app.selection.length == 1)
          app.findTextPreferences = null;
          app.findTextPreferences.findWhat = "<266a>";
          myResults = app.selection[0].findText();
          for (i=0; i<myResults.length; i++)
                    myResults[i].parent.appliedCellStyle = "MyColorCellStyle";
Not bad, considering I'm down with a case of the sniffles & me 'ead is 'urting.

Similar Messages

  • Is it possible to set the cell height in a cell style?

    In the attached screenshot, the cell height is set to exactly 0.125. I put my cursor in the cell, then opened the cell styles panel and created a new cell style based on this cell. But when I apply the cell style to other cells, it does not apply the cell height. There were no overrides or other styles applied to the other cells. I also opened up the cell style definition from the cell styles panel, but don't see anywhere to set the cell height there either. Is there another way to do this that I am missing?

    It is possible - and it's fairly simple.
    To set the row height as part of the cell style, all you have to do is use the cell inset above and below. As long as you set the style as 'At least' then this works perfectly well for having predefined cell styles.
    I have been using this successfully for large financial documents for some time without any hitches. For example I use it to get separation between sections within the tables by having a style with extra space above, and similarly for totals rows at the bottom of the table. It can of course also apply different stroke styles at the same time. Having the style set as 'At Least' also allows for multiple line entries to still have the correct spacing above and below.
    So if you spend a bit of time calculating required heights and setting up your styles, then apply a keyboard shortcut to each style, you can then save a whole lot of time when formatting the document.
    I've just finished nearly 400 pages of financials using this method over the past couple of days!
    This solution may not suit your sitation, but if you have a lot of tables to get through it's got to be worth giving it a try.

  • Auto-set Conditional Build Tags Based On Style?

    Is there a way to auto-set conditional build tags based on style?
    I want to be able to import a Word document into RoboHelp and have it recognize certain styles as requiring certain conditional tags. For example, an imported Word document might have a style called WD_Internal and any text with that style would automatically have a conditional build tag assigned to it. The idea is to allow my SMEs to indicate which text is intended for internal audiences and which text is OK for customer consumption in a single central Word document using styles. When the content is correct, I'd import it into RoboHelp, have RoboHelp assign conditional build tags, then generate multiple printed versions of the document (an internal version and a public consumption version).
    Setting conditional build tags is pretty easy, but it will still be a lot of work to manually set them. Is there a way to do this automatically?
    I am using RoboHelp HTML RH9.

    Hi,
    There's no way to do this through the interface. You can however create a script to do this for you. Cycle through the content of the topics and insert the code for the CBT.
    Greet,
    Willam

  • How to apply a table cell style based on grep search?

    Anyone that know how to make a script that searches in an Indesign table for
    -> All cells where the text starts with "Banana"
    -> And apply cell style "Yellow" to these cells?
    I have been searching on forums for somedays and got this tip: https://github.com/seuzo/regex_cellstyle/blob/master/regex_cellstyle.jsx
    -> But that script is in japanese and also use dialogs.
    All help most appriciated!

    Hi Frankeman,
    Please try the below code, may it should be helpful:
    var myDoc = app.activeDocument
    app.findTextPreferences = app.changeTextPreferences = null
    app.findTextPreferences.findWhat = "Banana"
    var myFound = myDoc.findText()
    for(i=0; i<myFound.length; i++)
        if(myFound[i].parent.constructor.name == "Cell")
       myFound[i].parent.appliedCellStyle = "Yellow"
    Suppose the code is working fine for you, then please click correct answers.
    thanks
    Beginner_X

  • A script to apply cell style to entire rows containing a specific text

    Hi,
    I am using InDesign CC 2014
    Does anyone know how to apply a cellstyle based on text contents found in a cell in javascript?
    I need to search the document and change cell style in entire row to "cellStyle01" if the text "someText" appear in cell.
    I've found similar script here in forum which apply table style, but don't know how to change it to apply cell style!
    var curDoc = app.activeDocument;
    var allTables = curDoc.stories.everyItem().tables.everyItem();
    app.findTextPreferences = app.changeTextPreferences = null;
    app.findTextPreferences.findWhat = "someText";
    var allFounds = allTables.findText();
    app.findTextPreferences = app.changeTextPreferences = null;
    for ( var i = 0; i < allFounds.length; i++ ) {
    var curFound = allFounds[i];
    if ( curFound.length == 1 ) {
    var curFoundParent = curFound[0].parent; 
    // curFoundParent.parent.appliedTableStyle = curDoc.tableStyles.itemByName( "tableStyle" ); 
    curFoundParent.parent.appliedCellStyle = curDoc.cellStyles.itemByName("cellStyle01"); 
    Thanks!

    Hi,
    Try this,
    var doc = app.activeDocument, 
        _tables = doc.stories.everyItem().textStyleRanges.everyItem().getElements(), 
        i, j, k, l, a, _rows,_cells, rowlen; 
    for(i =0;i<_tables.length;i++) 
        for(j =0;j<_tables[i].tables.length;j++) 
            _rows = _tables[i].tables[j].rows; 
            for(k =0;k<_rows.length;k++) 
                _cells = _rows[k].cells; 
                for(l =0;l<_cells.length;l++) 
                    if(_cells[l].contents == "someText") 
                        rowlen = _cells[l].parent.cells.length; 
                        while(rowlen--) 
                              _cells[rowlen].appliedCellStyle = doc.cellStyles.item("cellStyle01"); 
    Regards,
    Chinna

  • How to get Header Column Content based on MIN or RANK

    Hey Everyone,
    I am trying to grab the header content based off of the lowest of three values.
    If I have:
    How do i get the column header of the lowest price?
    I tried VLOOKUP and MIN and RANK. And is its easier can I just rank the with the column header in each cell?
    Like:
    Company X - $1.00
    Company Y - $2.00
    Company Z - $3.00

    jjmancini wrote:
    What i would like to have ideally is for the right most column to rank in each column from lowest to highest.
    Example of last Column:
    1) $1.00 - Company X
    2) $2.00 - Company Y
    3) $3.00 - Company Z
    That would be the ideal solution.
    At least three, Yvan.
    I'm still not clear what this result is ranking, jj. That's partly due to the sample data in your table:
    The results shown are both the rankings of the prices in row 2 and the rankings of the lowest prices in each column. Which is it you are looking for? I've assumed you want to compare prices in each row.
    Second complication: In the column 1 header, the content is "Price Company X"; in the Example of last Column, the resulting text, which you want picked up from that header is "Company X".
    While that's not too difficult to pick off for the examples, where each 'company name' has exactly 9 characters, the simple solution won't work for 'real' companies. Placing the exact text you want copied into this row would simplify the task. See example below.
    Third complication: Although A2 on your sample shows "1.00", the actual content of the cell is "1", and the ".00" is added to the display by setting format for the cell. When picked off by a function, only the value is picked up, and it's that value that's available to the formula constructing the text string in the last column. I've avoided that by placing the company name and the price in separate cells.
    Formulas:
    Auxiliary table: A3: =SMALL(Main :: $B3:$D3,COLUMN())
    Fill right to column C. Fill Down to row 12 (to match Main table's data rows).
    Main Table: F3: =Auxiliary :: $A3
    Main Table: H3: =Auxiliary :: $B3
    Main Table: J3: =Auxiliary :: $C3
    Construct each of these three separately.
    Main Table: E3: =LOOKUP(F3,$B3:$D3,$B$2:$D$2)
    After clicking Accept, Copy cell E3, then select and Paste in G3 and I3.
    Pasted formulas will be the same except for the F3 reference.
    After placing these formulas, select cells E3:J3 and fill down to row 12.
    The Auxiliary table is used to sort the prices, and may be hidden. It may also be eliminated by replacing the formulas in F3, H3 and J3 with
    F3: =SMALL($B3:$D3,1)
    H3: =SMALL($B3:$D3,2)
    J3: =SMALL($B3:$D3,3)
    Formatting will need to be reset for these columns.
    Regards,
    Barry

  • How do I add cell-style wireless to my iPad 2?

    When I bought my iPad 2 it was set up for wifi, but not for the same kind of wireless iteret connection I get with my cell phone? Now I want to add that, but when I called the phone company, they said my iPad 2 didn't have an "IMEI" number. Can I add whatever it takes to my iPad 2 to get cell-style wireless connections to the interet? Thank you.

    You do not connect it to the device at all. It is free standing. My MIFI2200 is about the size of a deck of playing cards. It's just like having a "non-wired" mobile router at your disposal. I just keep mine in my shirt pocket, or place it on the table next to me.
    There are rechargeable as well, or you can even charge in a wall socket them while using them if you like.
    Take a look at some of these.
    https://www.google.com/search?q=MIFI2200#hl=en&spell=1&q=MIFI+2200&sa=X&ei=-jWQU Mm9CIeB0QHQ8YHoDA&ved=0CB4QBSgA&bav=on.2,or.r_gc.r_pw.r_qf.&fp=f2e38c1d654cf6c9& bpcl=36601534&biw=981&bih=603

  • 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.

  • Sender SMTP Adapter / Content Based Routing / Mapping of an attachement

    Hi all,
    I'm still working on my SMTP --> PI --> Proxy scenario (asynchronous). I've tried several different properties of my sender communication channel (type = mail), but I didn't find the correct configuration. Hopefully it exists.
    I'm working with PI 7.0 SP10.
    I get an inbound message via Mail using sender SOAP Adapter. The message payload itself is an attachement. Now I'd like to do the following:
    a) Content Based Routing in Receiver Determination based on the message subject
    b) Mapping of the Attachement XML message to my inbound proxy interface
    Now, trying to do so, I didn't get it work. When I use XIPAYLOAD with keep attachements, I get two attachements in my inbound message (one in XI mail package format having the subject within, one with the IDoc structure I'd like to map). How can I assign the second attachement to be used for my message mapping?
    When I use XIALL instead of XIPAYLOAD, I think the mapping will work but my subject for content based routing will be lost, right? That one I didn't get running because of another failure, so I don't know the exact behaviour of the adapter for that configuration.
    Anybody out there who know the correct configuration for the sender mail adapter for my small scenario above?
    BR
    Holger

    Hi Stefan,
    sorry for misunderstanding, for sure I'm using the mail adapter, not the SOAP Adapter. I'm actually on the same direction. I'm using XIPAYLOAD as message protocoll (having the attachement as the content for the mapping --> correct). Furthermore I've also found the predefined context objects for the content based routing receiver determination.
    What I missed was setting the following properties in the communication channel:
    To store adapter attributes in the message header of the XI message, set the Set Adapter-Specific Message Attributes indicator.
    The following attributes are added to the XI message header if the sender makes them available, and if the Variable Transport Binding indicator is set.
    Now it's working
    BR
    Holger

  • Content Based Correlation in Oracle 11g

    Dear Veterans!!!
    I am working on the following use-case.
    An order processor accepts order(Mode-Buy/Sell, Price, Quantity) on webservice from various customers, and presents them to DecisionService, after adding the order Id to it. The decision service would check if the price*quantity > 1000, if so the response is sent as (Order ID, OrderStatus="Fail") else, sends (Order ID, OrderStatus="Success").
    What I want to do?
    Now I need to create Order Processor using single JMS Adapter with Interaction type "Asynchronous Request/Reply" using content based.
    What I have been able to do?
    I have been able to do content-based Correlation between Decision Service BPEL and Order Processor BPEL, where Order Processor has two JMS Adapters, One Producer which enqueues the order for Decision Service, setting the orderId as correlation. The another JMS Adapter is set as Consumer and recieve activity is registered with it and picks up the response after correlating the message.
    Also I have been able to do the "native correlation" scenario, using Decision Service as mediation module.
    What is the problem?
    1. I need to have the decision service as BPEL, and be able to do the native correlation, which I wonder how to do, because the Jdeveloper 11g has removed support for Adapter Header variables.
    2. I need to use decision service as BPEL and be able to do the content-based correlation, using a single Asyncronous Request/Reply JMS Adapter instead of two (Producer and consumer).
    Any Pointers shall be useful.
    Many Thanks,
    Regards,
    SwapSawe.
    I am aware of how to set the correlation
    http://swapnil-soa.blogspot.com/2008/01/correlation-this-post-would-effort-to.html
    And how to do it in Oracle 11g
    http://biemond.blogspot.com/2009/10/jms-request-reply-interaction-pattern.html
    Edited by: SwapSawe on Nov 30, 2009 11:01 PM

    Dear Friends,
    If I was not able to make my point clear, I would explain it again. I am posting message from one BPEL process to an Asynchronous Request/Reply JMS Adapter.
    A consumer JMS Adapter, would read the message from Q and would initiate another BPEL process, which would perform some business logic to generate a response and post it to reply queue via JMS Producer.
    Now the reply posted, is picked up by the Async Request/Reply, but the receive activity is unable to correlate the message.
    I was able to do this scenario using native correlation, i.e. JMS Message Id mapped to JMS Correlation Id, through mediation module. But I am looking forward to do this using content based correlation.
    Regards,
    SwapSawe

  • ABAP stack configuration for content based message search in PI 7.

    Hi experts,
    I am trying to eanble Content based message search in PI7.11 SP10.
    My requirement is to Filter message in PI moni based on a particular DeviceID field in the paylaod.I have set filters in SXMS_LMS_CONF.
    But upon testing the extractor, the messages are extarcted based on the interface mentioned in the filter criteria, and not the particluar field of the message.
    I have referred a few bolgs on this topic , but could not find a relevant solution to my issue. Am i missing any configurations in this? Or is his not possible without TREX.
    Could anyone suggest a solution for this.
    Thanks.

    Filter
    Extractor:
    XPath: nm:XXXXXCreateRequest/MeterReadingDocument/UtiltiesMeasurementTask/UtiltiesDevice/UtilitiesDeviceID

  • Payload Content Based Search in PI

    Hello Experts,
    We are trying to implement Payload contenet based search functionality in our PI enviroemnt.
    One of the approch I can across is to have the message index using TREX index engine. This would allow us to do the message content based search from RWB itself.
    Can somebody give me a idea of how much does it take to have lience and configuration set up of TREX engine? Also, any link to a "How to guide" or any blog will be greatly appreciated.
    The other approch I could find out on SDN was to have a ABAP report to achieve the same.But, it is only recomended for a system where messages flowing through the system are very low.
    I would really appreciate If anybody can help me with more information or available documentation.
    - Rajan

    Hi Rajan,
    Please have a look at following blog:
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Kind Regards,

  • Content Based Routing in ESB

    Hi All ,
    I needed some help on the content based routing feature in ESB .
    I have an ESB Process in which Data is extracted from a Database(using Select operation) and I have a column X based on whose content I want to invoke the next set of target services . I had assumed having 3 different routing rules with the Filter expression based on the content of X will do the work .This works only when I have one record for a batch of records it doesnot work .
    Wanted to know how does it evaluate for a scenario where we have multiple records in a payload with the value of the column on which we are doing content based routing varrying across the payload ?
    Thanks in advance.

    Hi,
    As James stated esb is processing the incomming recordset as one message so it applies your xpath expression to that message as a whole. Anyway, in your case, if you want to process records from a database table one record at the time i would go for the db polling mechanism and change my database model to include a logical delete column (eg a column processed which contains a Y or a N). You can not split a multiple record message in esb itself into separate messages for each record.
    Kind Regards,
    Andre

  • Is it possible to set up a Paragraph Style leaving the Font Style field blank?

    We often have to import text into InDesign from Word docs. We place the docs (Command-D, rather than copying and pasting) in order to preserve italics, bold text, etc. As it is now, we have to select all the text and set each element separately - leaving the Font Style field blank - in the Character Palette.
    It would save a lot of time, if we could set up a Paragraph Style without specifying the Font Style, (leaving it blank), which overrides the formatting we are trying to preserve. Is this possible?

    The answer is "kind of". You can create the Paragraph Style you want to apply and select the paragraphs you want to apply it to - then right-click on the Paragraph Style and choose 'Apply "Body". Clear Character Styles.'
    It is possible to do this as a Character Style if you click outside of a text area and create a new style. I do it all of the time as I import lots of Word documents to write to ePub (you have to define all of the styles to ensure the document looks right). Since the documents come in with small caps, bold, italics, different font sizes but the same font throughout.
    So I have a style based on None with blank Font Size and Font Style which I apply to the whole document. If there is anything in these boxes you can just erase it by backspacing over the text.

  • Maintaining Cell Style with data update

    Having a difficult time trying to maintaining the styles and characteristics (built in ID) of a table from Excel when we update the link to refresh the data.  I have read old threads and went through the proper process of creating; Character, then Paragraph, then Cell Styles, then a Table style but no luck with the Table style. (Like the example in the video; which I agree don't believe it fully works)  But even just using Cell Styles, the data, when updated, is reverted back to it's original plain input and you manually have to apply the Cell Styles.
    How can I prevent having to manually do that process/ get the Table Style to work?  Is there a setting or check box that need to be checked when importing the data or relinking/updating the file?  Please help....using CS3.
    thanks,
    Ed

    What options are you using when Placing the file? From Help http://help.adobe.com/en_US/InDesign/6.0/WSa285fff53dea4f8617383751001ea8cb3f-6f41a.html:
    Formatted Table
    InDesign tries to preserve the same formatting used in Excel, although the formatting of text within each cell may not be preserved. If the spreadsheet is linked rather than embedded, updating the link will override any formatting applied to the table in InDesign.
    Unformatted Table
    The table is imported without any formatting from the spreadsheet. When this option is selected, you can apply a table style to the imported table. If you format text using paragraph and characters styles, the formatting is preserved even if you update the link to the spreadsheet.
    Unformatted Tabbed Text
    The table is imported as tab-delimited text, which you can then convert to a table in InDesign or InCopy.
    Formatted Only Once
    InDesign preserves the same formatting used in Excel during the initial import. If the spreadsheet is linked rather than embedded, formatting changes made to the spreadsheet are ignored in the linked table when you update the link. This option isn’t available in InCopy.
    I never use linked Excel files, but it looks to me like you should be using the second option: Unformatted Table.
    Ken

Maybe you are looking for

  • Running Oracle on XP pro

    I have 1 gig of ram, cpu is 2.8 gig, HD 160 gig. not using internet. host name is eric, user oracle, pw oracle, there no other user able to use the cpu. First time: created database, using IE, Em is found. I do Startup/shutdown Database Credentials.

  • Volume problem with Music Player on N95

    Hi all, I am puzzled with a problem I'm having with my N95. The problem appeared after I performed an upgrade on the phone.  The thing is that the right side Volume keys do not work when using the Music player. I know the keys work since the zoom is

  • IPhone Music Sorting - Album year field

    Hi I originally posted the below in the iPhone section, but I think it may be more appropriate here. I have a selection of radio shows and podcasts that I want to sort into a certain order on my iPhone, but no matter what I do in iTunes I cannot get

  • Dilution of Precision in Java?

    Hi everyone! I'm new to Java and I was wondering if anyone knew if anyone has accomplished a DOP or GDOP calculation in Java. I've been monkeying around with arrays and some low-level matrix stuff. And, Wikipedia has an "equation", but, I dunno how t

  • I want to delet my bank details from my ipad 2

    How do i delete my credit card feom my ipad 2