[AS-CS5] Comparison between text style range and character style

Hi,
It's been a while since I'm not coming on this forum ...
I'm looking to make a comparison between a "text style range" and a character style.
I have no problems, except for the comparison of "fonts".
myCurrentText = text for char…
theStyle = character style id…
I try:
       if (applied font of myCurrentText ≠ applied font of theStyle) then set theCharDifference to 1 
The selected text give me:
       font "Minion Pro        Italic" of application "Adobe InDesign CS5.5"
and the character style:
       "Minion Pro"
I try "set theTextFont to font of applied font of myCurrentText" -> Error
This is my script (it's too long to post here) <http://db.tt/BLoGPiN>.
Loot at the "on CheckCharacterDifference(myCurrentText, theStyle)"
TIA.
Oli.

I've written this, but I do not know if it covers all cases ...
Someone?
Thanks.
Oli.
set theText to item 1 of selection
set theStyleChar to properties of character style 2
-- analysis of the properties of the text
set myTextFontApplied to applied font of theText
set myTextFontFamily to font family of applied font of theText
set myTextFontStyle to font style of theText
-- analysis of the character style
set myStyleCharFontStyle to applied font of theStyleChar
if myStyleCharFontStyle = "" then
     set myStyleCharFontStyle to font style of theStyleChar
     if myStyleCharFontStyle ≠ myTextFontStyle then set theDifference to true
else
     if myStyleCharFontStyle ≠ myTextFontFamily then set theDifference to true
end if
Message was edited by: OlivierBerquin

Similar Messages

  • Paragraph and Character styles in Fireworks

    Hi
    i used fireworks for a while, when it was still macromedia product, glade to see all the improvments in CS5.
    i used Photoshop to create a very specific prototyping (including all CSS properties) of my website, but when i come to prototype the rest of the pages i totaly lost control, than i realize Photoshop is not the right tool for prototyping a whole website.
    fireworks shuld be the answer of my prays, as i could read in the articles, in CS5 you can set all properties for text and fireworks will export it as CSS file, than al you have to do is copy and paste code according to your CSS structure, that grate time saver.
    but one thing is really betters me, you cant do really good prototyping if you dont have the ability to create a paragraph and character styles (as you would with InDesign)
    can fireworks create styles in the level of Indesign? and if not, what is the right workflow between Fireworks and Indesign?
    Thanks
    S

    Window > Find and Replace will enable you to change all the instances of a text color in the entire document.
    You can create your own character styles by saving them in the Styles panel. To do this, click on an instance of a style you want to save, and then on the little down arrow at the top right of the Styles panel to open the New Style menu. Select which characteristics you want to save, then click the OK button to close the panel. To apply your custon style, select the object you want to apply it to, then click on your custom style.

  • Script needed to generate a list of paragraph and character styles from the Book Level

    Hello,
    I am using FrameMaker 11 in the Adobe Technical Communication Suite 4 and I need to find a script that will generate a list
    of paragraph and character styles from the book level.
    I am working with unstructured FrameMaker books, but will soon be looking at getting a conversion table developed
    that will allow me to migrate all my data over to Dita (1.1 for now).
    Any thoughts, ideas on this is very much appreciated.
    Regards,
    Jim

    Hi Jim,
    I think the problem you are having with getting a response is that you are asking someone to write a script for you. Normally, you would have to pay someone for this, as it is something that folks do for a living.
    Nonetheless, I had a few minutes to spare, so I worked up the following script that I believe does the job. It is very slow, clunky, and totally non-elegant, but I think it works. It leverages the book error log mechanism which is built in and accessible by scripts, but is spendidly unattractive. I hope this gives you a starting point. It could be made much more beautiful, of course, but such would take lots more time.
    Russ
    ListAllFormatsInBook()
    function ListAllFormatsInBook()
        var doc, path, fmt;
        var book = app.ActiveBook;
        if(!book.ObjectValid()) book = app.FirstOpenBook;
        if(!book.ObjectValid())
            alert("No book window is active. Cannot continue.");
            return;
        CallErrorLog(book, 0, 0, "-----------------------------------------------------------");
        CallErrorLog(book, 0, 0, "** Book format report for:");
        CallErrorLog(book, 0, 0, book.Name);
        var comp = book.FirstComponentInBook;
        while(comp.ObjectValid())
            path = comp.Name;
            doc = SimpleOpen (path, false);
            if(doc.ObjectValid())
                CallErrorLog(book, 0, 0, "-----------------------------------------------------------");
                CallErrorLog(book, 0, 0, "-----------------------------------------------------------");
                CallErrorLog(book, doc, 0, "");
                CallErrorLog(book, 0, 0, "-----------------------------------------------------------");
                CallErrorLog(book, 0, 0, "-----------------------------------------------------------");
                CallErrorLog(book, 0, 0, "Paragraph formats:");
                fmt = doc.FirstPgfFmtInDoc;
                while(fmt.ObjectValid())
                    CallErrorLog(book, 0, 0, "  - " + fmt.Name);
                    fmt = fmt.NextPgfFmtInDoc;
                CallErrorLog(book, 0, 0, "-----------------------------------------------------------");
                CallErrorLog(book, 0, 0, "Character formats:");
                fmt = doc.FirstCharFmtInDoc;
                while(fmt.ObjectValid())
                    CallErrorLog(book, 0, 0, "  - " + fmt.Name);
                    fmt = fmt.NextCharFmtInDoc;
            else
                CallErrorLog(book, 0, 0, "-----------------------------------------------------------");
                CallErrorLog(book, 0, 0, "!!!  Could not open: " + comp.Name + " !!!");
                CallErrorLog(book, 0, 0, "-----------------------------------------------------------");
            comp = comp.NextComponentInBook;
    function CallErrorLog(book, doc, object, text)
        var arg;
        arg = "log ";
        if(book == null || book == 0 || !book.ObjectValid())
            arg += "-b=0 ";
        else arg += "-b=" + book.id + " ";
        if(doc == null || doc == 0 || !doc.ObjectValid())
            arg += "-d=0 ";
        else arg += "-d=" + doc.id + " ";
        if(object == null || object == 0 || !object.ObjectValid())
            arg += "-O=0 ";
        else arg += "-O=" + object.id + " ";
        arg += "--" + text;
        CallClient("BookErrorLog", arg);

  • [JS InDesign CS3] Style groups, begone! (or: How do I take paragraph and character styles out of style groups?)

    Sorry for this question (and my terrible English, by the way), I'm a javascript noob and I know when I've reached my limits.
    Well, I'm trying to take a set of paragraph and character styles out of the style groups they are placed in, in hundreds of InDesign documents (that cannot be treated as a book). As far as I've tried (thanks to the invaluable help of previous posts in this forum) I've been able to move a style into a group and change it's position inside the group, inside the root level or even between groups. But it doesn't matter how I try, I don't know which move reference should I try in case I want to take every style out of their style group and place them after their original group folder, at the [Root] style level .
    I have tried:
    var doc=app.activeDocument;
    var pGroups=doc.paragraphStyleGroups;
    for (i=pGroups.length-1; i>=0; i--){
         var pStylesInGroup=pGroups[i].paragraphStyles;
         for (j=pStylesInGroup.length-1; j>=0; j--){
    // Here I am, trying to move a style outside the folder that contains it, and failing miserably.
              pStylesInGroup[j].move (LocationOptions.after, pGroups[i]);
    It didn't work, the script sent an invalid parameter value in the reference field, so I cant use the group folder itself as reference.
    Tried other (obviously wrong) solutions, like use the first available style as reference. Therefore, my second script was
    var doc=app.activeDocument;
    var pStyles=doc.allParagraphStyles;
    var pGroups=doc.paragraphStyleGroups;
    for (i=pGroups.length-1; i>=0; i--){
         var pStylesInGroup=pGroups[i].paragraphStyles;
         for (j=pStylesInGroup.length-1; j>=0; j--){
    // Now I try placing the styles after the [Basic Paragraph], that is, the second paragraph style in the document style list
              pStylesInGroup[j].move (LocationOptions.after, pStyles[1]);
    It didn't work either, another invalid parameter in the reference field. Similar results with my other attempts (I even tried "[Root]" as literal with similar luck).
    So, my question is: Which command (or script, in case my whole approach is utterly wrong) should I use to achieve my goal?
    Thanks in advance to whoever decides to spend more than a minute thinking about my humble worries, and my apologies for shamelessly ripping some of your lines of code for my purposes.

    Okay, tried a few things and got really weird results!
    1. You can move a style around inside its group.
    2. You can move a style out of a group "to" another, but it will appear 'inside' that style. I got my test style as a sub-item of [Basic Paragraph], using index #1. With index #0 ([No Paragraph Style]) InDesign crashed.
    3. You can duplicate the style, but then you get a copy in the same group. Still no luck.
    4. Finally! What is the parent of a paragraph style?
    Document | Application | ParagraphStyleGroup
    "Application" is easy -- that's when you make a style global. So what's the difference between 'Document' and 'paragraphStyleGroup'? Simple -- well, when you finally get it...
    pStylesInGroup[j].move (LocationOptions.AT_END, doc);
    moves the style out of the group and to the end of the list in the document. I don't think it's possible to move it directly to a specific position into the main style list -- you first have to move it out of a group, then move it around in its own list.
    Fortunately, it returns its new position as a ParagraphStyle again, so if needed, you can use
    newStyle = pStylesInGroup[j].move (LocationOptions.AT_END, doc);
    newStyle.move (LocationOptions.AFTER, pStyles[1]);
    -- I didn't really try that out, but it should work.

  • Changing fonts in paragraph and character styles (AppleScript, Grep or JavaScript)

    I have been trying the javascripts in this discussion:
    Adobe Community: Specified font need to be changed in all paragraph styles
    but I cannot get any of them to work. I have been putting them into CodeRunner then saving them into the InDesign Scripts folder but I have specific error messages for the ones I have tried. I am wondering if they actually solve my problem anyway, which is:
    Helvetica Neue LT seems to add another LT to its description thus: "Helvetica Neue LT LT 45" instead of just "Helvetica Neue LT 45".  InDesign does not recognise this and thus when I open each file I get a list of Fonts to be found. I have dozens of styles (Paragraph and Character) in dozens of files and have changed some of the styles manually - a laborious task. The styles must be changed otherwise I am still stuck with Helvetica Neue LT lurking away, waiting for the style to be applied. So I cannot use "Find font..." in the Type Menu.
    I am changing to "Helvetica Neue LT Std" with many faces: 35 Thin, 45 Light, 46 Light Italic, 65 Medium, 75 Bold...
    from the similar faces in Helvetica Neue LT. These currently display in the Styles Menu as [Helvetica Neue LT] [LT 45 Light]
    Sometimes when I change to Helvetica Neue LT Std manually the face sticks (even though I have changed it) so I have "Helvetical Neue Ltd Std [LT 45 Light]" and I have to go through the styles again and again. This is very tedious.
    So if anyone can help me with this problem I'd be eternally grateful.
    Using InDesign CS6, MacMini 2012, Mountain Lion (though I had the same problem in Lion)

    Hi James. Just a few threads down the list there is this: http://forums.adobe.com/thread/1198632?tstart=0
    Even the name of the thread is similar to yours.
    But first, you should do a bit of housecleaning in your font library. From your description it sound like a big mess.
    Do you use any font management tools? Most of the times they do more harm than good (but i am aware that it's a necessary evil for the most part).
    The fonts you are trying to use are in the font library or in the indesign document's folder?
    While Mac is a lot better than Windows in managing multiple fonts/font versions, it's also a lot more "fragile" if something goes wrong with a font.
    Try cleaning the font cache first:
    sudo atsutil databases -remove
    the restart the font server
    sudo atsutil server -shutdown
    sudo atsutil server -ping
    have a look here also:
    http://forums.adobe.com/thread/1201617?tstart=0

  • Unused paragraphs and character styles in the catalogs?

    How could I delete automatically the unused paragraphs and character styles from the catalogs?

    David,
    I downloaded it and placed the file in my plug-in folder, but it doesn't show up under File>Utilities. Is there anything else I should do?
    I am running FM9 with all updates.
    Thanks,
    ls

  • Battery life comparison between 1.0.2 and 1.1.1

    I had to have Apple Care send me a replacement phone because of battery issues.
    I received the replacement phone, and interestingly, it still had the 1.0.2 firmware on it.
    If enough people are interested here, I can run a fairly scientific test to see if there's any difference between 1.0.2 and 1.1.1 in regard to battery life.
    I could leave the 1.0.2 software on it, charge it fully, then at 10 pm, put it in a specific place in my house, then see what the battery is at @ 7 am. Then, the next day, I can update to 1.1.1 and do exactly the same thing with the same settings.
    But if the battery issue has been put to rest, or if people think this isn't a scientific test at all I don't want to waste my time.

    Your post is helpful in that it points out that it'd be a very difficult thing to do a scientific test that proves anything.
    In your usage, you left out surfing the web, which I do quite avidly. I also check my email much more frequently (every 30 minutes, as I've said). I can't test for surfing the web while I'm sleeping.
    Your saying that updates have nothing to do with the battery is not at all a scientific case study and has very little resonance, but it's great that in your personal experience you haven't seen a degradation in battery life. A bug can rear it's ugly head in many different places, and your usage of the phone may not hit it if in fact there is one.
    Just as an endless loop in a program can cause a computer's CPU to spike if an uncommon set of events leads to it, something could be happening with the phone for some users who are using their phone in a specific way.
    So, having said that, I think I might've answered my own question in that there might not be any scientific way to do a test.

  • Problem with paragraph style overrides and character formatting

    I've had this problem for a long time, and sometimes it resolves itself, sometimes it doesn't. Finally I'm begging for help.
    I am typesetting academic articles into a journal.  We use endnotes. The endnotes have both italic and regular formatting--italics for book and journal titles, and foreign phrases.
    Sometimes when I place the text, the formatting reverts to whatever it was in Word.  To try to fix that, I've begun stripping the Word formatting from the original document, making everything "Courier New" and just importing it like that.  I figured this would clear a lot of the problems I've had with fiddly formatting issues.
    I was mistaken. 
    Here is what happens:
    When I place the document it comes up in the original Courier New font, with italics and other formatting intact.  If I click "article style" which is the main article paragraph  style format, normally it changes.  but if I right click and select "apply article style" it is more likely to change the paragraph to the proper style, with italics and other formatting still intact.
    But when it gets to endnotes, I'm sort of screwed.
    My endnotes style is a bulletted style, so that I can have the endnote numbers consistent.  but this seems to screw all the style formatting.
    Here is what I do:
    With the cursor in endnote text, I click "bulleted endnote style".  The character format remains the same, with a + beside the style. The endnote number format is different, however.  If I click "clear overrides" it does in fact change to the proper formatting, but it strips any italics or other character in the text.  This is frustrating because many of these endnotes have lots of italicized journal and book titles, and it takes a long time to figure out which ones I need to reitalicize manually.
    I have tried to use the "customize style import>Style mapping" but it has not fixed anything.
    Please help me figure out how to make these transitions more smoothly.  I am open to suggestions both on how to make the changes once the document is placed in the Indesign file, and also making modifications to formats in the native Word file so that I don't have these problems. 
    Thanks
    Dan

    Sorry, that last message wasn't supposed to send (if that's not obvious!). I was writing it and got interrupted.  Damn iphone. 
    I know why there are two numbers.  This is not an issue. What I didn't finish writing was that, the note number before i bullet it is a different font/ format. Again, not a problem.  Here is something interesting, though.  If I delete that original number by placing the cursor in the middle of it (say a between the 4 and 2 of 42) then delete everything by Shift+arrow forward, press delete then delete the rest of the unnecessary characters, THEN apply the style formatting, it works just fine.  Is it something to do with the character codes of those original note numbers? 
    Word drops in so many hidden codes that it screws everything up!

  • Problem with paragraph and character style

    Recently I have noticed that when I alter a paragraph or character style that the text won't change to the changes I performed.
    It doesn't matter whether it's just the preview mode or when I clicked "OK"- no changes will be performed whether it be typeface or size.
    Does anyone know what can be wrong?

    My bet is that you haven't got a clear understanding of the difference between character styles and paragraph styles, and that you are using the former incorrectly.
    Paragraph styles include basic font formatting information that is applied to all text in a paragraph UNLESS that text also has either a character style or a local format override (select the text and change something) applied. The formatting heirarchy works with paragraph style at the bottom, character styles trump formatting applied in the paragraph style, and local formatting trums everything else.
    Select the text in question. Look in the the Paragraph Style field in the Control panel, or open the Paragraph Styles panel to see what is applied. If there is a plus sign next to the name local formatting overrides have been applied (hold the Alt or Opt key and click the style name to remove them), but character styles are not considered overrides, so if there is no plus sign, check the Character Style field in the control panel or ope the Character Styles panel to check if any character styles are also applied.

  • Why does CS6 InDesign Book epub output generate and apply new graf and character style names in CSS?

    I created an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document. I worked absolutely as clean as I could.
    I synchronized the book to that single overall document several times, including immediately before exporting the book to epub. My export settings disallowed any local formatting. Character styles were restricted to one named "Italic" for which the only format applied was Italic in the Font Style field, and one named "Small Caps" for which NO formatting was included in the character style.
    There was, as far as I can see, no reason for any character or paragraph styles to export to anything but identically-named CSS entries. That is to say, any text with the character style "Italic" applied in the InDesign doc should have output with the same text with a span class entry of "Italic" around it.
    I still ended up with p and span CSS entries with extra numbers appended to them:
    span.Italic {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-1 {
    font-variant:normal;}
    span.Italic-1 {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-2 {
    font-variant:normal;}
    span.Italic-2 {font-style:italic;
    font-weight:normal;}
    span.Small-Caps-3 {
    font-variant:normal;}
    span.Italic-3 {
    font-style:italic;
    font-weight:normal;}
    and
    p.x-SECTION-BREAK, p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, p.x-SECTION-BREAK-3  and so on.
    Why would the InDesign epub output engine choose to generate and apply new spans and paragraph-level styles, which multiply the complexity of editing the CSS directly? How can I prevent InDesign from doing this?

    Perhaps I wasn't clear. When I wrote "an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document" I meant to emphasize  the part where I CLEARLY said "UNTIL text was copied over." The text I copied over had plenty of paragraph styles. I was trying to point out that each individual document had no PREVIOUSLY EXISTING character or paragraph styles that might have added complexity to the epub output. .
    So, every paragraph in each document had a paragraph style attached, a total of maybe 20 different paragraph styles throughout the book. The only CHARACTER LEVEL styles I cared about exporting were Italic, for text that was set in italic, and Small Caps, for CAPITALIZED text that I wanted to be able to make smaller in the CSS, since I am not allowed to embed fonts and therefore have no other way of creating small caps in the xhtml files inside the epub.
    So, given that I had two character styles applied to various bits of text throughout my InDesign book ("Italic" and "Small Caps"), I would like to know why there are multiple CSS entries generated: Italic, Italic-1, Italic-2, Small Caps, Small Caps-1, Small Caps-2, and so on.
    Ditto paragraph styles. I had a paragraph style called "SECTION BREAK" in each document. Not only did paragraph style "SECTION BREAK" contain identical specs in each document--I know they did because I copied each from one single doc where they were being used identically--but I also synchronized the book repeatedly.  So why would the xhtml docs and the CSS output need p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, and p.x-SECTION-BREAK-3?

  • Unable to save paragraph and character styles

    I noticed an issue popping up for me in CS6 yesterday. I thought it was originally because of Fireworks saved PSD but an effort re-create the file from scratch in PS I'm coming across the same issue. In PS when I have a large amount of text layers and create a paragraph or character style, when I have ANY layer/group in my document locked I'm unable to save any paragraph or layer styles. Regardless of the layer or group being locked and regardless of what layer is highlighted I'm unable to save styles / any settings / name etc. The error I get for character styles for example is:
    "Could not complete the Modify Named Character Style command because a specified layer is locked."
    I did notice that in the Fireworks created PSD that without any layer even being locked I'd still get an error. It may be that this other document got some bad mojo from the Fireworks PSD. When creating a test doc and only creating a couple text layers and a bunch of empty groups and layers I'm unable to reproduce this. It appears to happen to me when I have a slew of text layers.
    Has anyone else experienced this and figured out a more solid workaround?

    If you want to add the styles to an already created document:
    1) Create you Character style containing only the character color
    2) Find and Replace, searching for text with red color and replace formatting with the new character style. (Don't type anything in the text part of the Find and Replace dialog)
    3) Create and apply your paragraph style to all. The text with the Character Style applied will stay red.

  • Map Paragraph and Character Styles

    Hello all,
    I am trying to import Word documents based on the Word Import Preset documents.
    Here's an example smp document
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Sangam-Import-Preset reader-type="Word/RTF">
        <!--Style mappings take the form of key-value pairs consisting of:
    style-name: Source document's style name, for example RTF style name.
    This attribute is mandatory and the value cannot be an empty string.
    mapped-to: Target InDesign document's style name.
    This attribute is mandatory but can take an empty string as its value.-->
        <Style-Mappings>
            <Paragraph-Style-Mappings>
                <Mapping style-name="Body Text" mapped-to="Body 2" />
                <Mapping style-name="Heading 1" mapped-to="Heading 1" />
                <Mapping style-name="Normal" mapped-to="Normal 2" />
            </Paragraph-Style-Mappings>
            <Character-Style-Mappings>
                <Mapping style-name="Hyperlink" mapped-to="Hyp" />
            </Character-Style-Mappings>
        </Style-Mappings>
        <!--Each Import Preference has two mandatory attributes:
    name: Name of the preference (cannot be an empty string).
    value:Value of the preference (cannot be an empty string).
    For boolean preferences, type 0 for false and 1 for true.-->
        <Import-Preferences>
            <Preference name="import-toc" value="1" />
            <Preference name="import-index" value="1" />
            <Preference name="import-hyperlink" value="1" />
            <Preference name="import-tables" value="1" />
            <Preference name="import-footnotes" value="1" />
            <Preference name="import-endnotes" value="1" />
            <Preference name="import-track-changes" value="1" />
            <Preference name="import-preserve-graphics" value="1" />
            <Preference name="spacing" value="1" />
            <Preference name="break-before-para" value="0" />
            <Preference name="use-typographers-quotes" value="1" />
            <Preference name="convert-tables-to" value="0" />
            <Preference name="remove-formatting" value="0" />
            <Preference name="dont-strip-char-formatting" value="0" />
            <Preference name="bring-unused-styles" value="0" />
            <Preference name="para-style-clash-option" value="0" />
            <Preference name="char-style-clash-option" value="0" />
            <Preference name="use-style-mappings" value="1" />
            <Preference name="convert-BN-to-text" value="0" />
        </Import-Preferences>
    </Sangam-Import-Preset>
    Everything should be easy to set in the WordRTFImportPreference except for the mappings.
    I tried using app.activeDocument. paraStyleMappings.add("Normal","Normal 2",   MapType.STYLE_MAPPING_RULE) after setting app.generalPreferences.mapStylesOnContentPlace = true
    Doesn't work . I suspect the mappings are only good for XML placements and not Word ones, in which case I guess the way to do it would be to us changeText() on the styles.  This is not a great solution as the changes would be done after placement unlike when using the UI before the placement.
    Has anyone done this or got any ideas?
    Regards,
    Trevor

    Paragraph Tools from SiliconPrairieSoftware.com will do it and it's cheap.
    Note that you may not want to convert H1 to Heading1, but convert in the
    opposite direction. A lot of expert Framers use the keyboard to choose
    paragraph tags instead of the mouse-- it's faster-- and have set up short
    names for paragraph formats to make that go even faster. (Someone who uses
    the technique can explain it better than I.) If you have members of your
    team who use this method, changing to the longer tagname may slow them down
    and bring down a hail of grumbles.

  • How do you use the "copy style" clipboard and "paste style" glue bottle?

    I just know that it will seem obvious when somebody tells me, but I'm having no luck finding out how to use these tools.  I keep thinking/hoping that they will work like a formatting paintbrush (in microsoft word or google docs) but that's not the case.  I get that you can redefine styles thorugh the paragraph, character and list styles pull out list or menu.  But a formatting brush type tool would allow more flexibility.  thanks

    Thats not really easy..  maybe you find some informatione here: https://dev.twitter.com/discussions/11386

  • Using JDBC ? Style Parameters and Oracle Style :param on view objects

    can i use :0 style on predicate side of a sql statement
    example
    ===========================================================
    select nvl(:0, null) from dual
    ===========================================================
    After some test for me only work using ? style.
    The ? style cause me problem on my already creaded master details view objects
    Any help on this
    Best Regards

    Frank tnx for repply
    My problems is , when i use parameters on functions like decode
    ===================================================
    SELECT decode(:0,'VALOR1', 'VALOR1','SINVALOR') VALOR,
           Dept.DEPTNO,
    FROM DEPT Dept
    and
    SELECT decode(:0,'VALOR1', 'VALOR1','SINVALOR') VALOR,
           Emp.EMPNO,
           Emp.DEPTNO
    FROM EMP Emp===================================================
    on a view object that is detail view object (departments vo -> employees vo)
    and have a view link EmpsByDeptViewLink
    the parameter of my view link SQL dont work (in my case :1) <-param of SQL view link
    In my vo :0 is my first parameter, :1 of my view link is my second parameter,
    but when i access my EmpsByDept.do ADF page and set
        ViewObject vo = getDeptView1();
        vo.setWhereClause("DEPTNO = :0");
        vo.setWhereClauseParam(0,"VALOR2");
        vo.setWhereClauseParam(1,"10");
        vo.executeQuery();
        ViewObject vo1 = getEmpView1();
        vo1.setWhereClause("EMPNO = :1");
        vo1.setWhereClauseParam(0,"VALOR1");
        vo1.executeQuery();its doesnot work.
    I need to do some aditional steps to parameter of my view link SQL work?
    Also i has uploaded a TestCase on http://www.geocities.com/mroseroc/ScottADFTest.zip
    Errors from my Jdeveloper Debug level are:
    =======================================================
    SELECT * FROM (SELECT decode(:0,'VALOR1', 'VALOR1','SINVALOR') VALOR,
           Emp.EMPNO,
           Emp.ENAME,
           Emp.JOB,
           Emp.MGR,
           Emp.HIREDATE,
           Emp.SAL,
           Emp.COMM,
           Emp.DEPTNO
    FROM EMP Emp) QRSLT  WHERE (EMPNO = :1)
    06/04/26 21:55:03 [915] Bind params for ViewObject: EmpView1
    06/04/26 21:55:03 [916] Binding param 1: VALOR1
    06/04/26 21:55:03 [917] ViewObject: EmpView1 close single-use prepared tatements
    06/04/26 21:55:03 [918] QueryCollection.executeQuery failed...
    06/04/26 21:55:03 [919] java.sql.SQLException: Missing parameter IN o OUT on index:: 2=======================================================
    (EMPNO = :1) <- this value is never passed

  • Make paragraph style not override character style?

    Hi.
    Is there any way to make a paragraph style NOT override a character style?
    For example, I write a lot of scientific reports in Pages and then I use subscript and superscript often and so I have made a character style for that. But if I want to perhaps change the spacing between paragraphs in my body style. I select a paragraph, change the settings that I want and then I right click on the paragraph style and choose "redefine style from selection". Then I select all of that style and choose "revert to defined style" to get the updated paragraph spacing. But what this does is that it overrides all of the character styles so that everything in sub/superscript, bold, italic etc get back to the style. This is really bugging me out.
    For the character styles you can select what attributes you want them to affect, is there any way to do this with paragraph styles as well? Or maybe some of you have got a good way to make it work.
    Thanks in advance.

    When you redefine the paragraph style, all paragraphs using that style will display the new style properties, unless you've overriden them. Presumably this is why you choose "revert to defined style", so that other paragraphs that you've stylistically modified take on the proper paragraph style properties. If not, why revert at all?
    Instead of using revert, why not re-apply the paragraph style (just click on the selected style in the drawer, or pick the selected item from the pop-up menu). It will discard your unwanted paragraph style overrides, and preserve the character styles.

Maybe you are looking for

  • TS1591 my ipod touch no longer works since ios 6 update!!!!!!!!!!!!!  FIX THIS PROBLEM

    touch no longer works since ios 6 update!!!!!!!!!!!!!  FIX THIS PROBLEM

  • [CS3][JS] How to place multipage Indesign-file

    Hi, Can anyone please help me? How do I place every page of an external Indesign-file into my current document [JS]? How do I set the import options? Thanx Tim

  • Why don't standard XPath functions work in XSLT?

    I'm having a lot of trouble trying to do some simple string processing in XSLT. What I would like to do is make selection using the standard xpath functions defined by the w3c. I'm using this as my cheat sheet: http://w3schools.com/xpath/xpath_functi

  • IMac G4 video input?

    hello! I would like to ask does iMac display support video input? Like TV box or PC video output? Which means I can use iMac just as a normal LCD monitor. Currently I only got an old laptop in my place, I would choose to by an iBook + LCD monitor if

  • JTree path selection

    I have a JTree on the left scrollpane and on clicking the value of a node, I display the value in a text field on the right scrollpane. I change the value and set the value in the JTree . I am unable to make the edited tree path selected. The methods