Setting dynamic in tabular form background color.

Hello

I am JP and just starting to learn the APEX.

I know that, in giving the attributes of the element a value such as

style = "" background-color: #6495ed; ""

Can I change the background color.

But it's just static, I want to change it dynamically based on values in the database.

In the view that is the Source for this tabular form, I have a field that returns values as above = COLOR style...
But the APEX will not interpret it.

(I've created some interfaces in MS Access in the past, and it was a breeze with conditional formatting).

Who can help out me?

Hello

You assign in the hexadecimal code of the hidden input tag color statement.
F01 is this tag input name attribute value.

You must check your HTML source of the page and find the input tag that keeps the color and change to that value of name tag JavaScript attribute entry.

Kind regards
Jari

Tags: Database

Similar Questions

  • Table background color forms valdiation notification field

    Hello

    normally when you use validation forms tabular for the APEX 4. If the validation is triggered then an error occurs and the corresponding field becomes a red background color. I got a costumer where this has not happened. Only the validation error occurred.

    Where can I configure the notification against a tabular form background color. Could not find anything in the models, the report attributes, the attributes of the element or elsewhere.

    Hope for help. My question. Determines the background color in the postings in a table?

    Best regards

    Tobias
    -------------------------------
    http://Apex-at-work.blogspot.com/

    Tobias,

    Create your own class css as follows:

      
    

    Key word is *! important *!

    Here is the explanation:
    http://webdesign.about.com/od/CSS/f/blcssfaqimportn.htm

    Best regards
    Marko

    Published by: Marko Goricki, February 11, 2011 11:12

    Published by: Marko Goricki, February 11, 2011 11:14

  • Tabular form using dynamic Action set

    I have a tabular presentation created using APEX_ITEM.

    That is to say. APEX_ITEM. SELECT_LIST_FROM_LOV(3,NVL(D.FK_ATTENDANCE_CODE,'%null%')

    I want to use a dynamic Action to set the value based on the value of a hidden page element.
    I created a Page element 'P1358_HOLD_ATTENDANCE_CODE', and I can see he's up to the correct value.

    I tried to create a dynamic Action (run Javascript) to set the form of tab selection list item (f03), but it does not work.

    Here is what I tried:

    var line = $x_UpTill (this.triggeringElement, 'TR');
    var otherElement = $(' input [nom = "f03"]', ligne) [0];
    otherElement.value = $x('P1358_HOLD_ATTENDANCE_CODE').value;

    Any ideas?
    I know, as a backup, I could put the ID = when creating elements in a tabular form so that all the lines are different, but I hope that the JQuery can do it more easily.
    Thank you

    Did change selection that I said fix the prob?

    If this isn't the case, him DA is without a doubt was fired at your event?

  • helps with the update of tabular form using dynamic Action

    Hello world

    I'm trying to simplify a tabular presentation based on a collection so that it uses more dynamic actions that will be ultimately more easy for us to debug.

    Our tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    c003,
    c004,
    c005,
    c006,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
     
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
     decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    c014,
    c015,
    c016,
    c017 additional_measure_flag,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 fins_attached,
    apex_item.textarea(28,c028,3,null,'class="hms_info"','f28_'||seq_id,'') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','class="hms_info"''onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    c030,
    c031,
    c032,
    c033,
    c034,
    c035,
    c036,
    c037,
    c038,
    c039,
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;" class="hms_info"
    ',null,null,null,'f40_'||seq_id,'')  HMS_AREA_CODE,
    c020 hms_flag,
    apex_item.text(41,TO_NUMBER(c041),5,null, 'class="hms_info"','f41_'||seq_id,'') Sale_Price,
    c042,
    c043,
    c044,
    c050 shark_flag
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id 
    

    Note that many of the fields referenced are c0xx... and really serve as place holders so that the c0xx = fxx.  It's awkward, like every time that a movement or move a column, it upsets the fxx value.   So, I tried to use the CLASS if possible.

    I have a dynamic action that had worked perfectly, until I moved one of the columns... and now, it seems not to work when I'm trying to update anything with the HMS_INFO or SHARK_INFO class.  Grrr.

    dynamic action: CHANGE COLUMN

    event: CHANGE

    selection type: JQUERY SELECTOR

    jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], input [name = "f24"], textarea [name = "f28"], select [name = "f40"], input [name = "f41"]

    true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id

    true action2: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value

    true action3: run pl/sql,.

    declare
      v_attr number;
      v_seq number;
    begin 
      v_attr := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
     
      safis_collections.update_column(v_seq,
                                      v_attr,
                                      :p110_value);
    end;
    

    the safis_collections.update_column package is:

    procedure update_column(v_seq in varchar2,
                            v_attr in number,
                            v_value in varchar2)
    is
    begin
       apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
                         p_seq => v_seq,
                         p_attr_number => v_attr,
                         p_attr_value  => v_value);
    apex_debug.message('updated column. seq='||v_seq||' attribute='||v_attr||' with '||v_value);
    
    end;
    

    I wonder if there is a way to make the CLASS in my JQUERY SELECTOR, so something like reference entry [class = "HMS_INFO"], input [CLASS = "shark_info"]... and if so, what happens if a single item in the class is an option button and the other is a selection list and the other an element?

    is it possible to not have to rely on the fxx.  Currently, my collection columns map to the investment in the form of tables... sense, c024 = f24... because I placed c024 to be the 24th editable column, but this seems crazy.  Is there a simpler way?  I'm just learning class, then maybe there is something extra, or rather that I could use...

    any help is appreciated.   Thank you!

    I think I have solved the problem.

    dynamic action: CHANGE COLUMN

    event: CHANGE

    selection type: JQUERY SELECTOR

    jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], .shark_info, .hms_info

    true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id P110_VALUE POINT KEYS

    true action2: run pl/sql code

    begin
    null;
    end;
    

    items to submit page: P110_ID

    true action3: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value P110_VALUE POINT KEYS

    true Action4: value: PL/SQL expression, the value P110_SEQ = rtrim (substr(:P110_ID,5,4),'0 ') CONCERNED POINT: P110_SEQ

    true Action5: run pl/sql code

    declare
    
      v_attr number;
    
    begin
      v_attr := TO_NUMBER (SUBSTR (:P110_id, 2, 2));
    
      apex_collection.update_member_attribute
                       (p_collection_name      => 'SPECIES_COLLECTION',
                        p_seq                  => :P110_SEQ,
                        p_attr_number          => v_attr,
                        p_attr_value           => :P110_VALUE);
    
    end;
    

    items to submit page: P110_ID, P110_VALUE, P110_SEQ

    true action6: refreshment area

    I think it is the combination of the use of pl/sql expression to calculate P110_SEQ and also your tip on TRUE ACTION2 to submit the item that did the trick.

    Thanks Kofi, for your patience and help!  It was great.

    Ugh... on the next issue.

    Karen

  • Set the background color of the screen?

    someone knows how to set the background color for a screen?

    Also see this article.

    How - to change the background color of a form

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800256/...

    Concerning

    Bika

  • Setting the background color of the line according to a column value

    Hello

    in a classic report, I want to change the record to the red background color if the value of a specific column is 'NO' in the folder. Please help me.

    Apex 4.1
    RDBMS 11.2

    Thanks in advance
    lukx

    Hello

    Use custom report template. This post might help
    Re: Highlight a line in a tabular form, based on a column in the row

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • Can simple Question - I do the colors change in tabular form

    Can simple Question - I do the colors change in tabular form.
    How can I change the colors, green, white alternating on tables?

    Doug,

    Here's some javascript that I use for tables/reports of Ray...
    Don't forget to replace "t15" with your model references.

    
    
    
    
    Also, if you go edit the report template > Column Templates > Column Template 1 > You can set the condition to even/odd rows and then add in your own html/css..
    
    
    #COLUMN_VALUE#
    
     -Chris
    
  • Just upgraded to 42.0 Firefox and background color setting doesn't work anymore - an empty window is always white.

    I just upgraded to Firefox 42.0 and, unlike previous versions, the setting of background color in 'Content' no longer works. In the settings page, the indicator 'Background colour' changes the color I choose (not white) in the choice of color theme, but each time I open an empty window background color is always white. Then, when I return to the Setup page to verify that the indicator still shows the color that I chose. And I have check the box 'Use the system color' or not there are tick, the result remains the same: the background color of an empty window is always white.

    It is a problem I've never met before. I would like to know why.

    Thanks for any help.

    You can make only one rule:

    @-moz-document url(about:blank), url(about:newtab){ html,body {background-color: #ccc !important } }
  • How can I set the background color for a photo book to be between photos as well as on the perimeter?

    I am trying to create a book in iPhoto. I can set the background color, but it doesn't seem to work between photos that appears white by default. How can I make the background color of work between photos?

    You can not

    but to see exactly what you always get an overview of your book before ordering

    LN

  • is it possible to set the background color of a table or chart to be transparent?

    is it possible to set the background color of a table or chart to be transparent?

    Thank you

    Yes.

    Select tools palette (view > tool palette) and set the background of the graph as well as the control in transperent.

  • keyFocus research set the Boolean background color

    I searched "ctl class [] colors property" before posting.

    I changed the background colors Boolean by their properties [] of different colors, but I was wondering if there is a way to scan the controls [] refnums and set background colors based on the main orientation for the true/false.

    See the code snippet. I don't see a property of background colors in the ctl class. Is there another under "ctl" class that allows you to set Boolean [] property colors?

    Thank you

    There is no property to the control level.  You will need to cast to a more specific 'Boolean' to get the property.  However, you will have to do in a case because it will error if the control is everything except Boolean.

  • How to set the background color for the Webworks Menu?

    Hi all

    I have developed a web application that uses the emulator to ripple and Blackberry Webworks SDK 2.3.1.5.In I added the Menu items on the Blackberry Menu button... It works well... It contains the background color by default for Menu (Black)... Here, I want to change the background color of the Menu... Please help me to change the background color... Thank you very much..

    With respect,

    Marimuthu_P

    I don't think that this is possible.  The WebWorks API allows you to add menu items to your application does not provide the ability to change the background color by default of the menu.

    This API is actually an extension of Java built into the SDK WebWorks.  The source code because it's open source, available here: https://github.com/blackberry/WebWorks/tree/master/api/menu/src/main/java/blackberry/ui/menu

    It is based on the Java class "MenuItem", which as you can see it does not provide methods or properties to set the color:

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/UI/MenuItem.html

  • How to set the background color of an application in bbui.js?

    How can I set the background color of an application that uses the bbui.js?

    his does not work just to put a:

    body {
        background-color: #000000;
    }
    

    It is even easier than... just create the style or the class on your screen

  • Setting the background color of the screen

    Hai...

    When my application running in the Simulator, it shows only a small portion with the bgcolor that I gave in the html file. I think that the bgcolor simply encapsulates html content. So, what should I do to view the entire screen with the bgcolor.

    The problem is that in WebWorks (which uses a control called BrowserField) to view the content, the size of the display of web pages grows to the size of the content in your HTML code.

    So if height of your HTML below the screen, it will show the background color of the screen.

    To change this, you can set the window of the display using tags or set the height of the body to the size of the screen.

  • How can set the background color of the status bar?

    Quote from the old forum:

    Comments: comments
    How can set the background color of the status bar?
    Posted the: July 17, 2008 02:56
     
    How can set the background color of the status bar?
    Using this code for the status bar:
    LabelField statusField = new LabelField ("Good Morning", LabelField.USE_ALL_WIDTH |) LabelField.NON_FOCUSABLE | LabelField.HCENTER)
    {
    int _backgroundColour = Color.LIGHTGREEN;
    public void paint (Graphics g)
    {
    g.setBackgroundColor (Color.RED);
    g.Clear ();
    Super.Paint (g);
    }
    };

    Font defaultfont = Font.getDefault ();
    Police smallfont = defaultfont.derive (Font.PLAIN, 12);

    statusField.setFont (smallfont);
    setStatus (statusField);

    When I ran the code you have above, my status background color was red.  Is not what you see?  If so, please provide the BlackBerry model and software version that you are testing.  You can find this under Options.

    Or if you try to do something else, please provide details.

    I tested this in the BlackBerry Simulator included with version 4.5.0 BlackBerry JDE (4.5.0.44).

    To do this in version 4.1, first call getColor and save the current color.  Then call setColor, setting the color to the color you want to use for the background.  After this call call fillRect, starting with 0, 0 and go to the size of the field (use this.getWidth () and this.getHeight () to get this).  This must fill in the field with your specified color.

    To allow the drawing of the default content of the field call setColor once again, passing in the original color, then call super.paint.

Maybe you are looking for