Dynamic background color

Hi,
I am trying to show a color strip. Color is stored as text (yellow,green etc..) in table.
When the select list is submitted the color should change.
I have created an item "Display as Text". I am setting
"HTML Table Cell Attributes" to bgcolor= :#P66_COLOR#
P66_COLOR is text item on this page which stores the color. This is not working. Any ideas??
thanks

Hi,
I am trying to show a color strip. Color is stored as text (yellow,green etc..) in table.
When the select list is submitted the color should change.
I have created an item "Display as Text". I am setting
"HTML Table Cell Attributes" to bgcolor= :#P66_COLOR#
P66_COLOR is text item on this page which stores the color. This is not working. Any ideas??
thanks

Similar Messages

  • Dynamically Set Subreport Background Color to the Same Value as Main Report Background Color

    I have a report that contains a subreport.  The main report has groupings in it.  I am dynamically setting the background color of the group rows based on an expression.  That part is working fine.  The problem that I am having is that
    I don't know how to get the subreport to "inherit" the background color of the grouping that holds it.
    Basically, I have different row shadings on my report differentiating the groupings except for the rows where the subreport shows.
    How do I go about setting the subreport background color to equal it's contaiing grouping's background color?  Thanks in advance for any and all assistance provided.

    The parameter method given by gpshukla will send the info to the subreport, but you don't need the color parameter in the main report, only the subreport. The trick is in setting the value of that parameter.
    Right-click the cell with the embedded subreport, you can select subreport properties.
    Select Parameters and add a parameter.
    The name column is the name of the parameter in the subreport (color) and value is the value to set it to.
    Set name to "color" (no quotes).
    Set Value to the same expression used to set the background color for the row.
    In the subreport, click the design surface to select the report (not header or footer).
    In the properties pane, select background color and choose expression from the dropdown.
    Type =Parameters!color.Value into the expression builder.
    This will work assuming that background color in the main report row will not change without also refreshing the subreport.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Change default background color in Dynamic pages

    Anyone knows how to change the default background color of a
    dynamic content page in WEBDB 2.2?.
    I want to display some information with a query in a Dynamic
    Content Page but the background color is, by default, beige.
    I try to force the the background color placing the html tag
    <td bgcolor=#FFFFFF> but there is still a beige strip at the
    left side of the table.
    Thanks

    Hi Richard,
    For about how to inspect page element, you can use IE Developer Tools:
    https://msdn.microsoft.com/en-us/library/ie/bg182326%28v=vs.85%29?f=255&MSPPError=-2147217396
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problem dynamically setting row background color in a report

    Hi guys,
    I want a PPR Classic SQL Report to dynamically show a background color depending on what value is stored in the column of the record.
    To illustrate what I've tried consider the following:
    1. I created a PPR Report on DEPT (this is the report I want to use with record backgrounds)
    2. I created a PPR javascript call that I trigger somewhere in the page
    function refreshReport(pField, pValue){
      var region = $v('P2_DEPT_RID');
      var link ='f?p=' + $v('pFlowId') + ':' + $v('pFlowStepId') + ':' + $v('pInstance') +'::::' + pField +':'+ pValue;
      html_PPR_Report_Page(this, region, link);
    The updating of the report works fine by the way.
    3. I changed the code in the HTML Expression of the column definition of "DNAME" of the DEPT report. I used jQuery to set the class of the <tr> element of the position the field is in.
    This is the value I want to dynamically check on
    <div id="dept_#DEPTNO#">#DNAME#</div>
    <SCRIPT type=text/javascript>
    $('#dept_#DEPTNO#').parent().parent().children().removeClass('t20data');
    if ('#DNAME#' == 'RESEARCH'){
          $(function(){    
            $('#dept_#DEPTNO#').parent().parent().addClass('voorhaal_kan');
    }else{
             $(function(){    
                $('#dept_#DEPTNO#').parent().parent().addClass('sscc_ok');
    </SCRIPT>4. I created some CSS like so:
    tr.voorhaal_kan{border:1px solid #AAA;border-left:none;border-top:none;background-color:#FFDD44;padding:2px 8px;}
    tr.sscc_ok {border:1px solid #AAA;border-left:none;border-top:none;background-color:#CCFFCC;padding:2px 8px;}
    tr.sscc_manco {border:1px solid #AAA;border-left:none;border-top:none;background-color:#FF3300;padding:2px 8px;}
    tr.sscc_geel {border:1px solid #AAA;border-left:none;border-top:none;background-color:#FFFF66;padding:2px 8px;}Now the problem is, the first time I load the page, the javascript in the HTML Expression works fine! It checks the value, and colors the <tr> beautifully. But, when i Refresh the report using PPR (calling the javascript function), the report is reloaded just fine, but the javascript bit in the HTML Expression is skipped for some reason resulting with a regular background color found in "t20Standard td.t20Data" . Alerts won't fire either in the code, hence the assumption of the code skipping.
    Any ideas on how this problem can be solved?

    Hey Rutger,
    I know you've already done a lot of work in another direction, but would it be possible for your purposes to use the SQL to do what you need. check out this link:
    How to perform a conditional column format based on column value
    and Conditional coloring of Database Column
    I hope those may help or give you other ideas.
    -Marc

  • Dynamic Page background color - where to change?

    Where can I change color of table background for dynamic page?
    Thanks in advance
    best regards
    Krzysztof Jungowski

    Hi,
    sorry for posting html code. I have found the solution.
    The dynamic page body is rendered by
    PORTAL30.wwv_render_report.show() procedure. I can add aditional parameter "p_table_bgcolor" to procedure
    i.e. p_table_bgcolor => '#CCCCCC'
    The default colors are definied in package definition PORTAL30.wwv_render_report.
    best regards
    Krzysztof Jungowski
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Krzysztof Jungowski ([email protected]):
    Hi,
    I tried your advice and it doesn't help.
    Now the source of generated page is as follows:
    [H2]Example of A Dynamic Page[H2]
    [TABLE border="0" bgcolor="#FFOOOO"]
    [TABLE border="0" cellspacing=0 cellpadding=2 style="background-color:#E0E0D0"]
    [TR]
    [TH ALIGN="LEFT" style="background-color:#C0C0A0" ] [TH]
    Maybe there is any stylesheet in which I can chage bgcolor? Or maybe this stylesheet is generated somehow and I can change its parameters?
    Thanks in advance.
    best regards
    Krzysztof Jungowski
    <HR></BLOCKQUOTE>
    null

  • Encore DVD 2.0 on Windows: Composition background color of dynamically linked After Effects projects

    Hello,
    I used Adobe Dynamic Link to import an After Effects project, and I saw that in Encore the background color of a composition is set to black even though it is defined with another value in After Effects.
    I had to open the project in AE and place a solid layer with the desired color behind all other layers.
    What are the causes for this behaviour? Did I do something wrong or is it a bug?
    Best regards,
    Christian Kirchhoff

    The composition background is transparent. It has per se no color and does not react to blendmodes and such. It's imaginable that Encore resets it to black for whatever reason (wouldn't know, as I design my menus always with full frame backgrounds to begin with). Still, I would consider it a bug regardless, so please fiel away:
    http:www.adobe.com/go/wish
    Mylenium

  • Dynamic page background color

    How can I modify the background color of a dynamic page. All of my dynamic page backgrounds are currently a tan shade by default.

    Jay,
    The background color for a query table does indeed seem to be hard-coded. I've filed bug 1569601 on this.
    As a workaround, you can use a report instead of a dynamic page. Or, you can explicity control the output of the query with your own formatting tags.
    Regards,
    Jerry

  • AS2 TextInput Background Color - Issues when trying to change dynamically

    Hello,
    I'm having issues changing a TextInput background color after the initial onLoad using AS2.
    On load, I have no issues setting the background color with this code:
    Code:
    onClipEvent (load) {
        this.background = true;
        this.backgroundColor = 0x1E1C1C;
    However, I have a form validator run when focus is lost but yet I cannot set the background color at that point. For example, I'm trying to set the background color to orange and text to white if the field's contents are invalid. Even something simple like this doesn't affect the colors.
    Code:
    on (focusOut) {
            this.backgroundColor = 0xFAA523;
            this.borderColor = 0xFAA523;
            this.borderStyle = "solid";
            this.color = 0xFFFFFF;
            this.text = 'Enter your first name';
    All code is in actions for the TextInput itself.
    Anyone know what I'm doing wrong?
    Thanks in advance!

    Actually, that's not the solution. You need to use setStyle to access the backgroundColor property when the TextInput is already generated.
    This worked for me:
    this.setStyle("backgroundColor",0x1E1C1C);

  • Dynamic change of region background color

    I have a select list itme on my region. When the user picks a specfic value (based on an Oracle function) in the select list I need to change the background color of the region. What is the best way to do this?

    bobmagan,
    You can use the region "Header and Footer" to do that. But, first of all you will have to create a page process to populate an item in your page with a color code depending on your condition. After that, do this:
    Region Header:
    <div style="background-color:#&P1_ITEM.">
    {code}Region Footer:
    {code:java}
    </div>
    {code}
    Paulo Vale
    [http://apex-notes.blogspot.com]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I am deperately trying to change the background color dynamically ?

    Hello everybody,
    i am actually working on a portfolio website. I want the
    background color change each time we click on a button on the
    navigation bar. My problem is that when you click on a button it
    changes the background from the start
    (white background), not from the previous one clicked.
    i am trying to make the effect on this site
    www.mecompany.com.
    can someone please help me, i am in despair.
    thanks

    Hi ZAXSCD,
    You can change the background color of a PDF document by following the steps mentioned below:
    - Open PDF document in Adobe Acrobat X;
    - Click on Tools --> Pages --> Under 'Edit Page Design' select Background and then 'Add Background';
    - In Add Background window, under Source --> From color, select the color of your choice and click OK'.
    You can also refer to the screenshots mentioned below:

  • Problem with cfdocument and background colors with table borders

    i am having a great deal of difficulty with cfdocument
    rendering my tables with cells that have background colors. the
    background colors seem to bleed through the table border. a picture
    at 100% magnification can be seen at
    http://www.vitad.com/cfdoc.jpg
    and at 1600% magnification at:
    http://www.vitad.com/cfdoc2.jpg.
    i am attaching sample code of the what generated the pdf in the
    pictures. btw, i am running cfmx 7 with hot fix 2.

    Hi fresher4flex,
    Since you are using the item Renderer for the DataGrid Column try to apply the styles dynamically to the background of your itemRenderer by making using of the rollOver and rollOut events.
    Thanks,
    Bhasker

  • Right way to change datagrid row, column, cells background colors in code-behind?

    Hi all,
    I have a winform program that I'm upgrading to wpf (I'm new to wpf). The wpf code for the function (SetdataGridBackgroundColors()) is below with the winform code commented out so I can fix it.  I have a datagrid with a Cornsilk background color alteranating
    with LightGreen depending on the content of datetime  cell. If the day portion of the datetime is different then the color changes from one to the other. I used a colorIndex variable because at the end of the month it could go from 31 to 1 and that would
    not work if I use the day directly.
    I tried this line to change the background color:
    optionsDataDatagrid.RowBackground = new SolidColorBrush(Colors.Cornsilk);
    this works but it changes every row. I found this other stuff:
    DataGridRow currentRowColor = optionsDataDatagrid.ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow;
    //DataGridRow currentRowColor = optionsDataDatagrid.ItemContainerGenerator.ContainerFromItem(optionsDataDatagrid.Items[i]) as DataGridRow;
    currentRowColor.Background = new SolidColorBrush(Colors.Cornsilk);
    Either ContainerFromIndex or ContainerFromItem throw an exception because currentRowColor is null. I looked at optionsDataDatagrid.Items[i] and is not null. Then I read that using ItemContainerGenerator is not a good idea.
    BTW I'm calling SetdataGridBackgroundColors() after datagrid is been filled with data.
    So... what is the proper way to set each row, column or cell background color in wpf?
    Thanks
    private void SetdataGridBackgroundColors()
    optionRowData rowData = new optionRowData();
    if (optionsDataDatagrid.Items.Count == 0)
    return;
    int colorIndex = 1;
    DateTime savedDate, currentRowDate;
    rowData = optionsDataDatagrid.Items[0] as optionRowData;
    savedDate = rowData.col_datetime.Date; //only compare the date not the time
    for (int i = 0; i < optionsDataDatagrid.Items.Count; i++)
    //currentRowDate = Convert.ToDateTime(optionsDataDatagrid.Rows[i].Cells[3].Value); //winform code
    //currentRowDate = currentRowDate.Date; //winform code
    rowData = optionsDataDatagrid.Items[i] as optionRowData;
    currentRowDate = rowData.col_datetime.Date;
    if (currentRowDate != savedDate)
    colorIndex++;
    savedDate = currentRowDate;
    if (colorIndex % 2 == 0)
    //optionsDataDatagrid.Rows[i].DefaultCellStyle.BackColor = Color.Cornsilk;
    //------------------- testing new code --------------begin
    optionsDataDatagrid.RowBackground = new SolidColorBrush(Colors.Cornsilk); //this changes all rows
    //DataGridRow currentRowColor = optionsDataDatagrid.ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow;
    //DataGridRow currentRowColor = optionsDataDatagrid.ItemContainerGenerator.ContainerFromItem(optionsDataDatagrid.Items[i]) as DataGridRow;
    //currentRowColor.Background = new SolidColorBrush(Colors.Cornsilk);
    //------------------- testing new code --------------end
    //optionsDataDatagrid.Columns[4].DefaultCellStyle.BackColor = Color.DarkSalmon;
    //optionsDataDatagrid.Columns[5].DefaultCellStyle.BackColor = Color.Aquamarine;
    //optionsDataDatagrid.Rows[i].Cells[4].Style.ApplyStyle(optionsDataDataGridView.Columns[4].DefaultCellStyle);
    //optionsDataDatagrid.Rows[i].Cells[5].Style.ApplyStyle(optionsDataDataGridView.Columns[5].DefaultCellStyle);
    else
    //optionsDataDatagrid.Rows[i].DefaultCellStyle.BackColor = Color.LightGreen;
    //------------------- testing new code --------------begin
    optionsDataDatagrid.RowBackground = new SolidColorBrush(Colors.LightGreen); //this has no effect
    //------------------- testing new code --------------end
    //optionsDataDatagrid.Columns[4].DefaultCellStyle.BackColor = Color.Coral;
    //optionsDataDatagrid.Columns[5].DefaultCellStyle.BackColor = Color.LimeGreen;
    //optionsDataDatagrid.Rows[i].Cells[4].Style.ApplyStyle(optionsDataDataGridView.Columns[4].DefaultCellStyle);
    //optionsDataDatagrid.Rows[i].Cells[5].Style.ApplyStyle(optionsDataDataGridView.Columns[5].DefaultCellStyle);

    I (also) strongly recommend mvvm.
    Setting values is a particularly bad idea in this case.
    I don't mean to be rude but your explanation of the requirement is kind of vague.
    I would bind solidcolourbrushes.
    Set the properties based on whatever your logic is within the viewmodel.
    You can switch out what each of the brushes holds when the user clicks wherever.
    So you use a highlightbrush when something or other is true.
    That highlightbrush is set to a blue brush when the user clicks left and a red brush when they click right.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?

    How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?
    I have code that finds / marks words with a different color.  Now I want to remove that color.  I've started with the following, but cannot complete it.
        //int iLength = gRTbxInfo.Length
        int iLength = 10;
        TextRange trText = new TextRange(gRTbxInfo.Document.ContentStart, gRTbxInfo.Document.ContentEnd);
        TextPointer tpStart = trText.Start.GetInsertionPosition(LogicalDirection.Forward);
        TextPointer tpSelectionStart = tpStart.GetPositionAtOffset(0, LogicalDirection.Forward);
        TextPointer tpSelectionEnd = tpSelectionStart.GetPositionAtOffset(iLength, LogicalDirection.Forward);
        TextRange tpSelection = new TextRange(tpSelectionStart, tpSelectionEnd);
        tpSelection.ApplyPropertyValue(TextElement.BackgroundProperty, new SolidColorBrush(Colors.White));
    bhs67

    Isn't that just
    TextRange tr = new TextRange(rtb.Document.ContentStart, rtb.Document.ContentEnd);
    tr.ApplyPropertyValue(TextElement.BackgroundProperty, Brushes.White);
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Section Header Text Background Color

    Hi have a catalog that has a running section header that will be placed over a black graphic the width of the page header.  I would like to have a white background box appear the length of the header section text, but not be the full length of the text box defined on the master pages for the header.  I would like to do this in an automated fashion rather than manual placing the graphic around the header text on each page.  It won't work to place a white box under the text as it is part of the background already being a master page item, or am I missing something.  In brief can I have a background color that dynamically adjusts to the length of a text string?
    Thanks,
    Dave

    If that text has a character style (or if it doesn't give it one) make the character style include an underline, then make that underline really thick and give it a baseline shift.  The same technique is commonly used for highlighting.  There's a few other options you can play around with in the underline options too.

  • Background color change of a column in Advance table

    Hi,
    We have requirement to change the background color of column in advance table based on some condition. We tried putting code to change background color in Custom.xss using background-color property and setting newly created css dynamically based on condition but it seems it only changes the background color of text not the complete cell. We want to change the color of complete cell in an advance table.
    Please let me know if there is any other way I can achieve this requirement. Any help would be highly appreciated.
    Thanks

    <FONT FACE="Arial" size=2 color="2D0000">
    Pls look into "Alter Table"section.
    LOB_storage_clause
    This might help
    -SK
    </FONT>

Maybe you are looking for

  • Excise and Invoice verification

    Hi During Invoice verification the system is generating error message: PART2 entry was not posted. In J1iex it shows the status of IN Process. During Posting in J1iex it issue message NO PART1 exist for availling credit. How to resolve this so that i

  • QoS for FRATM Internetworking

    Here is the scenario. We have a customer who has tow routers connected to an ATM cloud via an OC3 interface, and around 200 remote offices connected to the central office via Frame Relay data links (all of then). Recently, our customer implemented Vo

  • What does SNR have to do with anythi

    Hi Everyone, I'm just looking for a soundcard to record vocals into my computer, and I'm not sure if the SNR rate has anything to do with it. If I just get a basic 24-bit soundcard, will the SNR rate have any effect on the vocals I record? I don't ca

  • OSB Validate action failed validation

    Hi All, I'm trying to convert non-xml to xml by using XqueryTransformation source as an HL7 and target as an CCD schema.When validating the against the schema I got the following exception. Please provide any suggestions. <con:fault xmlns:con="http:/

  • Acrobat Pro reinstall won't accept serial number.

    I have an iMac running Yosemite. I had to reinstall Adobe CS3 suite on a partition because I have some files that I need to keep the older software for, but when I open the program Acrobat Pro after the install, which went OK, it says my serial numbe