Customizing STYLE by each group

Hello, All~
I'm trying to apply a different skin/style to each user after user logged in.
For example UserA login -> Blue look and fill Skin/Style
UserB login -> Green look and fill Skin/Style
So I copied default Skin and Style(s_oracle10/sk_oracle10) to the others.
For example s_myoracleA/sk_myoracleA for UserA
s_myoracleB/sk_myoracleB for UserB
Actually I succeeded in applying Skin based on user login, but not for Style.
(I used Session Variable SKIN for doing this.)
Why doesn't exist Session Variable for Style?
To apply style based on login, what is the best practice?
I tried to do as this thread of oracle forum.
Re: 'STYLE' variable for Dashboard Themes
So I add a group of tags into my instanceconfig.xml like below :
<Auth>
<UserIdPassword enabled="true">
<ParamList>
<Param name="NQ_SESSION.STYLE" source="url" nameInSource="STL"/>
<Param name="NQ_SESSION.SKIN" source="url" nameInSource="SKN"/>
</ParamList>
</UserIdPassword>
</Auth>
And when I go http://localhost:9704/analytics/saw.dll?Dashboard&STL=test ,
It works well..
However I can't find where I have to modify to generate URL automatically based on login.
Help me please~

I have exactly the same requirement but having set the parameters in the instanceconfig file ie.
<Auth>
<ParamList>
<Param name="NQ_SESSION.STYLE" source="url" nameInSource="STL"/>
<Param name="NQ_SESSION.SKIN" source="url" nameInSource="SKN"/>
</ParamList>
</Auth>
when I type in
http://cw001p40/analytics/saw.dll?Dashboard&STL=fnb&SKN=fnb
it correctly display the SKN (fnb) but not the STL (this is defaulted to Oracle)
The only way I can get both SKN and STL to display is with entries in the
instanceconfig file ie:
<DefaultSkin>fnb</DefaultSkin>
<DefaultStyle>fnb</DefaultStyle>
I can also successfully get the correct STYLE by modifying the dashboards default properties, to fnb.
Any ideas why with the url for me the STL does not work

Similar Messages

  • Custom sorting within "for-each-group:current-group"

    Hi, I need some help in doing a custom sort within a "for-each-group:current-group". My formatting is in a table format but I'm not sure how to post a table here so I'm just arranging the column details out as it would look in a table. I have a column on the left for the YEAR and a second column on the right for the DESCR. Under the DESCR column I've inserted a nested table with four columns: SUBJECT, CATALOG_NBR, DESCR250 and GRADE.
    COLUMN 1:
    <?for-each-group:row_table;./ YEAR?><?sort: YEAR;'ascending';data-type='text'?><?YEAR?>      
    COLUMN 2:
    <?for-each-group:current-group();./DESCR?><?DESCR?>
    NESTED TABLE (with 4 columns):
    +<?for-each:current-group()?><?SUBJECT?><?CATALOG_NBR?><?DESCR250?><?GRADE?><?end for-each?>+
    <?end for-each-group?> <?end for-each-group?>
    I'm able to sort by YEAR in the "for-each-group" on the left column. But I also want to do a custom sort on DESCR in the right column.
    I've seen this blog on custom sorting by Vetriselvan: http://winrichman.blogspot.com/2009/09/custom-dynamic-sort-in-bi-publisher.html and I tried inserting this sort below after <?for-each-group:current-group();./DESCR?> but I get an error message.
    <?sort:(number(DESCR='Status')*1)+(number(DESCR='First Semester')*2)+(number(DESCR='Second Semester')*3);'ascending';data-type='number'?>
    I've also seen this thread: Re: Sort within group and tried inserting <?for-each:DESCR?> before the sort (as below) - this time I can preview the results, but it is not sorting as required.
    <?for-each:DESCR?><?sort:(number(DESCR='Status')*1)+(number(DESCR='First Semester')*2)+(number(DESCR='Second Semester')*3);'ascending';data-type='number'?>
    Can anyone help me custom sort the DESCR column? I'm using Template Builder for Word version 5.6 build 45. Thanks in advance for any help!

    Hi Vetsrini,
    I tried adding <?sort: ./DESCR;'ascending';data-type='text'?> after <?for-each-group:current-group();./DESCR?> but I'm getting an error message.
    The DESCR values are below and I'm trying to sort them in the following order.
    STATUS
    SUMMER SEMESTER
    FIRST SEMESTER
    AUTUMN SEMESTER
    WINTER SEMESTER
    SECOND SEMESTER
    SPRING SEMESTER
    Because I need them in the above order, I can't use ascending or descending, and instead need to use a custom sort order. Do you know how I can go about creating a custom sort order?
    Thanks!

  • SharePoint 2013 RTE Custom Styles lost on Team Site Wiki Page after you select a control in the editor

    I have a weird issue in that I have custom RTE styles working fine in publishing pages, but in the team site wiki page, when you first go into edit mode you see your styles, but if you highlight some text, select say the font drop down to expand it and then
    select it again to contract it (i.e. without selecting a font), all of a sudden all of the custom styles are lost and everything reverts back to the default RTE styles.
    In my master page I am running the following script to force my styles to be loaded.
    ExecuteOrDelayUntilScriptLoaded(
    function() {
         $(
    "div[RteRedirect]").each(function()
    varid = $(this).attr("RteRedirect"),
             editSettings = $(
    "#"+ id);
    if(editSettings.length > 0 &&
    editSettings[0].PrefixStyleSheet != 'custom-rte')
                 editSettings[0][
    'PrefixStyleSheet'] =
    'custom-rte';
                 editSettings[0][
    'StyleSheet'] =
    '\u002f_layouts\u002f15\u002fFiveP\u002frteStyles.css';
                 RTE.Canvas.fixRegion(id,
    false);
    "sp.ribbon.js");
    See below screenshots (note Heading 2 is orange).
    After you collapse the font menu, you see that the orange H2 has disappeared, and selecting the font drop down again now shows all of the default SharePoint RTE styles.
    I haven't been able to capture the Event that is being called using the debugger. Any ideas how to fix this?
    Alan Coulter.

    Hi,
    For this issue, I'm trying to involve someone familiar with this topic to further look at it.
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • Placing Word docs with custom style mapping

    I am trying to place Word 2007 docs in InDesign CS3 using custom style mapping.
    When I place the Word doc, InDesign creates a whole new set of styles with the correctly mapped new names but with the Word style definition. It records no name conflicts with the my already existing styles of the same names. Each of the new styles has the disc icon next to it, showing it was imported.
    If I delete each of the styles I can replace it with my original InDesign style, but isn't the point of style mapping to eliminate that step?
    Thanks.

    This issue is now solved in the 6.0.4 update. See the release notes for item #2335625.
    An important update to the InCopy and InDesign products has been released today!
    To install the update, choose Help > Updates from any Adobe CS4 application, or navigate to the Adobe Updater and launch it:
    Mac: /Applications/Utilities/Adobe Utilities/Updater6/Adobe Updater.app
    Win: C:\Program Files\Common Files\Adobe\Updater6\Adobe_Updater.exe
    You can also download the updates from Adobe.com at the following locations:
    InCopy Mac: http://www.adobe.com/support/downloads/product.jsp?product=30&platform=Macintosh
    InCopy Win: http://www.adobe.com/support/downloads/product.jsp?product=30&platform=WIndows
    InDesign Mac: http://www.adobe.com/support/downloads/product.jsp?product=31&platform=Macintosh
    InDesign Win: http://www.adobe.com/support/downloads/product.jsp?product=31&platform=WIndows
    Release notes are here: http://www.adobe.com/go/id6_readme_en

  • Custom-style outline template with prompts and glossary page

    Hello
    I would like to make a template in Word 2010 with a custom-style outline. Would anyone be able to suggest how to achieve these requirements (pointing me to reading material also helpful):
    1. Every phrase the user types into a field gets automatically added to a final glossary page, listing exact letter-for-letter duplicates only once.
    2. Upon opening an instance of the template the user is prompted with the following entry form questions:
           ○ Prompt: "What error message or problem description will this document cover?" The free-text answer will populate the header of each page in the title style.
           ○ Prompt: "What is your initial condition? If none, press enter." The free-text answer will populate the first line in heading1 style in the form "Additional Condition: [user's answer]".
    If the answer is of string length 0, the user's answer defaults to "none".
           ○ Prompt: "List all possible causes for initial condition, separated by a comma. Phrase possible causes as a question." Each comma-separated free-text answer will populate the next line in heading2
    style with the numbering convention "Possible Cause [#]".
     3. Under each possible cause item the following items appear in heading3 style, each on its own line: "System overview, Tools required, Safety precautions, Troubleshooting steps, Confirm possible cause, Fix confirmed
    cause". Underneath the items just listed appear more fields that the user can use.
    I realize this is a lengthy post, probably too specific, but if I could get pointed in the right direction I am willing to do the research!

    Thank you for the insights, Fei Xue. Let me try to explain to glossary requirement better...
    The glossary will reiterate all phrases entered by the user (this is an outline so each phrase will be a paragraph, but paragraphs the paragraphs a brief). I have the following code that executes as written but the problem comes when you change content
    in the outline the glossary does not get updated.
    'THIS CODE IS IN A MODULE'Sub PageBreakPlus()
    Selection.InsertBreak Type:=wdPageBreak
    End Sub
    Function ProblemFunc() As String
    ProblemFunc = InputBox("Type the error message verbatim. If no error message, type brief problem description to be used as a phrase.", "Error Code Administration")
    End Function
    Function AddConFunc() As String
    AddConFunc = InputBox("Type an additional condition to be used as a phrase. If none, click OK.", "Additional Condition", "None")
    End Function
    Function CausesFunc() As String
    CausesFunc = InputBox("List all possible causes for additional condition in the order a user should investigate them. Phrase possible causes as a question.", "Possible Causes")
    End Function
    'THIS CODE IS IN ThisDocument'Private phrases() As String 'no used at this point'
    Private Sub Document_New()
    Dim causeString As String
    Dim causeArray() As String
    Dim problem As String
    Dim addcon As String
    Dim templateRev As String: templateRev = "16-Apr-2015"
    'get the prompts and split the causeString into each question'
    problem = ProblemFunc
    addcon = AddConFunc
    causeString = CausesFunc
    causeArray = Split(causeString, "?")
    If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
    ActiveWindow.Panes(2).Close
    End If
    If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
    ActivePane.View.Type = wdOutlineView Then
    ActiveWindow.ActivePane.View.Type = wdPrintView
    End If
    ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
    With Selection
    .Style = ActiveDocument.Styles("Title")
    .TypeText problem
    .ParagraphFormat.Alignment = wdAlignParagraphCenter
    .TypeParagraph
    .ParagraphFormat.Alignment = wdAlignParagraphCenter
    .TypeText Text:="Template Rev. " & templateRev & vbTab & "Document Rev. "
    .Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="CREATEDATE \@ ""d-MMM-yyyy"" ", PreserveFormatting:=True
    End With
    ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
    For Each cause In causeArray
    If Len(cause) <> 0 Then
    With Selection
    .TypeText Trim(cause) & "?"
    .Style = ActiveDocument.Styles("Heading 2")
    .TypeParagraph
    .TypeText Text:="System overview"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    .TypeText Text:="Tools required"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    .TypeText Text:="Safety precautions"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    .TypeText Text:="Troubleshooting steps"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    .TypeText Text:="Confirm possible cause"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    End With
    End If
    Next cause
    With Selection
    .Style = ActiveDocument.Styles("Normal")
    .InsertBreak Type:=wdPageBreak
    .Style = ActiveDocument.Styles("Strong")
    .TypeText "Glossary of Phrases"
    .TypeParagraph
    .Style = ActiveDocument.Styles("Normal")
    End With
    Dim tbl As Table
    ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=1, NumColumns:=1, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:=wdAutoFitFixed
    With Selection.Tables(1)
    If .Style <> "Table Grid" Then
    .Style = "Table Grid"
    End If
    .ApplyStyleHeadingRows = True
    .ApplyStyleLastRow = False
    .ApplyStyleFirstColumn = True
    .ApplyStyleLastColumn = False
    .ApplyStyleRowBands = True
    .ApplyStyleColumnBands = False
    End With
    With Selection
    .Style = ActiveDocument.Styles("Normal")
    .TypeText Text:=problem
    .MoveRight Unit:=wdCell
    .TypeText Text:=addcon
    .TypeText Text:="System overview"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    .TypeText Text:="Tools required"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    .TypeText Text:="Safety precautions"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    .TypeText Text:="Troubleshooting steps"
    .Style = ActiveDocument.Styles("Heading 3")
    .TypeParagraph
    .TypeText Text:="Confirm possible cause"
    For Each cause In causeArray
    If Len(cause) <> 0 Then
    .MoveRight Unit:=wdCell
    .TypeText Text:=Trim(cause) & "?"
    End If
    Next cause
    End With
    For Each tbl In ActiveDocument.Tables
    tbl.Select
    Selection.Font.Bold = wdToggle
    Selection.Sort ExcludeHeader:=False, FieldNumber:="Column 1", _
    SortFieldType:=wdSortFieldAlphanumeric, SortOrder:=wdSortOrderAscending, _
    FieldNumber2:="", SortFieldType2:=wdSortFieldAlphanumeric, SortOrder2:= _
    wdSortOrderAscending, FieldNumber3:="", SortFieldType3:= _
    wdSortFieldAlphanumeric, SortOrder3:=wdSortOrderAscending, Separator:= _
    wdSortSeparateByCommas, SortColumn:=False, CaseSensitive:=False, _
    LanguageID:=wdEnglishUS, SubFieldNumber:="Paragraphs", SubFieldNumber2:= _
    "Paragraphs", SubFieldNumber3:="Paragraphs"
    Selection.Borders(wdBorderTop).LineStyle = wdLineStyleNone
    Selection.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
    Selection.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
    Selection.Borders(wdBorderRight).LineStyle = wdLineStyleNone
    Selection.Borders(wdBorderHorizontal).LineStyle = wdLineStyleNone
    Selection.Style = ActiveDocument.Styles("Normal")
    Next tbl
    End Sub

  • Select different style for each border of a rectangle

    Hi,
    I just wanted to have a Rectangle (or some other component) which one must have different style for each of its borders.
    For example I want the top and the right border with a thickness of 2 and others with a thickness of 0 (so we can only see those two borders).
    How can I do it ?
    I tried with stroke (but stroke is for all borders, we can't specify which style for which border).
    Thanks,
    Jeff

    Well it is not clear what he is looking for just rect or a component with specific border. I havnt used flex 4 so i am not sure how to get it working for that
    , but i am sure it will work on the same lines.
    I have also given another option to create a it using lineTo() and moveTo().But this should only be used if this rect is not going to be used as a container.
    I think i should elaborate...
    Create a custom component using UIComponent. In updateDisplayList() after super.updateDisplayList() call a method say drawRect(). In this drawRect() use lineTo() and moveTo() to draw the rectangle. you would have to use the component's height and width to draw the rect.
    Let me know if you need more clearification...

  • Custom Styles in TextEdit - Background Highlighting

    Hi, I defined a custom/'favorite' style for use in TextEdit which applies yellow background highlighting to selected text. (The style was added to the GlobalPreferences.plist file, as I'm on Snow Leopard). The issue is that when I highlight text and apply this style, it overrides any prior formatting like bold, italic, or underline, and reverts the selection to plain text when applying the background highlighting.
    I understand this is mechanically correct, because my user-defined Highlight style induces [plain text + yellow background color]. My question is this: is there any way to modify my defined style to preserve the original formatting of the text, adding only the background color without modifying the pre-existing text attributes? Basically I would like my bold, italic, underline, strikethroughs, font size, etc. to be preserved when applying a background color to selected text.
    For reference, I defined the style by electing to 'add to favorite styles' a selection from one of the similarly pre-formatted rich text files that's available, and did NOT include the font or the ruler as part of the style. I understand that I could create separate favorite styles for highlight+bold, highlight+italic, highlight+underline, highlight+strikethrough, highlight+[each font size], and all combinations thereof, but applying each different style to each subsection of text would be as cumbersome as reformatting each subsection as +bold, +italics, etc. after the highlight it applied and text style is reverted to default.
    I have extracted the NSFavoriteStyles section from the ~/Library/Preferences/GlobalPreferences.plist file and located the style I defined, it appears like this:
    Highlighter =     {
            NSBackgroundColor = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 5624636c 6173735c 4e53436f 6c6f7253 70616365 554e5352 47428002 10014831 20312030 2e3200d2 10111213 5a24636c 6173736e 616d6558 24636c61 73736573 574e5343 6f6c6f72 a2121458 4e534f62 6a656374 5f100f4e 534b6579 65644172 63686976 6572d117 1854726f 6f748001 08111a23 2d32373b 41484f5c 6264666f 747f8890 939caeb1 b6000000 00000001 01000000 00000000 19000000 00000000 00000000 00000000 b8>;
    What would I need to add to this string to retain existing text formatting when applying the style? It should be possible, as applying the 'Underline' style does not override an existing 'Bold' style, for example, but I don't see any commands in those styles that supplement the information that appears in my defined 'Highlighter' style.
    I also understand this may be pre-Lion specific, as I've heard the TextEdit program is now sandboxed in such a way as to prevent the definition of new styles. I'll have to try on my Mountain Lion machine when I have a chance. I appreciate any help, thanks!

    Hello
    It's been a while and I'm not sure you're still listenting to or interested in this.
    Anyway I finally had some time to play with and come up with an implementation via system services.
    There are three files to make the service, whose codes are listed below.
    • main.m (wrapper executable)
    • main.rb (service body)
    • make (bash script to make .service from source)
    # Recipe
    1) Create the three plain text files (in utf8) by copy-pasting codes listed below and place them loose in a new directory, e.g., ~/Desktop/work.
    2) Issue the following commands in Terminal, which yield a package named TextHighlightServices.service in ~/Desktop/work.
    * You need to have gcc installed, which comes with Xcode.
    cd ~/Desktop/work
    chmod ug+x make
    ./make
    3) Move the TextHighlightServices.service to ~/Library/Serivecs
    4) Log out and log in to let the new service be recognised.
    (This may not be necessary for .service, but I'd play for safety. Also you may use the following command in Terminal instead of re-login, if necessary:
    # in 10.5
    /System/Library/CoreServices/pbs
    # in 10.6
    /System/Library/CoreServices/pbs -flush
    5) Done.
    # Usage
    If everything goes well, you'll see two services named "Text Highlight - Add" and "Text Highlight - Remove" in Services menu in TextEdit when you select some text in rich text mode. (In 10.6, services only appear in its applicable context, while in 10.5, they may yet appear in non-applicable context and be grayed-out.)
    Invoke the serivces on selected rich text via menu or keyboard shortcuts and see if it works. Keyboard shortcuts are currently defined as Command-9 for highlight and Command-0 for unhighlight.
    You may change the menu item names, keyboard shortcuts and highlight colour by changing the values in the #properties section at the beginning of make file. (Or you may directly edit Info.plist file in the package. But 'make' is instant and it'll be faster to re-make the package than to edit it manually)
    # Notes
    • Highlight and unhighlight are implemented as two services and you cannot assign one keyboard shortcut, e.g., Command-Y to both to toggle highlight state. (One 'toggle highlight service' is possible but you need to re-write the code as such)
    • Keyboard shortcut is case-sensitive. E.g., J means Command-Shift-j.
    • If keyboard shortcut is ignored, it is most likely that the key is already used for something else.
    • This service is written to terminate itself if idle for ca. 20 seconds. It will be re-launched on demand. To keep the service running is not a problem, usually, but I noticed this rubycocoa code constantly uses ca 1.1% CPU and decided not to let it waste energy. If you rewrite the code in Objective-C proper, it would be 0.0% CPU usage in idle.
    • Tested with 10.5.8 and 10.6.5.
    # Files
    main.m
    // file
    //     main.m
    // function
    //     wrapper executable to run Contents/Resources/main.rb
    // compile
    //     gcc -framework RubyCocoa -o PROGNAME main.m
    #import <RubyCocoa/RBRuntime.h>
    int main(int argc, const char *argv[])
        return RBApplicationMain("main.rb", argc, argv);
    main.rb
    # file
    #     main.rb
    # function
    #     to provide text highlight services
    require 'osx/cocoa'
    include OSX
    class Services < NSObject
        attr_reader :last_invoked
        def init()
            @last_invoked = NSDate.date
            self
        end
        # utility method
        def highlight_pboard_colour(option, pboard, colr)
            # int option : 0 = remove bg colour, 1 = add bg colour
            # NSPastedBoard *pboard : pasteboard passed via service
            # NSColor colr : background colour for highlight
            raise ArgumentError, "invalid option: #{option}" unless [0,1].include? option
            @last_invoked = NSDate.date
            # read rtf data from clipboard
            rtf = pboard.dataForType('public.rtf')
            # make mutable attributed string from rtf data
            docattr = OCObject.new
            mas = NSMutableAttributedString.alloc.objc_send(
                :initWithRTF, rtf,
                :documentAttributes, docattr)
            rase ArgumentError, "zero-length rtf is given" if mas.length == 0
            # add or remove background colour attribute
            r = NSMakeRange(0, mas.length)
            if option == 1
                mas.objc_send(
                    :addAttribute, NSBackgroundColorAttributeName,
                    :value, colr,
                    :range, r)
            elsif option == 0
                mas.objc_send(
                    :removeAttribute, NSBackgroundColorAttributeName,
                    :range, r)
            end
            mas.fixAttributesInRange(r)
            # make rtf data from mutable attributed string
            rtf = mas.objc_send(
                :RTFFromRange, r,
                :documentAttributes, docattr)
            # write rtf data to the clipboard
            pboard.objc_send(
                :declareTypes, ['public.rtf'],
                :owner, nil)
            pboard.objc_send(
                :setData, rtf,
                :forType, 'public.rtf')
        end
        # service method 1 : highlight rtf
        def highlight_userData_error(pboard, udata, error)
            # NSPastedBoard *pboard : pasteboard passed via service
            # NSString *udata : space delimited string of red, green, blue, alpha components to define background colour
            # NSString **error
            # set background colour from given user data
            r, g, b, a = udata.to_s.split(/\s+/).map {|x| x.to_f}
            colr = NSColor.objc_send(
                :colorWithCalibratedRed, r,
                :green, g,
                :blue, b,
                :alpha, a)
            # add background colour to rtf
            self.highlight_pboard_colour(1, pboard, colr)
        end
        # register ruby method as objc method
        objc_method(:highlight_userData_error, 'v@:@@^@')
        # service method 2 : un-highlight rtf
        def unhighlight_userData_error(pboard, udata, error)
            # NSPastedBoard *pboard : pasteboard passed via service
            # NSString *udata : space delimited string of red, green, blue, alpha components to define background colour
            # NSString **error
            self.highlight_pboard_colour(0, pboard, nil)
        end
        # register ruby method as objc method
        objc_method(:unhighlight_userData_error, 'v@:@@^@')
    end       
    class AppDelegate < NSObject
        def init()
            @services = Services.alloc.init
            @timer = NSTimer.objc_send(
                :timerWithTimeInterval, 5.0,  # periodic check interval [sec]
                :target, self,
                :selector, :idle,
                :userInfo, nil,
                :repeats, true)
            @TTL = 20.0  # time to live in idle [sec]
            self
        end
        def applicationDidFinishLaunching(notif)
            NSApp.setServicesProvider(@services)
            NSRunLoop.currentRunLoop.objc_send(
                :addTimer, @timer,
                :forMode, NSDefaultRunLoopMode)
        end
        def applicationShouldTerminate(sender)
            @timer.invalidate
            NSTerminateNow
        end
        def idle(timer)
            if @services.last_invoked.timeIntervalSinceNow < -@TTL
                NSApp.terminate(self)
            end
        end
    end
    def main
        app = NSApplication.sharedApplication
        delegate = AppDelegate.alloc.init
        app.setDelegate(delegate)
        app.run
    end
    if __FILE__ == $PROGRAM_NAME    # = if this file is the primary ruby program currently executed
        main
    end
    make
    #!/bin/bash
    # file
    #    make
    # function
    #    to make PROGNAME.service package from main.m and main.rb
    export LC_ALL=en_GB.UTF-8
    # properties
    PROGNAME="TextHighlightServices"
    EXECPATH="${PROGNAME}.service/Contents/MacOS/${PROGNAME}"
    BNDL_TYPE="APPL"
    BNDL_SIGNATURE="????"
    BNDL_VERSION="1.0"
    BUILD_VERSION="1"
    SRC_VERSION="10000"
    HIGHLIGHT_MENU_ITEM="Text Highlight - Add"
    HIGHLIGHT_KEY="9"
    UNHIGHLIGHT_MENU_ITEM="Text Highlight - Remove"
    UNHIGHLIGHT_KEY="0"
    HIGHLIGHT_COLOUR="1.0 1.0 0.6 1.0" # R B G A in [0.0, 1.0]
    # make package directories
    rm -rf "${PROGNAME}".service
    mkdir -p "${PROGNAME}".service/Contents/{MacOS,Resources}
    # make PkgInfo
    cat <<EOF > "${PROGNAME}.service/Contents/PkgInfo"
    ${BNDL_TYPE}${BNDL_SIGNATURE}
    EOF
    # make Info.plist
    cat <<EOF > "${PROGNAME}".service/Contents/Info.plist
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>CFBundleDevelopmentRegion</key>
        <string>English</string>
        <key>CFBundleExecutable</key>
        <string>${PROGNAME}</string>
        <key>CFBundleIdentifier</key>
        <string>bubo-bubo.${PROGNAME}</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
        <string>${PROGNAME}</string>
        <key>CFBundlePackageType</key>
        <string>${BNDL_TYPE}</string>
        <key>CFBundleShortVersionString</key>
        <string>${BNDL_VERSION}</string>
        <key>CFBundleSignature</key>
        <string>${BNDL_SIGNATURE}</string>
        <key>CFBundleVersion</key>
        <string>${BNDL_VERSION}</string>
        <key>NSPrincipalClass</key>
        <string>NSApplication</string>
        <key>NSServices</key>
        <array>
            <dict>
                <key>NSPortName</key>
                <string>${PROGNAME}</string>
                <key>NSMessage</key>
                <string>highlight</string>
                <key>NSMenuItem</key>
                <dict>
                    <key>default</key>
                    <string>${HIGHLIGHT_MENU_ITEM}</string>
                </dict>
                <key>NSKeyEquivalent</key>
                <dict>
                    <key>default</key>
                    <string>${HIGHLIGHT_KEY}</string>
                </dict>
                <key>NSSendTypes</key>
                <array>
                    <string>NSRTFPboardType</string>
                </array>
                <key>NSReturnTypes</key>
                <array>
                    <string>NSRTFPboardType</string>
                </array>
                <key>NSTimeout</key>
                <string>10000</string>
                <key>NSUserData</key>
                <string>${HIGHLIGHT_COLOUR}</string>
                <key>NSRequiredContext</key>
                <dict>
                    <key>NSApplicationIdentifier</key>
                    <array>
                        <string>com.apple.TextEdit</string>
                    </array>
                </dict>
            </dict>
            <dict>
                <key>NSPortName</key>
                <string>${PROGNAME}</string>
                <key>NSMessage</key>
                <string>unhighlight</string>
                <key>NSMenuItem</key>
                <dict>
                    <key>default</key>
                    <string>${UNHIGHLIGHT_MENU_ITEM}</string>
                </dict>
                <key>NSKeyEquivalent</key>
                <dict>
                    <key>default</key>
                    <string>${UNHIGHLIGHT_KEY}</string>
                </dict>
                <key>NSSendTypes</key>
                <array>
                    <string>NSRTFPboardType</string>
                </array>
                <key>NSReturnTypes</key>
                <array>
                    <string>NSRTFPboardType</string>
                </array>
                <key>NSTimeout</key>
                <string>10000</string>
                <key>NSRequiredContext</key>
                <dict>
                    <key>NSApplicationIdentifier</key>
                    <array>
                        <string>com.apple.TextEdit</string>
                    </array>
                </dict>
            </dict>
        </array>
        <key>NSUIElement</key>
        <string>1</string>
    </dict>
    </plist>
    EOF
    # make version.plist
    cat <<EOF > "${PROGNAME}".service/Contents/version.plist
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>BuildVersion</key>
        <string>${BUILD_VERSION}</string>
        <key>CFBundleShortVersionString</key>
        <string>${BNDL_VERSION}</string>
        <key>CFBundleVersion</key>
        <string>${BNDL_VERSION}</string>
        <key>ProjectName</key>
        <string>${PROGNAME}</string>
        <key>SourceVersion</key>
        <string>${SRC_VERSION}</string>
    </dict>
    </plist>
    EOF
    # make ServicesMenu.strings
    mkdir -p "${PROGNAME}".service/Contents/Resources/English.lproj
    cat <<EOF > "${PROGNAME}".service/Contents/Resources/English.lproj/ServicesMenu.strings
    /* Services menu item to highlight or unhighlight the selected text */
    "${HIGHLIGHT_MENU_ITEM}" = "${HIGHLIGHT_MENU_ITEM}";
    "${UNHIGHLIGHT_MENU_ITEM}" = "${UNHIGHLIGHT_MENU_ITEM}";
    EOF
    # copy *.rb in Contents/Resoures
    ditto *.rb "${PROGNAME}".service/Contents/Resources/
    # compile wrapper executable
    gcc -framework RubyCocoa -o "${EXECPATH}" main.m
    It is fun to play with rubycocoa.
    And glad if this helps.
    Good luck,
    H
    cf.
    http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/SysServices/SysService s.pdf
    Message was edited by: Hiroto ( fixed 'make' to './make' in Recipe 2, sorry)

  • Style Inheritance on default custom style

    I've created a custom class that uses some customs styles
    I've defined (i.e. underlineColor). I used the sample code to
    create a default style value with a one time classConstruct method.
    I did notice that the sample code provided by adobe doesn't
    seem to work when you use a style tag to define only some of the
    style parameter, I was able to fix this by checking each style
    parameter in the construct and setting only the ones that where non
    existing.
    But I then hit another wall, this time trying to use style
    inheritance, according to documentation, inherited styles are check
    on the parent first and then checked on the class defined styles,
    but I've noticed that this doesn't seem to work, in fact if I use
    the classConstruct method to define the style default values then
    inherited values are not used.
    I was wondering if anyone knows how to create styles default
    values with inheritance and how the classConstruct method is really
    used.
    thanks

    "buabco" <[email protected]> wrote in
    message
    news:[email protected]...
    > OK I did that to fix the problem when you have an
    incomplete CSS
    > definition,
    > but it doesn't work when you have inheritance, and it's
    wierd anyway since
    > the
    > code get to run only once that the inheritance get
    compromised. I've
    > simplified
    > the code to show what I'm doing:
    >
    >
    > Adobe Example is like this:
    >
    >
    [Style(name="customStyle",type="Number",format="length",inherit="no")]
    > public class testClass extends UIComponent {
    > // Define a static variable.
    > private static var classConstructed:Boolean =
    classConstruct();
    >
    > // Define a static method.
    > private static function classConstruct():Boolean {
    > if (!StyleManager.getStyleDeclaration("testClass"))
    > {
    > // If there is no CSS definition for StyledRectangle,
    > // then create one and set the default value.
    > var testStyle:CSSStyleDeclaration = new
    CSSStyleDeclaration();
    > testStyle.defaultFactory = function():void
    > {
    > this.customStyle = 5;
    > }
    > StyleManager.setStyleDeclaration("testClass", testStyle,
    true);
    >
    > }
    > return true;
    > }
    >
    > // Constructor
    > public function testClass() {
    > super();
    > }
    >
    > }
    >
    > But this code fails when you create a style declaration
    for testClass that
    > doesn't include customStyle, in that case customStyle is
    not set to
    > default.
    >
    > So I change it to:
    >
    >
    [Style(name="customStyle",type="Number",format="length",inherit="no")]
    > public class testClass extends UIComponent {
    > // Define a static variable.
    > private static var classConstructed:Boolean =
    classConstruct();
    >
    > // Define a static method.
    > private static function classConstruct():Boolean {
    > var nsd:CSSStyleDeclaration;
    > if (!StyleManager.getStyleDeclaration("testClass")) {
    > // If there is no CSS definition for StyledRectangle,
    > // then create one and set the default value.
    > nsd = new CSSStyleDeclaration();
    > } else {
    > nsd = StyleManager.getStyleDeclaration("testClass");
    > }
    >
    > //Definamos los estilos personalizados
    > //Para el titulo
    >
    > if
    (!StyleManager.isValidStyleValue(nsd.getStyle("customStyle")))
    > nsd.setStyle("customStyle", "5");
    >
    > StyleManager.setStyleDeclaration("testClass", nsd,
    true);
    >
    > return true;
    > }
    >
    > // Constructor
    > public function testClass() {
    > super();
    > }
    >
    > }
    >
    > now the code checks for the parameter before setting it.
    Still if I set
    > the
    > inheritance to true this code doesn't work. The strange
    part is that It
    > should
    > since this code it's supose to be executed only once and
    it doesn't set
    > the
    > class parameter directly but it fills the StyleManagers
    data instead,
    > according
    > to inheritance order the parents that should be used
    before the class
    > specific
    > data, or am I wrong?
    No, the closer the tag is to being your actual class, the
    more likely its
    style is to be used.
    http://www.adobe.com/livedocs/flex/3/html/help.html?content=styles_04.html
    You might find this useful
    http://blog.flexexamples.com/2007/12/24/displaying-a-combobox-controls-inherited-styles-in -flex/

  • Custom style in websheets

    Starting with APEX 4.1 we could use a custom style for web sheets by providing our own CSS commands.
    Did anybody experiment with that? Which classes / IDs should we use?
    Or might there even be documentation about that? In the official APEX documentation I could only find this sentence ;): "Use the Style section to override default application style and use a custom CSS."
    Regards,
    ~Dietmar.

    Hi Sam,
    I don't use the web toolkit myself, but the principles of css should still apply. That is, if you have two, or more, css style rules for an object (referenced either by tag type, id or class name etc), the last style found for each style setting is used. For example, if you have two styles for a class called "xxx" and both contain a border definition, the second definition will be applied.
    You can control this in two ways:
    1 - Make sure that the STYLE tag for the styling to want to take effect is loaded after the Theme 20 stylesheet. You could probably do this in the page's HTML Header setting
    2 - Add *!important* after any style that you want to take precendence over any subsequent style. For example, suppose your first style tag contains:
    .xxx {border:1px solid blue}and your custom style contains:
    .xxx {border:1px solid red}You will get a red border unless you change the first one to:
    .xxx {border:1px solid blue!important}when you will get a blue border
    Andy

  • How to handle goup sub total for each group in oracle query ?

    hi,
    i want to handle one complex thing in oracle query.
    i have a grouping in my oracle query.
    i want to do sub total for each group in query and after that i want to subtract one group sub total from previous group subtotal ?
    so how can i handle this in oracle query ?
    any help is greatly appreciated.
    thanks.

    Hello
    Interesting requirement.
    I wonder why are you not using these calculation during the display time. If it is acceptable then you can try using the custom formula with the running total combination in crystral report to achieve to get the required results.
    Best regards
    Ali Hadi

  • Custom footer on each copy of invoice

    Recently I used this webapge http://winrichman.blogspot.com/search/label/multiple%20copy to create 3 copies of an invoice from one xml file. But now I need each invoice to have a custom footer ex (Copy 1 - Customer), (Copy 2 - Remit), (Copy 3 - File)
    Any help would greatly appreciated.
    Edited by: defdames on Apr 8, 2010 7:20 AM
    Edited by: defdames on Apr 8, 2010 7:33 AM

    Well change of direction. Since I was not able to figure it out by grouping I went this route, which is close but seems to be off a tad. What I am doing is trying to increase a variable by one every time I create a copy of my invoice as in my syntax here
    <?xdoxslt:set_variable($_XDOCTX,’DUPE’, 0)?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,3,1)?>
    <?xdoxslt:set_variable($_XDOCTX,’DUPE’, xdoxslt:get_variable($_XDOCTX, ‘DUPE’) + 1) ?>
    <?for-each-group@section:/ TMP008/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE/G_INVOICE;G_INVOICE?>
    Then in the footer I have this
    <?choose:?>
    <?when: xdoxslt:get_variable($_XDOCTX,’DUPE’)=”1”?>
    <?call:Footer1?>
    <?end when?>
    <?when: xdoxslt:get_variable($_XDOCTX,’DUPE’)=”2”?>
    <?call:Footer2?>
    <?end when?>
    <?otherwise:?>
    <?call:Footer3?>
    <?end otherwise?>
    <?end choose?>
    What is happening when I preview in PDF is I get Footer3 for the first copy and Footer1 for the next two. I guess what I am looking for is how to use get_variable in the or loop with initiating DUPE back to it's default value
    Thanks in advance

  • Error while deploying, Custom Style Skin in OBIEE 11.1.1.6.7

    Hi,
    I have deployed Custom Style Skin in OBIEE 11.1.1.5 successfuly (with the help of http://www.rittmanmead.com/2010/12/oracle-bi-ee-11g-styles-skins-custom-xml-messages/ ).
    Now when we're moving RPD, Catalog & Custom Style Skin from OBIEE 11.1.1.5 to OBIEE 11.1.1.6.7, I could deploy RPD & Catalog but am not able to deploy Custom Style & Skin Folders.
    If you are aware of the process of deploying Custom Style & Skins (as mentioned in the link above), it requies:
    1. Custom Style & Skins folder to be Deploy using Weblogic Console.
    2. Making necessary changes in instanceconfig.xml (to point to the deployed folder) ---- this is where it's failing.
    When I do add necessary tags ( <URL> & <UI>) in instanceconfig.xml and restart Services. Presentation Services dosen't come up. Error message that is in log file is:
    In element URL: Can not have element children within a simple content.
    unknown element 'UI'
    Element 'UI' is not valid for content model : 'All(URL, SocketTimeoutSec,FileSizeMB)'
    Any pointers?
    Regards,
    Jitendra

    Hi,
    I too faced such issue, actually obiee11.1.1.5 version skin and style wont work in obiee11.1.1.6.0 and above patch ..
    u have do it once again by using obiee11.1.1.6.0 skin (because the 11.1.16.0 has UI and skin different from 11.1.1.5.0 )
    Thanks
    Deva

  • Using If condition in For EACH Group

    Hi all,
    I want to use if condition in for-each-group. Basically my requirement is that i want to use dynamic grouping. There will be two groups and the upper group and lower group will be selected on the basis of a report parameter.
    I hope i made it clear enough. So please help me in this. Any ideas will be highly appreciable.
    Thanks and regards
    Naveed

    You can add a If condition filed after the for-each field
    for EG : <?if:ADDRESS_TYPE = 'Employee Address'?>
    and then add anothet field which has <?end if?>
    Hope this helps.
    Thanks,

  • Fbl5n: The printer provides me only one customer items for each page...

    Hi all,
    launching t.code FBL5N, and printing the repost list, the printer provides me only one customer items for each page...
    I'd like obtaining more customer items for each page...
    What to do?
    Thanks

    Hi Umberto..
    Thats how the standard report works..
    To meet your requirement, you would probably need to look at another standard report.
    In case you need further clarification, please feel free to write to me..
    Good Luck!
    Lucid-Mind...

  • Grouping customers and view customer open items list - Group wise

    Hi.
    I have some requirement from my client.
    He says that he want to view customer open items list group wise.
    In FBL5N we can give the selection of multiple customers. But he wants to group the specific customers and then view the open items for this group.
    For example: Client has 10 customers and out of these customers he wants to select and group 5 customers. And then he want to view open items list for this group.
    Can anyone help me how to group these specific customers in the total customers list. Also request you to provide me the option to view open items for this group of customers.
    Regards,
    Padmavathi

    Hi Padmavathi,
    It is possible. use Worklist for Customers.
    Go to OB55 and define a Worklist for Customers, and mention the list of Customers that you want to see under that Worklist.
    After this, when you to to FBL5N, you will get an option to select Worklist to run the list of open items.. and it would show open items of all customers that you have defined in your worklist.
    Also note that you will have to go to FB00, tab Line Items, and tick Worklists available. This is at User Level, so only that user will be able to see the worklist in his FBL5N transaction code.
    Regards,
    SAPFICO
    Edited by: SAPFICO on Feb 10, 2011 11:43 AM

Maybe you are looking for

  • Using copy and paste in Adobe Bridge 5.0

    When using Adobe Bridge 5.0, and while adding metadata to photos, whenever I use the command control-C to copy and paste metadata entries, my software locks up and I have to reboot.  The last time this happened, I was told to clear my Cache, and that

  • Problem in T-code- MIRO

    Dear Cons      In posting of incoming invoice through T-code- MIRO, we are getting one type of No range series. Let say 11 series. Now we want to bifercate it . that means EXCISE RELATED invoice ( tax code) case the system will generate other no. ran

  • Execute stored-prozedure in sql-statement in jdbc-adapter for sender

    Hello, in the sql-statement i call a stored procedure which makes following: - doing a selcet - update one field - give a recordset back In the update-field i write: But in the adapter monitoring i become a sql-exception: Error: SQLException during q

  • JDBC Scenario with JDBC Lookup and Updates

    Dear Experts, I am working on a JDBC receiver scenario. In this scenario, we are also using JDBC lookup to check the maximum EntyNumber which is a primary key. We are manually incrementing this primary key by one and inserting the record into the dat

  • Can PS Element catalog files .psa be read?

    I have PSE 5.0 and used it to calalog my pics. I like it, but it is so slow on startup so that I thought Album Starter Edition might be good for me to view my pictures. If I try to open the .psa catalog file created with Elements, however, I receive