Field color change

hi
i have a field qty on report .. i want that if qty is less than 12 .. its backgroud or text color become red ..autmatically
thanks

Hi,
You can use this function:
SRW.SET_FOREGROUND_FILL_COLOR('color');
or
SRW.SET_BACKGROUND_FILL_COLOR('color');
Inside the Conditional Formating.
-Marilyn

Similar Messages

  • 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

  • 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.

  • Enter event  field color change issue

    I'm trying to make a script that will change the color of a field's content area when the user enters it (either through clicking or tabbing to the field). It seems simple enough to do, but I haven't been able to get it working.
    I downloaded the sample .pdf file that describes how to do this at: http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/FieldFillColor.pdf
    Push the button, the colors change. Seems to work fine, right? Except for the horrible, horrible period in the color definition, of course. Publishing a 2 line script with a bug as an EXAMPLE? For shame.
    But, when you move the code to the Enter event, the caption changes color, but the content area does not... until you LEAVE the text box, at which point it DOES change color. This doesn't make any sense to me. Is there something undocumented going on here that I don't know about, or is this just another bug?

    This won't speed it up, but I suggest making your code a lot cleaner by making use of this class (I haven't tested it):
    public class ColorRange {
       private Color min, max;
       public ColorRange(Color min, Color max) {
          this.min = min; this.max = max;
       public boolean contains(Color c) {
          return c.getGreen() >= min.getGreen() && c.getGreen() <= max.getGreen() &&
             c.getRed() >= min.getRed() && c.getRed() <= max.getRed() &&
             c.getBlue() >= min.getBlue() && c.getBlue() <= max.getBlue();
    //...SNIP...
    ColorRange blue, red, green, yellow; //initialize these
    //...SNIP...
       if ( blue.contains(robot.getPixelColor(640,480) ) {Furthermore, I would introduce constants for your sample locations:
    Point blueLoc = new Point(640, 480); //etcEdited by: endasil on 14-Sep-2009 10:21 AM

  • Color change of a field  in ALV Grid Control

    Hi,
    One small help needed....
    My req is explained below:
    I have 3 fields empno, ename and deptno. and the records of these fields would be displayed in ALV grid control.
    When I hover the mouse on ename field, the color of the complete field should change to other color, say "RED".
    How do I get this. Are there any Mouse events in SAP?
    Kalyan

    Hi,
    Once i changed the color of a field in a alv (not grid alv), i suspose that the same in alv grid. Also i used an mouse event.
    To manage the color:
    TYPE-POOLS : SLIS, and check this type:  SLIS_T_SPECIALCOL_ALV.
    when you call the function to display the alv, there is a parameter in which you should pass an internal table that references the type  SLIS_T_SPECIALCOL_ALV.
    To manage the mouse:
    1.- You should add the event user command:
    for example:
    DATA: I_EVENT TYPE SLIS_ALV_EVENT.
    Llamo al la función que obtiene los eventos validos para el ALV
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE     = 0
           IMPORTING
                ET_EVENTS       = P_EVENTS
           EXCEPTIONS
                LIST_TYPE_WRONG = 1
                OTHERS          = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
      agrega evento user command
        READ TABLE P_EVENTS INTO I_EVENT
          WITH KEY NAME = SLIS_EV_USER_COMMAND.
        IF SY-SUBRC EQ 0.
          I_EVENT-FORM  = SLIS_EV_USER_COMMAND.
          MODIFY P_EVENTS FROM I_EVENT INDEX SY-TABIX.
        ENDIF.
      ENDIF.
    2.- you work with the user command event:
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                            RS_SELFIELD TYPE SLIS_SELFIELD .
      CASE R_UCOMM.
        WHEN C_DOBLE_CLICK.
        here you do the things that you need when the mouse *     bottom it's pressed
          PERFORM xxxxxxx.
      ENDCASE.
    ENDFORM.
    3.- you can change the form of the mouse, but i don't remember exactly how to do that... try to check that, it's helpfull in order to display the fields that can execute a funtion in your alv.
    I hope this help you, and sorry for my english.
    Albio.-

  • 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? 

  • Color Changes in Spry Data Fields

    Hi All,
    I'm new to Javascript & PHP  programming. Currently I have coded neccesary apperances for the Web  Page and also Spry Data Set to read an external XML date source file.
    What I need  to do is one of the fields, needs to have color based status changes  based on certain data or criterias received.
    For example,
    I have a  Spry Table displayed on my browser,
    Name
    Current  Status
    Lane
    Jane
    6  Mins
    1
    Peter
    Boarding
    2
    Sally
    Arriving
    3
    Alex
    Delayed
    4
    With the  above, what I need is when the current status show in minutes, the text  color will be white (This has been coded with CSS Style)
    For the  Current Status color changes, when I received anything apart from  minutes, the display will be as of below :-
    Minutes = Black
    Boarding  = Red
    Arriving = Green
    Delayed = Yellow
    My question  is can this be coded with just Javascript, HTML and normal CSS
    OR
    This  needs to be coded in PHP, ASP ?
    I'm not familiar with ASP and only have very  little knowledge of PHP. If anyone here have some experience with this,  can offer some advice on how I can apply this theory into my existing.  And if possible some code example would be great.
    Thanks.

    I have tried many times on Ben's method and it didn't work.
    I have also tried the method from Adobe's documentation site.
    Method 1
    <ul spry:region="dsStates" spry:if="{ds_RowCount} != 0" spry:repeat="dsStates" spry:test="'{name}'.match(/^[amn]/i);" spry:choose="choose">
         <li spry:when="'{name}'.match(/^n/i);" style="color: red;">{name}</li>
         <li spry:when="'{name}'.match(/^m/i);" style="color: blue;">{name}</li>
         <li spry:when="'{name}'.match(/^a/i);" style="color: green;">{name}</li>
    </ul>
    Method 2
    <div spry:region="dsStates" spry:if="{ds_RowCount} != 0">
    <table border="1" spry:repeatchildren="dsStates" spry:test="'{name}'.match(/^[amn]/i);" spry:choose="choose">
         <tr spry:when="'{name}'.match(/^n/i);" style="background-color: red;"><td>{name}</td></tr>
         <tr spry:when="'{name}'.match(/^m/i);" style="background-color: blue;"><td>{name}</td></tr>
         <tr spry:when="'{name}'.match(/^a/i);" style="background-color: green;"><td>{name}</td></tr>
    </table>
    </div>
    Can anyone make it plain and simple of how the data source should look like ?
    I'm posting my source code here to make things easy.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    var KomtarETA = new Spry.Data.XMLDataSet("KomtarETA.xml", "komtareta/bus", {useCache: false, loadInterval: 100});
    </script>
    </head>
    <body>
    <div spry:region="KomtarETA">
      <table>
        <tr>
          <th>Route</th>
          <th>Current</th>
          <th>Destination</th>
          <th>Next</th>
          <th>Lane</th>
        </tr>
        <tr spry:repeat="KomtarETA">
          <td>{route}</td>
          <td>{current}</td>
          <td>{destination}</td>
          <td>{next}</td>
          <td>{lane}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>
    The above is the HTML file I start working with.
    The {Current} field needs to have it's data periodically changing color & addition of flashing effect based on it's input from the XML data.
    So my question is how do I work about ? I don't quite get the explanation above.
    Thanks.

  • Color Changes when form field added

    When I add a form filed to a pdf, the color changes on the output of the pdf.
    Print out the attached pdf pages 1 and 3. Look at the green button. It is darker on the pages with the form field(p1) then on page 3. they are the same source file. It like when I add the form field, it changes the page to a CMYK color space and the images are in a RGC Color space.
    Any ideas

    Follow-up:
    One of my colleagues is working on a product feature that involves checkboxes (this is how I came across this issue in the first place). His checkboxes aren't contained within a form element whereas in my test page I described in my question when I removed the form from the page the issue didn't manifest.
    However, the page he's working on does contain other forms so I decided to modify my test page to try to replicate this scenario. I found some really odd behavior.
    If I have a form on a page but the checkboxes are not children of that form, and if I dynamically add a single INPUT element or a single TEXTAREA input, the checked values just disappear on page refresh. That's expected since the lack of a parent form should eliminate the memory of the checkbox values, right?
    Well, when I dynamically add '''both''' an INPUT element and a TEXTAREA element it goes right back to remembering '''and''' moving the checked value, but only by one step. By comparison, if the checkboxes and the dynamically added form fields are contained with a form the checked value will move by a number of steps equal to the number of dynamically added form fields.
    Strange, strange behavior I can't really decode with certainty across the entire range of possible scenarios...

  • Highlight fields that changed its value

    Hi all,
    I'm working on a form that goes from one user to another.  It's a fairly large and complex form (about 7 pages) with calls to multiple web  services.
    After the form is opened and some information is  populated into the fields, a user will be able to change the values of some  fields, and then will submit the form.  The next user in the process will get the form and open it up from  his/her To-Do queue.  The fields with the  changed values (changed by the previous user) would need to be visually  identified to this next user.  When that  user finishes working on the form and submits it, it is opened by the next user  in line. and the changed information STILL needs to be visually identified.  We have found it is easy to highlight a  changed field while a user is working on the form (using the change event) but  it is more difficult to make that highlight stay visible all the way through the  process as different people get the form. I thought about making a hidden field  for every field in the form and compare the values in the validation event. but  this would effectively double the size of the form and all those hidden values  would need to be included in the XML schema (doubling the size of the XML  schema).
    We would appreciate ANY assistance on a proper  approach.

    That does make things clearer.  You will have to save the change information in the XML.  I realize that you don't want to save an xml node for every field, but there is a better way.  You can use scripting to add data nodes to the XML data in the form.  I'm thinking of the following:
    Include an empty container node in your XML schema: <HighlightedFields></HighlightedFields>
    When a field is changed, in the field's change event call a common script: HighlightChangedField, passing in the object.  The script will highlight the field (set the border a certain color or whatever).  It will also add node underneath the HighlightedFields data node with the SOM expression of the field.  The SOM expression is the "path" of the object in the form heirarchy, sort of like an xpath.  So if you have a subform named Subform1 and you change the Name and Address textfields, you might end up with something like:
    <HighlightedFields>
        <HighlightedField>
            <SOMExpression>xfa[0].form[0].myform[0].Subform1[0].Name[0]</SOMExpression>
         </HighlightedField>
        <HighlightedField>
            <SOMExpression>xfa[0].form[0].myform[0].Subform1[0].Address[0]</SOMExpression>
         </HighlightedField>
    </HighlighedFields>
    The upside of this is that you only store XML nodes for what is changed instead of needing a specific XML node for each field.  The downside is that you will need a call to the common script in every field's change event: HighlightChangedField(this);
    Now, to make this work when a form is loaded the next time, in the initialize event at the topmost subform in the hierarchy you add a script that walks the HighlightedFields data node, and for each HighlighedField entry you highlight the contained object.  You can get a reference to an object using its SOM expression, so just take the SOM expression from each entry and do an xfa.resolveNode(SOMExpression) to get the object, then set whatever attributes you want to highlight the field.
    The big issue I see with this would be if you have dynamically added objects on your form.  In that case you would probably need to store the instance index along with the SOM expression for each changed object, then use that instance number when highlighting on form load.
    I don't know how much you know about scripting, so I hope the above makes sense.  If you need more help I can try to mock something up.
    Regards,
    Kevin

  • Calculated value and color change

    I am a newbie desiging a form in Livecycle. 
    Have a table with some calculated fields - using formcalc. 
    I want to change the color of these fields based on the calculated value but I don't know how to have multiple events occurring in the one cell. 
    I can get it working if I put the color change script into the exit event of the cell but as it's a read only cell, the user will not be exiting the cell.  I have had no luck putting the color change script elsewhere.  Any help would be appreciated.

    Actually, in full screen mode the top is cut off! I never noticed that since I always use full screen. This only happens in ACR. All other screens are fully represented. I may cut back on the height adjustment and see if I can see the top. Thanks for pointing it out, Ramon.
    Back to the problem at hand, if you notice, all sliders are at -0-, and if you could look at all the adjustment panels, everything is neutral. So, what is it adjusting?
    If I open a RAW file I also get the triangle, but when it disappears only the slightest change is noticeable in the histogram, and nothing in the image itself. This is true even with the .nefs tweaked.
    Finally, the image 1 is correct with respect to the same file in PS. I compared the screen shot to the full image side by side, in PS. Image 2 is not. If I do a tweak in ACR then open in PS, it's not what I want to see.
    This particular frame is tagged with the ACR icon in Bridge, but I have other tiffs that are not, and the same thing occurs.
    FAPP, I cannot not color correct in ACR with a tiff. I do it as an .nef

  • Can i add more fields and change colours?/

    Hi this is probably a very simple question, with iCal at the moment i have three fields for appointments which are home/work/calendar. I can't find a way of adding more fields or changing the colours. Can it be done???

    Yes it can be done in iCal. On the bottom of the screen you will see a + sign. Click on that and a new calendar will show up in your list.
    To change calendar names or colors, right click on the checkbox for the desired calendar and a new pop up window will come up. From there you can rename the calendar or change it's color designation.

  • Color change when opening in Reader

    Hi, I created a PDF in Photoshop. I then added an editable field in Acrobat, using the same RGBs. When I open the file in Reader, the color of the editable field does not match. Any suggestions on what I can do to resolve this?  I have the most recent version of Acrobat and Reader.
    Thanks,
    Jackie

    Here is a screen shot of the reader PDF, followed by the original file in Acrobat. You can see that the entire document color changed when I opened it in Reader.
    THanks,
    Jackie

  • Colors change when compiling on different OS

    Hoe can I ensure that colors in enter-query mode stay the same when I recompile my form (developed on winxp) on a different OS (say HP-UX)?
    When I run my form locally in enter-query mode the queryable fields turn yellow, but when I recompile the same form un UNIX and run it there, the user cannot see that the form is in enter-query mode for the fields' colors do not change.
    How can we prevent this?

    I'm not sure if this could be a setting in forms\java\oracle\forms\registry\Registry.dat, but it does sound similar to the one in that file which makes required fields a different colour.
    If not that then possibly your form links to a library that has different versions on either server?

  • Highlight_mc/button color/search field color

    Need advice with 3 issues:
    1) How do I change highlight color of text nodes?
    2) How to change Search field color in Flash?
    3) Quick way to change color of e.g. Index button in Flash?

    thanks for the reply kglad.
    is there some script that essentially says "when you, nav button, are clicked, and once you've sent the slideshow to a certain frame, make sure you have a different fill color"?
    is there a way to get the mc to display the pointer finger cursor rather than the arrow cursor?
    R

  • Global fill color change

    Is there a way to have the color change in a field for all fields on a form on entry and exit without having to code a hundred fields individually.
    Example:
    On enter: this.fillColor = "164,222,171";
    On exit: this.fillColor = "250,250,250";
    I want all the fields on the form to do this, but with over 50 fields it seems very time consuming.
    Thanks.

    I want to choose a different fill color and that shows all fillable fields, not the one you are currently in.
    Thanks.

Maybe you are looking for

  • PO approval from e-mail notifications

    Hi All, We have implemented Oracle EBS 11.5.10.2 on Windows (Financials and SCM). Managers who are responsible for approving POs, want to approve the POs from their e-mails notifications. I want to know how to implement this though I know this is pos

  • How can I get my soundtracks w/multiple artists to show up together?

    I am an ex-Zune user, this is my 1st day trying my new iPod. My goal is to find a way to look through my collection on iTunes/iPod as if I were looking through my CD collection. The problem I'm having is with soundtracks/CD's that feature multiple ar

  • Form builder IZ(item)m]W vZ

    ] form builder LjBJ(item),%?IJ,@      d s]?\夠m6|?I./BmwhWvZ(v.W: :TEST.NUM02+:TEST.NUM03 =v.dBXh6).     BI?s\6|.

  • Black screen when taking picture in imessage

    I have a new iphone 6 and updated to iOS-8.02.  When I try to send a message and include a picture, I click on the camera icon, and can take the first picture.  When I try to do it again, I get a black screen...  Nothing appears.  I have to go to mul

  • Whenever I try to play a video on iTunes, it crashes

    This began happening a couple weeks ago. Since then I have downloaded the latest versians of iTunes and Quicktime. ITunes works perfectly fine otherwise, but I am unable to view any of my rented or bought conent on my computer. When I click to watch,