Column formatting based on grouping data value- advanced data grid

Hello Everyone,
I am using advanced data grid to display hierarchial data nested upto depth 4. I have to color the leaf nodes conditionally based on  the grouped column value.
Say for Eg.,
If the data is something like
Company
     Manager
          Jim          $4000
          John        $3000
     Accountant
          Smith     $2000
          Sam       $3000
I have to color Jim and John based on they being a manager. In other words, how do I get Manager and Company information for the leaf rows. The data is serial to start with and I am grouping it before displaying.
Please let me know how this could be done.
Thanks
Arun

Once htmldb.oracle.com is available again, you may have a look in my demo application:
http://htmldb.oracle.com/pls/otn/f?p=31517:1
In the tab section I, you will find several examples on pop-up pages. There this conditional
displaying is included as well.
Denes Kubicek

Similar Messages

  • Dsiplay data values and data lables in a stacked column chart

    Hi All
    Is there a way to display data values and data labels in a stacked column chart. Mouse over or display of labels in legends wont help. It has to be in the chart .
    Regards,
    anshul

    Hi Anshul,
    You can display either data value or data label in a stacked column chart by checking the Data Label Displaying Mode option under Format Chart->Data Values.
    You can also do the same by checking the same option under Format chart->Area Display->Data Values.
    I dont think you would be able to display both in a column chart whereas you would be able to do it in a pie chart.
    Hope this helps.
    Regards
    Sri Harsha

  • How can I construct a list of text values in Table 2 from text values in Table 1:Column A, based upon a test value in Table 1:Column B?

    I am looking for a way to essentially import a select group of values from one table into another. If, for instance, I have a list of names in Column A and a list of colors in Column B, I would like to be able to compile a list of the names which coincide with each distinct color, and do so in a new table specific to that color. Probably an obvious solution, but I'm a relative newbie with Numbers and my spreadsheet experience is fairly limited so I apologize if this is embarrassingly rudimentary. Thanks in advance for any help you can give.

    You can extract a subset in a separate table by adding a helper index column to your table with the original data and using a formula in the separate table.
    But first, have you tried just using a filter on the table to view a subset of the data?  You would simply filter on a color in your Column B and would immediately see the names specific to that color in Column A.  And you could copy-paste those names elsewhere as needed.  No extra columns. No formulas. No fuss.
    SG

  • Looping thru column names based on a variable value

    I have an ArrayCollection with a series of columns named
    price1, price2... thru to price10
    I'm trying to loop thru these columns based on a variable
    value, but can't figure the syntax:
    for (var column:int = 1; column < 11; column++){
    testPrice = myGrid.selectedItem.price(column); <-- this
    doesn't work
    }

    Try testPrice = myGrid.selectedItem["price" + column];
    Remember to test that selectedItem isn't null before you try
    to assign the values.
    TS

  • Convert Varchar2 datatype Date Value To Date Datatype

    Hello,
    I have a date value like the following as varchar2 datatype.
    31-DEC-10 08.40.53 AMI would like to convert this to_date as date datatype.
    How could I do this?

    Use the right format mask?
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions183.htm#SQLRF06132
    SQL> select to_date('31-DEC-10 08.40.53 AM', 'dd-mon-yy hh.mi.ss am')
      2  from  dual;
    TO_DATE('31-DEC-100
    31-12-2010 08:40:53
    1 row selected.
    SQL> declare
      2    dt date;
      3  begin
      4    dt := to_date('31-DEC-10 08.40.53 AM', 'dd-mon-yy hh.mi.ss am');
      5    dbms_output.put_line(to_char(dt, 'dd-mm-yyyy hh24:mi:ss'));
      6  end;
      7  /
    31-12-2010 08:40:53
    PL/SQL procedure successfully completed.

  • Dynamic Date Value for Date Range Parameter - Scheduling in BI

    Hi,
    I am New to BO Enterprise XI R3. I want to schedule the Crystal report which takes Date Range as parameter. Is any option available to calculate From Date automatically based on Current Date based on the range required?
    Currently, Parameter option accepts parameters and enterprise process the report for configured parameters. In this case, report always prints only for configured date range eventhough report generated after one month. I am expecting report has to print data for date range (eg. 1 weeks, 4 days, or any range) based on system current date.
    Thanks in Advance,
    Venkateswaran.P

    I'm am in the same situation.  I need to be able to have the date parameter dynamically change based on the current day's date when I schedule a report.  However, because this parameter comes from a Stored Procedure from the database, it cannot be modified in the Report Designer (as far as I know).  I've tried to set a default for it to use "currentdate" but it doesn't seem to take.  Anyone know if this can be accomplished in the scheduler?
    Thanks
    -Tom

  • Converting the user response date value to date data type

    Hi,
    I have a parameter which takes date as input (from date and to date).
    I need to get the difference between these two dates.
    So i can use the function todate(userresponsedate,"dd/mm/yyyy")
    but here i cannot hardcode the date format as dd/mm/yyyy.
    Because my reports needs to support to multiple locales and so if i change the browser locale to japanese the input date will appear some thing like yyyy/dd/mm.
    So my function  todate(userresponsedate,"dd/mm/yyyy") is failing over here.Its is giving #error
    Is there any option where it takes the browser locale date format.
    ex: todate(userresponsedate,browserlocaledateformat)
    So that it works irrespective of the browser locale
    Thanks in advance

    HI
    Try to use this formula
    formatdate(todate(userresponse("enter from date");"");"dd/MM/yyyy")
    In the report level you will see only dd/MM/yyyy as string
    Hope this helps u
    sunil

  • 'Merge Data Values' on data manager package

    Hi there
    I have a query with the 'Copy' data manager package.  We are currently selecting 'Merge Data Values' which appears to be finding anything where the key already exists and replacing it with the new data.  That's fine.
    However, our user is wanting to consolidate various different category members into a single category member.  Therefore, we would like to run a package to SUM new values with what is already in the cube rather than first delete and replace with the latest value.
    Is there a way to do this ?
    Thanks
    Ian

    Hi Ian,
    Please read this: BPC 7.5/10.0 : MOVE Data manager Package with keyfigure additions on move
    Or you can use script logic to add values like:
    *REC(EXPRESSION=%VALUE%+[CATEGORY].[DESTINATION],CATEGORY=DESTINATION)
    B.R. Vadim

  • Column hiding based on Dashboard Prompt value in OBIEE 10g

    Hi,
    Can you please let me know, whether there is any possibility of "hiding the column based on the value selected in the Dashboard Prompt".
    Your suggestions are highly appreciated.
    Thanks & Regards
    Siva

    Hi,
    Simple way to solve it.
    Steps
    1.) set presentation variable for each columns of your dashboard prompt
    2.) edit your analysis of table/pivot view ---> colums formate header in this place just keep it your presentation variable values like below
    E.x
    @{ccy}
    Then save it and then test out
    Some more reference:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting
    http://total-bi.com/2011/03/obiee-dynamic-column-headings
    Thanks
    Deva
    Edited by: Devarasu on May 17, 2012 8:32 PM

  • Having numeric columns formatted based on user location

    How can we get the numeric columns to be formatted in local format. If  the same application is accessed in US we want the numbers to be in 1,222,333.44 format and if the application is accessed from say France then we want the numbers to be shown in - 1 222 333,44 format. How cna we specify this in ADF application/JSF page. I tried adding <af:convertNumber> tag to the outputText in columns, but that is not working.
    This is a problem in our application especially when the users are exporting the table results to excel sheet and they are not able to sum the columns as the numbers is shown in US format by default. Users are manually converting to local format and summing the columns. How can we avoid this ?
    I am using JDev - 11.1.2.3
    Any help would be appreciated.
    Thanks

    Set the format of the default language in the Entity of the Model Project, this will add this format into Model.properties
    Create the same file with different suffix based on the locale and country required for example Model_fr.properties for french and change the Number Format.
    When you change the Locale from default to fr the number format will be changed automatically.

  • Advanced Data Grid Column Grouping

    When using column grouping with the advanced data grid, is it
    possible to ONLY show the AdvancedDataGridColumnGroup headerText
    and not have the extra row for the AdvancedDataGridColumn
    headerText? For instance, if a have a set of 3 columns with a
    spanned group headerText of "manage", and the columns have buttons
    with the text "edit", "move" and "delete", can I just omit the
    secondary headings since the "edit|move|delete" text is there on
    the buttons and redundant as a column heading?

    When using column grouping with the advanced data grid, is it
    possible to ONLY show the AdvancedDataGridColumnGroup headerText
    and not have the extra row for the AdvancedDataGridColumn
    headerText? For instance, if a have a set of 3 columns with a
    spanned group headerText of "manage", and the columns have buttons
    with the text "edit", "move" and "delete", can I just omit the
    secondary headings since the "edit|move|delete" text is there on
    the buttons and redundant as a column heading?

  • Column with header data value

    Hi All.
    I have a control file which i need to add a column with header data value.
    example
    data file:
    123456;201303
    santiago;producto1;100
    santiago;producto2;200
    valparais;producto1;400
    valparais;producto3;900
    The control file skip the first column and load the three columns on the table, but, now i need to add other column with 201303 value constant of the first record and load it on the table.
    Then
    select * from table:
    santiago producto1 100 201303
    santiago producto2 200 201303
    valparais producto1 400 201303
    valparais producto3 900 201303
    How i do this in the control file?
    Regards!

    SCOTT@orcl_11gR2> host type test.dat
    123456;201303
    santiago;producto1;100
    santiago;producto2;200
    valparais;producto1;400
    valparais;producto3;900
    SCOTT@orcl_11gR2> host type test1.ctl
    options (load=1)
    load data
    infile test.dat
    replace
    into table onecol_onerow
    fields terminated by ';'
    trailing nullcols
    (filler1 filler, newcol)
    SCOTT@orcl_11gR2> host type test2.ctl
    options (skip=1)
    load data
    infile test.dat
    append
    into table test_tab
    fields terminated by ';'
    trailing nullcols
    (col1, col2, col3,
    newcol expression "(select newcol from onecol_onerow)")
    SCOTT@orcl_11gR2> create table onecol_onerow
      2    (newcol number)
      3  /
    Table created.
    SCOTT@orcl_11gR2> create table test_tab
      2    (col1   varchar2(15),
      3     col2   varchar2(15),
      4     col3   number,
      5     newcol number)
      6  /
    Table created.
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test1.ctl log=test1.log
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon May 6 10:46:44 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Commit point reached - logical record count 1
    SCOTT@orcl_11gR2> select * from onecol_onerow
      2  /
        NEWCOL
        201303
    1 row selected.
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test2.ctl log=test2.log
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon May 6 10:46:45 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Commit point reached - logical record count 4
    SCOTT@orcl_11gR2> select * from test_tab
      2  /
    COL1            COL2                  COL3     NEWCOL
    santiago        producto1              100     201303
    santiago        producto2              200     201303
    valparais       producto1              400     201303
    valparais       producto3              900     201303
    4 rows selected.

  • [Forum FAQ] How do I have Invoke-SqlCmd return a date value without adding time

    Introduction
    A select statement executed from Invoke-SqlCmd returns a value from a Date column, the value has "12:00:00 AM" appended.  The same select statement executed within SQL Server Management Studio displays the date properly without any time formatting.
    Sample data is as follows:
    How to have Invoke-SqlCmd return Date values without adding time for multiple Date type columns and pipe the output into CSV file?
    Solution
    In SQL Server 2012 or onwards, use the FORMAT() function to convert datetime values to date format when executing query from Invoke-SqlCmd. In earlier versions such as SQL Server 2008 R2, use the traditional CONVERT() function to format datetime values to
    different date formats(yyyy.mm.dd, mm/dd/yyyy, etc) when executing query from Invoke-SqlCmd. Then pipe the output of SQL query result into CSV file by specifying export-csv parameter. An example is as follows.
    Create a table named “Test_invokesqlcmd” that contains Date type columns in SQL Server.
    USE Test
    Go
    CREATE TABLE [dbo].[Test_invokesqlcmd](
        [id] [int] NOT NULL,
        [name] [varchar](20) NULL,
        [test1] [date] NULL,
        [test2] [date] NULL
    ) ON [PRIMARY]
    GO
    insert into [dbo].[Test_invokesqlcmd]
    values(1,'David','2014-10-15','2015-01-07'),(2,'Jane','2011-08-05','2012-11-7'),(3,'Crystal','2013-09-15','2010-02-24')
    Define a query string, execute it from Invoke-SqlCmd and save the query result to a CSV file.
    Scripts for SQL Server 2012:
    $query1 = @"
        use Test;
        SELECT FORMAT(test1,'d') as newtest1, FORMAT(test2,'d') as newtest2 from dbo.Test_invokesqlcmd
    write-host $query1
    Invoke-Sqlcmd -Query $query1 -ServerInstance localhost | export-csv -notypeinformation -path c:\Files\test.csv
    Scripts for SQL Server 2008 R2:
    $query2 = @"
        Use Test;
        SELECT CONVERT(varchar, test1, 102) as newtest1,CONVERT(varchar, test2, 102) as newtest2
        FROM dbo. Test_invokesqlcmd
    write-host $query2
    Invoke-Sqlcmd -Query $query2 -ServerInstance localhost | export-csv -notypeinformation -path c:\Files\test.csv
    Check the results in SQL Server PowerShell window and csv file.
    SQL Server 2012:
    SQL Server 2008 R2:
    Reference
    Using the Invoke-Sqlcmd cmdlet
    SQL Server Functions that helps to convert date and time values to and from string literals and other date and time formats
    Applies to
    SQL Server 2014
    SQL Server 2012
    SQL Server 2008 R2
    SQL Server 2008
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Cross posted. More appropriate in JSF forum so continue conversation there.
    http://forum.java.sun.com/thread.jspa?threadID=717292&messageID=4142615#4142615

  • View Panel : Change color of data values in channel table

    Hi,
    Is there a way wherein I can change the color of a particular data value or data block  in a channel in the VIEW panel and can this be done programtically? I am using DIAdem 2010.
    Looking forward for your response
    Thanks in advance
    Priya

    Hi Pria,
    There is no way to change the color of various cells in a VIEW table.  This can be done (for the text color, not the cell background) in a REPORT table with the help of a customer-defined UserCommand.  I can send you an example of this if having the display in REPORT would help.
    If you had a newer version of DIAdem, you could embed a SUDialog in a VIEW area, and this SUDialog could have an XTable control that would enable you to show this type of display-- not easy, and not with DIAdem 10.2, but at least something to consider.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Displaying Date types in the grid control

    I have a grid control and one of the column is displaying
    'Date' type data. I am able to see the Date values in the grid, if
    I define the return type of the getter function as String format.
    But the problem with this is, when I click on the Date column
    header, the grid is sorting the rows while treating the Date values
    as String values. And when I change the return type of the getter
    method as Date type (java.util.Date), I don't see any Date values
    in the grid. Do I need to do any additional coding to display the
    date values as Date types to display the data and then to be able
    to sort the grid on Date types.
    Please help.

    You should return Date values to the Flex application and
    store them in the dataProvider associated with that DataGrid. For
    Date-values you have a couple of choices:
    1. Actually store the time (a long Number - milliseconds
    since Jan 1970) and use a labelFunction on the column to format
    that values as a Date. This way sorting will treat the value as a
    number, but it will appear as a Date.
    2. Write your own Sort compare method for that column. Check
    the docs on Sort and SortField.

Maybe you are looking for

  • Oracle Financial 11.5.10.2 on Windows 2003 Installation Problem

    When I install the Oracle Finanacial the Rapidwiz show the error Oxcf9302f0 referenced memory at Oxcf9302f0. The memory could not be read. and after this the error shown RW-20013: Error: - Not enough free disk space on system: Database ORACLE_HOME =

  • Nested Material Discontinuation and follow-up possible?

    Hello Experts, We have a scenario where we have Material A, Material B, and Material C. We'd like to set to the discontinuation flag on Material A and have it follow-up with Material B. We'd also like to set the discontinuation flag on Material B and

  • How to get input  string with resolved '?' of PreparedStatement?

    Is there a way to retrieve the input string of a PreparedStatement? Example: ps = connection.prepareStatement("update t1 set name=?"); ps.setString(1, "test");Now, can I get the input string "update t1 set name=?" back from the PreparedStatement obje

  • HELP ME TUNING MY DB STRUCTURE

    Hi I need a suggestion. Well, in my db I have types STUDENT, TEACHER and THESIS(final exam). Teacher and student are subtypes of PERSON, and I have a table USERS of PERSON, and a table EXAMS of THESIS. A teacher is a tutor for many students, so each

  • Using Iphone 4 from USA in Ireland

    Hi, my husband bought an Iphone 4 when he worked in New-York, but we live now in Ireland and I can't use it because it's locked. How can I do ??