[RESOLVED] conditional field color

this is probably has a very simple answer. In a af:table with af:inputText's in them I am trying to get the table to render where the cells of one of the columns in the table have a background color of yellow if the field says "Yellow" as the inputText's value and red if "Red" value.
I went into the backing bean and tried to alter the set or get for the input texts to programmatically change the inlineStyle of the inputText's attribute. But that did not work because at the time the set and get are called in rendering it appears that the backing bean attributes are null.
I will try again because some of my code went away when JDev automatically redid my backing bean code, but I am beginning to think I may have to do this with Javascript.
Thanks in advance for any words of wisdom.
Message was edited by:
Michael A Fons

to clarify here is some bean code:
public void setAlertTypeInput(CoreInputText alertTypeInput) {
this.alertTypeInput = alertTypeInput;
if (this.alertTypeInput != null) {
if (this.alertTypeInput.getValue() != null){
Object obj = this.alertTypeInput.getValue();
if (obj != null) {
if (obj.toString().equals("Yellow")){
this.alertTypeInput.setInlineStyle("background-color:yellow;");
The second if evaluates to false because at the time the set occurs the value is not set.
I know you can do things as invokeActions to fire as a page is opening. Maybe there is a way to access the backing bean code at that point? I would think in the prepareRender phase would be the right timing. Maybe there is a section in the developer's guide which illustrates how to access the backing bean attributes in an invokeAction

Similar Messages

  • Conditional Formating colors not printed

    I have an OBIEE Report that has conditional formating to display results with background colors based on the values like if actuals is greater than goal then display the number in green and if below the goal then red etc. What I am seeing is that when I display the report (Table view) on dashboard on IE6 browser, it shows all the conditional formatting colors on the dashboard but when I do print preview, the colors are lost. When printed, it prints the report without the colors. I developed the reports in IE8 version and when I view and print from IE8 browser, it prints with colors. I feel it might be a bug or incompatibility with IE6 but am not sure about that. Is there any way to resolve this issue. This report will be viewed on IE6 browser and upgrading the company wide browser is not an option.
    Environment - Oracle Business Intelligence 10.1.3.4, OS: Windows, Browser - Internet Explorer 6
    Thanks in advance

    try tools-internet options-advanced-printing-check print background colors.

  • Can we put condition for color in bex query designer

    hi all,
    can any one guide me how to put a condition for color settings in query designer
    for example:
    i have a key figure like ANSWERED%.in analyser it should display in red if  answered% exceeds 95%.
    please help me in this issue.
    regards
    Vamshi D Krishna.

    Hi,
    Use Exceptions while designing your Query.
    Please go through the link
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/21b4cd14cd06f4e10000000a422035/frameset.htm

  • Chart report Condition fields and Data fields

    Hi all,
    i have tried chart report by adding two condion fields and one data field, the report is more meaning full in this scenario. the first condition field is taken as x-axis, the 2nd condition fields is taken as legend.
    while adding more condition fields and data fields, i feel its not showing meaningfull data.
    can anyone explain how the condition fields and data fileds are manipulated by crystal report.
    i am using CR XI R2 Server.
    Thanks
    Padmanaban V

    i am using Crystal Report XI R2 RAS Embedded in my server.
    as we can add any number condition fields programatically using the method
    ConditionField.Add(FieldObj), i would like to know how these fields are manipulated internally by the RAS server.
    that means, what is the significance of condition fieldobject 1, condition fieldobject 2,condition fieldobject 3 etc...
    if i add more than two condition fields , RAS Chart Report always returns 0 as legend value for all legends.
    Thanks in advance
    Regards,
    Padmanaban V
    Edited by: Padmanaban Viswanathan on Dec 22, 2008 9:53 AM

  • SSRS 2012 Conditional Formatting Color Issues When Exporting to Excel

    Hi all,
    We recently upgraded to SQL 2012 from SQL2008 R2. I'm having a strange issue with SSRS2012.
    One of the report has conditional formattings on cell background colors. Everything works fine when render the report in browser or preview mode. However, the conditional formatting stop working when export the report to Excel (no issues if
    export to pdf). All cells are high-lightened with pre-defined color although it should only high-lighten those cells that fulfil the condition.
    Has someone encountered this issue before ? Thanks for any help.

    Hi ZZ02,
    I have test the scenario in my testing environment, however, everything goes well when exporting to Excel format. The issue might be related to the expression for the conditional background color. To make further analysis, please post the expression as well
    as the report design structure.
    Additionally, in SQL Server 2012 Reporting Services, the Excel rendering extension renders a report to the native format of Microsoft Excel 2007-2010, the format of which is ExcelOpenXML. By default, the previous version of the Excel rendering extension,
    compatible with Microsoft Excel 2003, is disabled. At this time, I suggest that you enable the Excel 2003 rendering extension by modifying the RSReportServer.config file. After that, the Excel 2003 rendering format will be available on report manager (not
    available in Report Designer). So, please export the report from report manager and check the result again.
    For more information about enable the Excel 2003 rendering extension, please see:
    http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/0713de27-dcc0-4e51-81ac-5272647d171f
    Regards,
    Mike Yin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here. 
    Mike Yin
    TechNet Community Support

  • Changing fields color in CL_GUI_ALV_GRID using class

    Hi,
    I've written a lot of posts but still I have problem with changing color for CL_GUI_ALV_GRID.
    I have class ZKSL_CL_4_17_ALV_GRID_OO with 3 methods : SELECT, HANDLE_DBL_CLICK AND DISPLAY_ALV
    I want to change fields color every time I double click on IT.
    METHOD SELECT.
       DATA:
             lt_sflight                TYPE TABLE OF           zkslt_sflight,
             ls_layout                 TYPE                    lvc_s_layo,
             lr_custom_container       TYPE REF TO             cl_gui_custom_container,
             lr_my_class               TYPE REF TO             zksl_cl_4_17_alv_grid_oo.
       SELECT *  FROM zkslt_sflight  INTO TABLE mt_sflight
          WHERE carrid    = iv_carrid AND
              ( fldate    IN it_date  OR
                price     IN it_price OR
                planetype IN it_type )
    CALL FUNCTION 'Z_KSL_SCREEN'.
    ENDMETHOD.
    from FM z_ksl_screen i call screen 400 and from status_400 output  I call method DISPLAY_ALV
    METHOD display_alv.
       DATA:
              lr_custom_container       TYPE REF TO             cl_gui_custom_container,
              lt_sflight                TYPE TABLE OF           zkslt_sflight,
              lt_catalog                TYPE STANDARD TABLE OF  lvc_s_fcat,
              ls_catalog                LIKE LINE OF            lt_catalog,
              ls_layout                 type                    slis_layout_alv,
              lr_my_class               TYPE REF TO             zksl_cl_4_17_alv_grid_oo.
       CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
         EXPORTING
           i_structure_name = 'ZKSLT_SFLIGHT'
         CHANGING
           ct_fieldcat      = lt_catalog[].
    ************BULID LAYOUT
       ls_layout-no_input = 'X'.
       ls_layout-colwidth_optimize = 'X'.
       ls_layout-totals_text       = 'Totals(201)'.
       ls_layout-info_fieldname    = 'LINE_COLOR'.
       IF mr_gui_alv_grid IS INITIAL.  "-----------------------------------if----------------------&
         CREATE OBJECT: lr_custom_container
           EXPORTING
             container_name = 'DISPLAY',
             lr_my_class.
         CREATE OBJECT mr_gui_alv_grid
           EXPORTING
             i_parent = lr_custom_container.
         SET HANDLER lr_my_class->handle_dbl_click FOR mr_gui_alv_grid.
         CALL METHOD mr_gui_alv_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZKSLT_SFLIGHT'
            is_layout        =   ls_layout
             i_save           = 'A'
           CHANGING
             it_outtab        = Mt_sflight
             it_fieldcatalog  = lt_catalog.
       ELSE.     "-------------------------------------------------ELSE---------------------&
         mr_gui_alv_grid->refresh_table_display( ) .
       ENDIF.
    ENDMETHOD.
    In handler i am trying to change fields color and call method display sending new out_table
    CALL METHOD me->display_alv
         CHANGING
           ct_fieldcat = lt_fieldcat.
    Please give me some easy advice how to do that.
    thank you in advice.

    Thank you Klaus for your reply,
    The problem is that I need to make this using classes.
    I tried to make my structure data with LVC_T_SCOL as you wrote,
    a field of table type LVC_T_SCOL in the structure of your output table
    DATA BEGIN OF lt_data. 
           INCLUDE STRUCTURE sflight.
           DATA cellcolors  TYPE lvc_t_scol .
       DATA END OF lt_data.
    TYPES: BEGIN OF mtt_tab.
    *         INCLUDE STRUCTURE ZKLST_sflight.  " I get error that I cannot use ref to abap dic
               INCLUDE TYPE ZKSLT_SFLIGHT.
               TYPES: cellcolors  TYPE lvc_t_scol ,
                 END OF mtt_tab.
    After making type mtt_tab
    i declare data   lt_tab                    TYPE STANDARD TABLE OF  mtt_tab.
    and when I try to copy table mt_sflight (it is atribut of calss) like below
    LOOP AT mt_sflight INTO ls_mt .
    *   READ TABLE lt_tab INDEX sy-tabix ASSIGNING <ls_tab>.
    *   MOVE-CORRESPONDING <ls_mt> TO <ls_tab>.
    *    UPDATE lt_tab FROM TABLE mt_sflight.
         MOVE-CORRESPONDING ls_mt to lt_tab.
       ENDLOOP.
    I am getting error "lt_tab is not internal str or table with header"
    Can you help me with this? 

  • How to: Make Shipping Condition field required in Tx. VT01N

    Hi everyone. I need to make the Shipping Condition field required in the transsaction VT01N Create Shipment.
    I don't know how to do this, can somebody help me with this issue???
    Thanks for your help!

    Hi Chemo,
    As far i undestand, you want to calculate freigth cost using transportation.
    To do this, you need to do some settings at that point to achieve that, please follow the link to configuration guide:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LETRA/SDTRA.pdf
    On functional side (after configuration), you´ll need to create the shippment cost document on VI01 transaction, there you can see all the cost associated to Shipping.
    After that transfer it to MM using T-code VI02, its needed.
    I Hope this help you,
    Regards,
    RP

  • CRM Pricing - BADI to Populate pricing conditions fields

    Hello All,
    We have CRM 5.0 installed in our customer.
    We are facing problems when we tried to replicate the pricing  from R/3.
    Basically, all Brazilian formulas we have in R/3 are Z. We tried to replicate them in JAVA (IPC) with no success. At this time, it is imposible for us to move to the standard because of the decision of the business.
    We are trying to find one BADI where we can populate all the pricing conditions retrieved via RFC from R/3. Unfortunatelly we don't have good luck with this.
    Our idea is to use this BADI to call R/3 and retrieve the conditions needed, and then populate the CRM pricing fields..
    Could you please help us? Do you have any other idea to solve this issue?
    This is very critical for us.
    Thanks in advance.
    Martin

    Hi Ntk,
    Thanks for your reply.
    I tried to search in se18. I found one BADI that runs when users enter new materials or changes the quantity of the sales order.
    This one  does not help us too much, because when you go to conditions tab (into CRMD_ORDER or via ICWEB) all conditions are redetermined with the pricing determined in IPC.
    We want to fill the conditions of the sales orders or the sales quotations at running time. In the BADI we would use the function module RFC SD_SALESDOCUMENT_CREATE (in simulation mode) in R/3 and retrieve all conditions fields and then populate the pricing conditions in CRM.
    Do you know any BADI with this behaviour? Or another similar?
    THANKS!

  • Storage Condition field in Material Master Grayed Out.

    Hi folks,
    We are trying to use the Storage Condition field in a Material Master Plant Data/ Storage Location View. However I noticed the filed is grayed Out.
    Then I looked at the Configuration in "Field Selection for Data Screen**" and the selection group 87 which is already selected as Optional which means it should let me pick the Storage Condition field.
    **(SPRO->Log Gen->Mat Master->Filed Selection->Maintain Field Selection for Data Screen.)
    Please note,  I have already created Storage Conditions in SPRO. I am not trying to create new conditions now. I am just not able to pick one and enter it while creating or updating a Material Master.
    your input is appreciated. Thanks in advance.

    where exactly you are looking at that you are so certain that is is optional?
    In OMSR find your field selection group, then click the button on the right to the field selection group to see in which field reference it is used..
    You can probably see many many field references.
    There is e.g. a field reference for the transaction, at least for transaction MM03 your field selection should be display only.
    there is a field reference for your material type,
    there is a field reference for your industry (M, C etc ... the indicator you have to enter in MM01 initial screen)
    there is a field reference for your material type,
    Are all references (except MM03) are set to optional, or do you see references with display only among them?

  • Condition field in XL Reporter Get Other Data function

    I want to use the XL Reporter "Get Other Data" function to get data from a file not in the current Business Partner dimension  BPA.  Using the SalesPerson code SlpCode, I want to get the SalesPerson Name, SlpName. What is the value for the condition field to restrict the retrieval to just the one record that matches the SlpCode in the BPA dimension?  I've tried ocrd.SlpCode=oslp.SlpCode.  I've tried SlpCode=oslp.SlpCode. But I either get all the names in the Salesperson file or I get some type of syntax error.

    Jim,
    When you say I should be able to pass a parameter, do you mean while using the XLR "Get other data" function?  I thought that's what I was doing when I filled out the Get other data screen with the userid, password, then I specified the OSLP table, requesting SlpName in the Fields section, and then in Condition, I specified OCRD.SlpCode = OSLP.SlpCode.   When the report ran, I got a "#ixGetData error: The multi-part identifier "OCRD.SlpCode" could not be bound".   I tried substituting the BPA dimension qualifier, ie: BPA.SlpCode, but got the same error.
    If I removed the initial qualifier in the Condition field, ie: SlpCode = OCRD.SlpCode, when I ran the report I got ALL Salespersons names, not just the one that matched the SlpCode field on the current Business Partner line.

  • Transportation Group and Shipping condition fields in Route determination

    Hello Guys,
    Please, I heard that if I leave Transportation Group and Shipping conditions field empty Route determination would consider whatever value I put in Material/Custumer Master.
    But the determination just happen if I put the exact value in either the determination and the Material Master for Transportation Group field for example.
    Have you ever determined Routes leaving the fields empty?
    Thank you,
    Regards,

    Hi,
    Those fields Transportation Group and Shipping conditions available in Route Determination are essential to trigger the correct route in Sales Order level.
    If blank the available routes need to be picked manually at Sales Order level.
    Kindly check .
    Regards,
    SRK

  • Acrobat 8, "Highlight Fields" color change

    Hi, I'm trying to help a friend trace a random change in the color of form fields when you select highlight fields. Previously it was the same as mine, a light, opaque blue. Now it's changed to a dark gray making text hard to read. The only thing I can guess caused this was an automatic update to Vista. Before the update it was blue, after the reboot the fields are gray. Does this sound familiar to anyone? Is there a fix? I've searched every menu and can't find even an option to change the color. Is there an option in Vista to change the form field colors? Or is this a glitch caused by the update that requires a repair install?
    Any advice is appreciated.
    Thanks
    sasha

    ? related to the highlighted fields'. When you open a pdf, in the
    upper right corner there is a box to check, if you want the fields
    to be filled in, highlighted.
    Is there a way in the properties to set a default for the page, when
    the pdf is opened, that this 'highlight fields' box is always checked.
    My user doesn't want to have to check this 'box' each time entering the pdf upon opening.
    Thanks for any guidance Lfiacco

  • Using SUMIFS on iPad Numbers has anyone had trouble using the keypad relational symbols in the "conditions" field?

    The iPad Numbers has a very nice data entry keyboard for expressing conditions.  They have the usual =, <, > but also have the single symbol version of >=, <= and <> (as an equals with a slash through it), however, if you try to use these keypad keys in the conditions field of the SUMIFS, it returns a syntax error.  After seeing some examples of Numbers '09 I discovered I had to express a relation inside double quotes, " ", which means the text keyboard is displayed and the very nice data entry keyboard is gone along with the nice symbols.  Has anyone seen this and am I doing something wrong or is this another bug?  Thanks.

    The xxxIF functions have (for as long as I have used them) required a text string as the argument unless it was equal to a value of a cell, with no logical operators. so it is not something new, its been that way for decades and I personally think Apple might have done it differently if they didnt have to maintain compatiability with older spreadsheet programs.
    i.e. not a bug, ensures backward compatability.
    Jason

  • Alter reports field color and date formatting

    Hello,
    I have a report with an in-line case statement which alters a field color based on the date value. I have the column's format mask set to 'MM/DD/YY'. I've tried several different ways to format the date field using the column attributes as well as within the select statement itself. Either way seems to break the sorting on the field. HTMLDB no longer consideres this field to be a date field and the sorting does not work.
    Any suggestions?
    Thanks in advance, Todd
    Here is the code I am currently using:
    SELECT status, CASE
    WHEN target_date < Trunc(sysdate) THEN
    '<span style="color:Red;">' || target_date || '</span>'
    WHEN target_date >= trunc(sysdate) THEN
    '<span style="color:Green;">' || target_date || '</span>'
    END CASE
    FROM projects

    Todd,
    Once you add some HTML tags to you columns values, they are no longer date or number columns but string columns. So the sorting doesn’t work properly anymore, i.e. sort by number, sort by date. You may find Tyler’s response in the following thread useful though:
    Dynamic Selection of Report Column Format
    Hope this helps,
    Marc

  • Required Field - Color Change

    Hello every one,
    We have a requirement, Field A, Field D
    We are on 11.5.10 Forms 6i
    Field A - LOV - (XX,YY)
    Field B - Text Item
    In Field A if the user Picks YY - Field D has to become a required (which I am able to achieve) as follows
    IF :BLOCK.FIELD ='YY'
    THEN
    SET_ITEM_INSTANCE_PROPERTY('BLOCK.FIELD',
         v_current_record,
         REQUIRED,
         PROPERTY_TRUE);
    END IF;
    But the required field is not changing the color to required field color. Can someone tell me how to achieve this?
    Thanks
    Edited by: user468323 on May 18, 2010 10:40 AM

    As you are working with the Oracle Enterprise Business Suite (EBS) there are exact guidelines for developing custom form. If you develop your forms to conform to Oracle Applications User Interface Standards for Forms-Based Products and Oracle Applications Developer's Guide you should not have to manually change the color as the EBS Framework will handle all of this for you. These documents can be found in the Applications Documentation site. Following Oracle's Guidelines are required if you ever need to contact Oracle Support for assistance with a Custom form. If your Custom form does not conform to their guidelines - support will not help you.
    Also, you might want to post any EBS related Forms questions in the General EBS Discussion Forum.
    Hope this helps,
    Craig B-)
    If a response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Print History Report on HP Officepro 8500A Plus

    Can I obtain a print history from the printer similiar to a fax history?

  • Cannot convert type class java.lang.String to class oracle.jbo.domain.Clob

    Cannot convert type class java.lang.String to class oracle.jbo.domain.ClobDomain. Using ADF Business Components I have a JSFF page fragment with an ADF form based on a table with has a column of type CLOB. The data is retrieved from the database and

  • Mac running slow and crashing

    Lately, my mac has been running slow, freezing, restarting, and this is new... I have a lot of things in imovie... so I presume it might be that, but this is ridiculous!  It is constantlly beachballin'!  How do I make my Mac perform like it did when

  • Vendor Master Record: Tax Number 1 Field

    Hi Everyone, For some reason, when you enter XK01 or XK02 for creation or change of vendor master record, Tax Number 1 within the Control Tab is visible and able to be input.  However, when displaying the vendor master record through XK03, the field

  • Stop generation of Inbound IDOC from Non - SAP

    Hi Experts, I have a requirement to update data base PA0105 for Email. The Email is coming for external system (Non SAP), which contains 1 employee in 1 IDoc. If SAP has valid email and same has been passed for external system to SAP via Inbound IDoc