Hgrid amount format based on the currency column

Hello

I am trying to format columns hGrid based on the currency amount. I checked the old nets and tried, but it did not work. I do not know which API to use to get the item correctly format. All ideas are welcome.

Thank you

Alka

Hi AlkaT,

What exactly are you trying to achieve? you try to format a NUMBER type item in the currency of the system? If so the bottom of piece of code should work fine, just put in your controller processRequest() method:

{} public processRequest Sub (pageContext OAPageContext, OAWebBean webBean)
...
OAMessageStyledTextBean currencyField = (OAMessageStyledTextBean) webBean.findIndexedChildRecursive ("CurrencyFieldItem");
currencyField.setAttributeValue (CURRENCY_CODE, "AUD"); / * Replace the currency of your country instead of AUD * /.
...
}

Concerning

Brad

Tags: Oracle Applications

Similar Questions

  • The line formatting based on the value of a column

    Hi friends

    I'm trying to format the entire row based on the value of the first column in my answers.

    Example, if the first value of column 'F' now, I want the row to be colorful

    I can do a conditional formatting on a column, but I want to do down the line

    F 8.1% 12.0%
    ------------------------------------------
    E 5.2% 3.5%
    ------------------------------------------
    M 2.3% 3.3%
    ------------------------------------------


    If one has done this or suggestions please answer

    Thank you
    Sang A

    Well, the conditional formatting can be done in PivotTables until the next version, 11g. In the meantime, you two options:

    (1) http://gerardnico.com/weblog/2009/04/06/obiee-cross-conditional-formatting-on-a-pivot/

    (2) http://oraclebizint.wordpress.com/2008/04/29/oracle-bi-ee-101332-conditional-formatting-based-on-multiple-character-columns-in-a-pivot-table/

    (3) you can use your custom column filter functionality to get your ' sales in year 20xx "and a presentation to make this dynamic variable. So you can declare an array and use the method I described above.

    filters on columns

    Good luck.

  • Rows based on the timestamp column

    Hi Experts

    I'm trying to get the last 3 records based on the timestamp column. But I am not able to understand where I should start... ?

    To make it more clear

    I have the following data
    id date
    1  07/03/09 3:57:55.000000 PM
    2  08/03/09 9:23:55.000000 PM
    3  05/03/09 7:53:55.000000 PM
    4  08/03/09 5:41:55.000000 PM
    5  06/03/09 8:50:55.000000 PM
    I want to
    2  08/03/09 9:23:55.000000 PM
    4  08/03/09 5:41:55.000000 PM
    1  07/03/09 3:57:55.000000 PM
    Thanks and greetings
    Saurabh Sharma
    select *
      from (
    select *
      from x
     order by dt desc
     )
      where rownum <= 3
    

    Published by: Alex Nuijten on March 10, 2009 11:31

  • Need to display negative amounts, amounts positive based on the value of the parameter.

    Hi all

    I have a requirement in rdf as follows:

    I have two or three lines of the SELECT statement. An amount column having both negative and and postivie values.

    Based on the value of the parameter I need to take these records.

    Say, if the value of the parameter = "Credit amount", then I have to choose the records, the amount column value is negative.

    If the value of the parameter = "Debit amounts" then I have to choose the records, which the column value is positive.

    If the parameter Value = "All", then I must take all records, including both positive and negative.

    Please suggest how to achieve this scenario.

    Thank you
    Abdul

    In your where clause to add the following
    and ((& paramètre = "Débit" et montant > 0) or)
    (& parameter = 'Crédit' and the amount<0)>
    (& parameter = 'All'))

    Hope that answers your question
    Sandeep Gandhi
    Independent consultant
    513-325-9026.

  • Interactive report based on the hidden column cell color

    Hello

    APEX 5.0.1 used here.

    How can I set the color of a specific cell (or column) based on a hidden column?

    Seems the link that I can't use the built-in feature because I need the custom color returned by my request.

    I tried to set the color with javascript by iterate over each line, by taking the value. text() of the color column and value

    This color-specific cell. It works, but it requires the column is visible.

    A column containing a hexadecimal value of the color does not look good...

    I tried to hide / display: no column complete but this messes up the layout.

    THX

    the force says:

    APEX 5.0.1 used here.

    How can I set the color of a specific cell (or column) based on a hidden column?

    Seems the link that I can't use the built-in feature because I need the custom color returned by my request.

    I tried to set the color with javascript by iterate over each line, by taking the value. text() of the color column and value

    This color-specific cell. It works, but it requires the column is visible.

    A column containing a hexadecimal value of the color does not look good...

    I tried to hide / display: no column complete but this messes up the layout.

    Specify the color of cell required using the hidden column and a data attribute to the property Expression of HTML in the column:

    #VISIBLE_COLUMN_ALIAS#

    Apply a static ID of the visible column to serve as a selector, jQuery, and you can access the invisible color value in your JS code in dynamic action to run the JavaScript Code using the dataset property.

  • Help - Tuning query based on the status column

    Hello
    I have a query in which I need to fetch records based on values in the status column. It can contain the values 'A' and 'P '. A record can have an "A" record and a record of 'P '. My conditions are,
    (1) when it is only 'A' record, can return 'A' record.
    (2) for the 'A' and 'P' folder is there, then return 'A' record.
    (3) when 'P' registration is only, then return 'P' registration.
    There are about 3 records 'A' Lake and 3K 'P '. I tried to use 'by' clause queries, but performance are too bad and I am not able to use it. When running as independent queries 'A' retrieval of documents is faster compared to the records of 'P '. When running in 'by' clause of the query is suspended. Please can anyone help how can be managed?

    Due to restrictions, I won't be able to view the actual code. I post here a sample.

    Example code:
    WITH q1 AS
         (SELECT *
            FROM tab
           WHERE status = 'A'),
         q2 AS
         (SELECT *
            FROM tab
           WHERE status = 'P'),
         q3 AS
         (SELECT *
            FROM q1
          UNION ALL
          (SELECT *
             FROM q2
            WHERE NOT EXISTS (SELECT 1
                                FROM q1)))
    SELECT *
      FROM q3
     WHERE ROWNUM < 501;
    Thank you
    Kadoch

    One way is to use analytics like this:

    SELECT *
    FROM (SELECT t.*, ROW_NUMBER() OVER (PARTITION BY 
                                         ORDER BY t.status) rn
          FROM tab t
          WHERE t.status IN ('A', 'P'))
    WHERE rn = 1
    

    John

  • Delete based on the first column or column second row

    Dear members,

    Need to remove a MasterTable lines based on the value in an another RefTable (which is a subset of the main table) colA or ColB.

    / * Value refTable wedges designed to be
    create table RefTable (int num1, num2 int, int temp)

    Insert in the values of numbers (44445, 44444 11111)
    Insert in the values of numbers (44446, 44444 11111)
    Insert in the values of numbers (44447, 44444 11111)

    Insert in the values of numbers (55555, 55551, 11111)
    Insert in the values of numbers (55555, 55552, 11111)
    Insert in the values of numbers (55555, 55553, 11111)

    Insert in the values of numbers (22222, 22222 11111)
    Insert in the values of numbers (22222, 22222 11111)

    Suppose that MasterTable has given below
    create table MasterTable (int num1, num2 int, int temp)
    Insert in the values of numbers (22222, 22222 11111)
    Insert in the values of numbers (22222, 22222 11111)
    Insert in the values of numbers (22222, 22222 11111)

    Insert in the values of numbers (44444, 44444 11111)
    Insert in the values of numbers (44445, 44444 11111)
    Insert in the values of numbers (44446, 44444 11111)
    Insert in the values of numbers (44447, 44444 11111)

    Insert in the values of numbers (55555, 55551, 11111)
    Insert in the values of numbers (55555, 55552, 11111)
    Insert in the values of numbers (55555, 55553, 11111)
    Insert in the values of numbers (55555, 55554, 11111)

    insert into numbers values (4567, 12345, 11111)
    insert into numbers values (5678, 23456, 11111)

    The query should execute delete on MasterTable RefTable value-based to get the result that

    4567 11111-12345-
    5678 23456-11111.

    I tried to change the query something like
    delete of the MasterTable where num1 = any (select num1 of RefTable); but it can only manage the deletion of the colA part... Any suggestions
    Is this ?
    
    DELETE
    FROM
         MasterTable mt
    WHERE
         EXISTS
         (
              SELECT
                   1
              FROM
                   RefTable rt
              WHERE
                   rt.num1 = mt.num1
                     OR
                            rt.num2 = mt.num2
         )
     
    
  • How do I format based on the value of the @status attribute?

    Example: I use the @status attribute to indicate that a step in a procedure is new or a paragraph in a new concept.

    For review purposes, I want to format new text in Green - Green preference the highlight, but the green text will do.

    Example: I use the @status attribute to indicate that a step in a procedure has been deleted or that a paragraph in a concept has been removed.

    For review purposes, I want to format new text as a bar.

    Is this possible? If Yes, where can I configure the formatting in attribute values?

    Thanks in advance.

    Marsha

    Hi Marsha,

    If you want the formatting to be "locked in", which is led by ESD, then advice from Lynne is the way to go. If instead, there would be enough temporarily color the items you want as a substitute format, you can use the AXCM plugin:

    http://www.weststreetconsulting.com/WSC_AXCM.htm

    This plugin can do any character coloring, bar, etc., based on attribute values and other markup. Colouring is applied as an alternative format and removed easily by a refresh of the ESD. The characteristics of color were mainly intended for purposes of conditional text, but it would work in this case too.

    AXCM is totally free. Warning... I am owner of West Street Consulting and this plugin.

    Russ

  • Amount / Format on APEX_ITEM. TEXT columns

    Hello! I have two questions:
    In apex 3.2, on a report updated, I use APEX_ITEM. TEXT of a column.

    (1) the data in this cell are hours (so digital and the sum should work). I am not able to get a sum on this column. I'm checking the field "sum" in the report attributes. All can see is the last line with "0" in it.
    Anyone has an idea on how to have the sum on this column?

    (2) how can I have a format on the APEX_ITEM. Column of TEXT? I tried to put 90 d 0 in the format number/date but it does nothing.

    Thank you!

    Amélie

    Published by: user13485643 on February 8, 2011 12:30

    You will need to load the jQuery libraries.

    Put this in your page header:

    Or download the library and place it where you want.

    If/when you go to 4.0, you can remove this line.

  • Conditional formatting based on the other content of the cell

    Hello

    I watched tutorials and read other messages of conditional formatting. What I'm trying to do doesn't seem like it should be too difficult, but I can't it to work.

    I created a spreadsheet of travel and I would that my cells spend every day to highlight when I went on the budget (budget in another table on another sheet)

    My conditional formatting looks like this

    Who works for the first cell that I put it to the top for the table. If I try to drag the rules to the bottom of the table, or highlight the entire table and and my rule number 1 shows what

    and of course, it will not highlight.

    This is an excerpt from the table, on that I try to apply highlighting

    And that is the picture that source information.

    I use a macbook pro under OS X El Capitan 10.11.1 and numbers 3.6.1 (2566)

    Thanks in advance for any help!

    Hello

    It's looks you're new to spreadsheets... you must add a dollar sign in front of "The rest of the budget per day" (your 1st image), or check the 2 boxes like this:

    To understand: http://www.notjustnumbers.co.uk/2011/05/excel-tip-dollar-sign-in-formula-fixing. html

    See you soon

    James

  • Formatting based on the Dates and months - need help

    Hello

    I have a requirement where I need to show the month wise County program for a given year.

    I wrote the following query:
    Select to_char(created_date,'YYYY') Year, to_char(created_date,'MON') Month, count (*) programs MGP
    Group by to_char(created_date,'YYYY') order, to_char (created_date, 'MY') of 1.

    And the output of the above query is:

    YEAR MY EGP
    ---- --- ----------
    1 APR 2008
    2 DEC 2010
    3 NOV 2010
    3 OCT 2010
    3 SEP 2010
    AUGUST 1, 2011
    6 FEB 2011
    JANUARY 3, 2011
    5 JUL 2011
    JUNE 4, 2011
    2 MAR 2011

    But I want the output in a way well formatted as:

    Year Jan Feb Mar Apr May June July Aug 7 Oct Nov Dec
    2008 0 0 0 1 0 0 0 0 0 0 0 0
    2010 0 0 0 0 0 0 0 0 3 3 3 2
    2011 3 6 2 0 0 4 5 1 0 0 0 0

    How can I get it?

    Thanks in advance.

    Ouali
    select  to_char(created_mm,'YYYY') Year,
            sum(
                case to_char(created_mm,'MON') = 'JAN'
                  when 1 then 1
                  else 0
                end
               ) jan,
            sum(
                case to_char(created_mm,'MON') = 'FEB'
                  when 1 then 1
                  else 0
                end
               ) feb,
            sum(
                case to_char(created_mm,'MON') = 'MAR'
                  when 1 then 1
                  else 0
                end
               ) mar,
            sum(
                case to_char(created_mm,'MON') = 'APR'
                  when 1 then 1
                  else 0
                end
               ) apr,
            sum(
                case to_char(created_mm,'MON') = 'MAY'
                  when 1 then 1
                  else 0
                end
               ) may,
            sum(
                case to_char(created_mm,'MON') = 'JUN'
                  when 1 then 1
                  else 0
                end
               ) jun,
            sum(
                case to_char(created_mm,'MON') = 'JUL'
                  when 1 then 1
                  else 0
                end
               ) jul,
            sum(
                case to_char(created_mm,'MON') = 'AUG'
                  when 1 then 1
                  else 0
                end
               ) aug,
            sum(
                case to_char(created_mm,'MON') = 'SEP'
                  when 1 then 1
                  else 0
                end
               ) sep,
            sum(
                case to_char(created_mm,'MON') = 'OCT'
                  when 1 then 1
                  else 0
                end
               ) oct,
            sum(
                case to_char(created_mm,'MON') = 'NOV'
                  when 1 then 1
                  else 0
                end
               ) nov,
            sum(
                case to_char(created_mm,'MON') = 'DEC'
                  when 1 then 1
                  else 0
                end
               ) dec
      from  programs
      group by to_char(created_mm,'YYYY')
      order by 1
    /
    

    SY.

    Published by: Solomon Yakobson August 2, 2011 07:29

  • doc XML format based on the values in a different xml doc

    Version of database: Oracle 10 g

    I have a file of XML "data" and an associated error file which is also XML. I want to take the data XML file and highlight visually in an html file only tag fields and content that are there in the file 'error.


    There are many fields in the data file, so the error could be just about anywhere. Can someone please tell me what I should read or give me advice on how should I proceed?

    I built a style sheet for the file "data" - but of course it's static. I need 2 style sheets and apply both somehow? I also thought that I use the "error" xml doc and simply rewrite the nodes of the error in the "data" file and then use the stylesheet to annotate the data file based on what I'm rewriting.
    for example
    If the data are
    < Field1 > content field 1 < / field1 >

    and the error file Field1 in there, I would like to rewrite the data file to have say < error > content field 1 < / error > and just mark the <>error using the style sheet. Is this a reasonable solution? Even then I need help on the actual xml/sql functions, I need to rewrite the xml data.


    I am a beginner in this rank and I apologize - what seems such a newbie question that must have been asked before - I wish just that I could find it in the forum.


    Thank you!

    Published by: user13112667 on October 15, 2010 12:38

    A small improvement on the method of the XSLT.

    For faster access, we can define a key on the couple ": segment element" of the list of errors, for example:

    
    
    
    
     
      
       
       
       
    err
  • calculate the amount of nodes in the XMLTYPE column

    I'm in ORACLE 10 g 10.2.0.4.0

    There is a table BOOK)
    ID NUMBER (10.0).
    XML_COLUMN XMLTYPE)

    XML_COLUMN looks like

    < Book bookCode = Classtest "ae1" = "0" title = "MasteringChemistry for 1st Averill/Eldredge" >
    < description / >
    < sectionTierLabels >
    < sectionTier label = "Left" >
    < sectionTier label = "Chapter1" >
    < sectionTier label = "Chapter 2" >
    .
    .
    .
    < sectionTier label = "Section" / >
    < / sectionTier >
    < / sectionTier >
    < / sectionTierLabels >
    < / book >

    Different records has a different number of chapters.

    I should get a result like

    Label sectionTier BOOKID
    1234 1 part
    1234 2 Chapter 1
    1234 3 Chapter 2
    1234 section 4
    1111 1 part
    1111 2 Chapter 1
    1111 3 Chapter 2
    4 1111 Chapter 3
    1111 section 5

    No idea how to do it?

    Thank you
    Julia

    Published by: 795070 on Sep 17, 2010 11:33

    Published by: 795070 on Sep 17, 2010 11:49

    Published by: 795070 on Sep 17, 2010 12:08

    Hello

    Strange structure for your XML data, are really nested elements sectionTier or is it a mistake?
    If the first case, try the following:

    SELECT b.bookid, x.*
    FROM book b,
         XMLTable(
          '/book/sectionTierLabels//sectionTier'
          passing b.xml_column
          columns
           sectionTier for ordinality,
           label       varchar2(30) path '@label'
         ) x
    ;
    
  • Select single dataset in several sets of data based on the priority column

    Excuse me if a similar question has been answered before. I don't seem to find the correct search terms to find the solution.

    On the question - I have the following data:
    +---ItemID---+---ItemName----------------------+---CompanyID---+
    |    1001    | Item  1001                      |       1       |
    |    1001    | Tuote 1001                      |       2       |
    |    1001    | Artikel 1001                    |       3       |
    |    1002    | Item  1002                      |       1       |
    |    1002    | Artikel 1002                    |       3       |
    |    1150    | Tuote 1150                      |       2       |
    |    2000    | Item  2000                      |       1       |
    |    2000    | Tuote 2000                      |       2       |
    |    2222    | Tuote 2222                      |       2       |
    |    2222    | Artikel 2222                    |       3       |
    +------------+---------------------------------+---------------+
    with t as (
            select 1001 ItemID, 'Item  1001' ItemName, 1 CompanyID from dual union all
            select 1001,    'Tuote 1001',   2 from dual union all
            select 1001,    'Artikel 1001', 3 from dual union all
            select 1002,    'Item  1002',   1 from dual union all
            select 1002,    'Artikel 1002', 3 from dual union all
            select 1150,    'Tuote 1150',   2 from dual union all
            select 2000,    'Item  2000',   1 from dual union all
            select 2000,    'Tuote 2000',   2 from dual union all
            select 2222,    'Tuote 2222',   2 from dual union all
            select 2222,    'Artikel 2222', 3 from dual
        )
    select
        *
    from
        t
    As you can see, not all companies contain the same elements. I would need to get a list that contains each itemid only once, and element name (and other non-visible areas in the example) the first company in which the item is found. CompanyID 1, 3 and finally 2 would be a priority. Thus, the example above would result in the following list:
    +---ItemID---+---ItemName----------------------+---CompanyID---+
    |    1001    | Item  1001                      |       1       |
    |    1002    | Item  1002                      |       1       |
    |    1150    | Tuote 1150                      |       2       |
    |    2000    | Item  2000                      |       1       |
    |    2222    | Artikel 2222                    |       3       |
    +------------+---------------------------------+---------------+

    Hello

    This is called a Query Top - N , and this is a way to do it:

    WITH     got_r_num   AS
    (
         SELECT     ItemID, ItemName, CompanyID
         ,     ROW_NUMBER () OVER ( PARTITION BY  ItemID
                                   ORDER BY          CASE  CompanyID
                                                   WHEN  1  THEN  1
                                        WHEN  3  THEN  2
                                        WHEN  2  THEN  3
                                             END
                                 ) AS r_num
         FROM    t
    --     WHERE     ...     -- Any filtering goes here
    )
    SELECT     ItemID, ItemName, CompanyID
    FROM     got_r_num
    WHERE     r_num     = 1
    ;
    

    The tricky part here is to get an expression that will sort the CompanIDs in the order where you want them (3 comes before 2). If this order applies to other queries outside of it, then you really shouldn't hardcode into any question. Instead, add a column to the table of society (or create a society, if you do not already have a), which indicates the sort order and join to that table.

    The overall functionality of DUNGEON (DENSE_RANK...) could also be used to achieve these results, but you mentioned that there are "other fields not visible in the example", which means that you would probably use a phrase quite complicated for each of them. The above query is easily extended. Add any columns you want both SELECT clauses.

    Published by: Frank Kulash, June 21, 2010 16:41

  • DataGrid: data based on the datagrid column headers

    I have a datagrid I want to fill the headers of datagridcolumn with specific data during execution.

    I'm going through the array of data objects and the creation of each column, but I still need to figure out how to set the header for each of them. I tried to set the itemRenderer for the column of a component simple lable, but then I don't know how to set the text of this label on the name to say correct datadriven of objects field.

    Any help would be greatly appreciated,
    Ruben

    I figured this out. Essentially before defining the its you get your component and wrap around a ClassFactory object and then set the property that you want to appear in the header. You can do this in a loop and change the header you go. Here's some code that could go in a loop:

    var lblFact:ClassFactory = new ClassFactory (Label);
    lblFact.properties = {text: "changing text data"};
    dgColumn.headerRenderer = lblFact;

    Maybe this will help someone later.

Maybe you are looking for

  • DVD/CD drive does not work on the Satellite L series

    My dvd player was working fine now, it is not on my computer.I can not restore from the product disc, such that he won read any type of dvd or cd disc.Can you help me?

  • Menu of startup appears but does nothing

    I have a desktop HP 110-210. I'm trying to boot into the BIOS. I hit Esc repeatedly receive cycle power and get the menu starting with F1 = Sysinfo,...  F10 = BIOS, etc., but the computer ignores all every F button I press. Boots of Ctrl-Alt-Del for

  • The field for local network IPs access permissions

    Is an error or a restriction of the service if I have added ' * ' to avoid restrictions on access area on my app it works only on public IP addresses and is not with local network IPs? (ie. my phone WiFi 192.16.1.116 and trying to access information

  • XP antivirus removal

    I had xp antivirus pop up on my computer and it won't go away.  I need help with the removal of this program because it will not go away simply by going into Control Panel and ad / remove programs.  Any help will be greatly appreciated.  This is my f

  • How to change language to enter my code?

    fields of dir, I want to put the input language, and a specific, what class, I can use? for example, at the start of my application, I want to put the input in English (United States) language, can anyone help me?