How  to set DataGrid one cell colour

I want to set one cell colour in DataGrid,for example,when a
set a CheckBox in DataGrid ,I want letset this Cell's colour
change

One way to work around this, might be to create your own
cellrenderer with an extra backround movie clip. So as you pass the
value of the check box, either you set the fill color of the BG
movie clip or just hide/show the BG clip.
I hope the following brief script might be of help,
class myCell extends UIComponent
var bg:MovieClip;
var cBox:CheckBox;
function createChildren(Void) : Void
// Create a new CheckBox
// Create a new Background Clip
bg = this.createEmptyMovieClip("bg_mc" , 0);
bg.beginFill(color, fill);
bg.moveTo(0, 0);
bg.lineTo(4, 0);
bg.lineTo(4, 4);
bg.lineTo(0, 4);
bg.lineTo(0, 0);
bg.endFill();
size();
function size(Void) : Void
super.size();
this["bg_mc"]._width = width;
this["bg_mc"]._height = height;
invalidate();
function setValue(cellVal) : Void
if (cellVal == true)
bg._visible = true;
else
bg._visible = false;
Notes: BG: is the background movie clip.
You will need to use AS based cellrenderer

Similar Messages

  • How to set colors in cells depending the conditions  in alvtree

    Hi All,
    Could you please provide me idea or sample program how to set colors in cells depending the conditions  in alvtree.
    Thanks,
    Suresh

    When running vim in a terminal, it will use whatever colour scheme is defined by the terminal.  You should have a look at this thread:
    http://bbs.archlinux.org/viewtopic.php?id=51818
    Also, check the wiki article on Xdefaults.

  • How to set background as white colour for Bitmap images in sapscripts?

    Hi,
    Can anyone let me know that How to set background as white colour for Bitmap images in sapscripts?Actually,I am getting grey as background as defualt for my Bitmap images.
    Sorry,in my previous question,I posted viceversa.I am mistaken.
    Thanks,
    Balaji

    Hi,
    The problem can be solved by changing the way you save the original image.
    Take a look at this thread which explains;
    Problem with logo
    Regards,
    Nick

  • How to set up one-button embed-hotlinking for Flash SWF?

    Hello,
    I'm publishing a webcomic in Flash.swf format and I'd like to make it as easy as possible for people to grab my comic and put it on their website. How can I set up one-button hot-linking that will automagically provide the code so that they can easily drop it into their website, similar to the way YouTube does with video?
    Thanks,
    Tom

    you can use the following.  the bolded lines require you to use appropriate values:
        <div id="flashContent">
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="yourswfwidth" height="yourswfheight" id="swfname" align="middle">
                    <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--[if !IE]>-->
                   <object type="application/x-shockwave-flash" data="http://www.yourdomain.com/path/swfname.swf" width="yourswfwidth" height="yourswfheight">
                        <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                        </a>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </div>

  • In Numbers, how can I cause one cell to automatically follow a running balance as it moves down a column?

    I've developed a checkbook type spreadsheet in Numbers where the running balance moves down the column one row at a time for each check entry. I need to use that current running balance for additional calculations even though it changes rows for each entry. How do I cause the cell that is using this running balance to follow the current balance as it changes rows for each entry? Additional Information - the formula for the result in the running balance column does not display it's result until a check entry is made for that row.

                                       tt2                                   me                              bob                                   you
    Football Bowl Games (College), crazy folk weathering sub-freezing weather in NY's Times Square and me home cozy with ASC and my geriatric dog and Alzheimer's Mom. Big nite!
    As Charles Schultz (Peanuts toon creator) said, " Don't worry about the world coming to an end today. It's already tomorrow in Australia. "
    TOAST: May I live forever, and you live forever and a day!
    ÇÇÇ

  • How to set only one Index-group for a Search-iView as default?

    Hi Everybody,
    i have a lot of index ID's for searching in different folders. Is it possible to set only one index-group as default for a search iView? Until now i get all groups as default in every search. It's inconvenient for the users to use the link of 'show options' in order to uncheck the other index ID's.
    regards,
    Seed
    Edited by: seed_mopo on Jun 6, 2008 5:02 PM

    hi Seed,
    To achieve this you have to follow the below steps
    1. Create a new set of search options, choose System Administration -> System Configuration -> Knowledge Management -> Content Management -> User Interface -> Search -> Search Options Set in the portal.
    In that you have a field 'Index Groups', wherein you can specify which index group, the user has to search in. If there are multiple index groups, mention your index groups separated by comma.
    See here for more information
    http://help.sap.com/saphelp_nw04/helpdata/en/cc/f4e77ddef1244380b06fee5f8b892a/content.htm
    2. You have to specify the option set that you created in step 1 in the default KM search iview. In the iview properties, under the field search option set, mention the option set that was created for this index group or multiple index groups.
    This way, you can configure KM search iview to search in a single index group or multiple index groups.
    Revert back in case of any queries
    Regards,
    Ganesh N

  • How to set only one row selection  in ALV GRID DISPLAY

    How to set single row selection in grid display
    not multiselection.

    Hi,
    In the USER COMMAND, build the code to check the REFRESHED Data & then check the number of records with SEL  = 'X'.
    If more than single entry found, then raise an error message.
    Best regards,
    Prashant

  • How to set up One iTunes Library with Multiple Hard Drives

    Hello,
    I have a question about setting up a daisy chain of external storage hard drives for my itunes library and need some advice.  I have run out of room on my 4TB external storage.  I have an additional 4TB and a 2TB external storage (all are MyBooks) and trying to figure out how to separate out my itunes folder:  I would like to put the TV on one 4TB and the Movies and the other 4TB and the Music/Apps/etc on the 2TB.  Here are my questions
    1.) How to I point my iTunes to where I have moved them?  Just make and alias of the folder and put that back in the original folder?
    2.) How do I get the new iTunes downloads to go the correct folder to download so it does not set up a new library for downloading?  Can I set more that one location in my preference?  If so- how?
    I have looked in the forums and all the information is older and does not address this exact issue. 
    Set up:
    Mac mini hooked up to Vizio TV running Lion 10.7.2
          Processor 2.26 GHZ Intel Core Duo 2
         Memory 4GB ( do not really store anything on this one)
    MY Books
         1  2TB   Mac OS Extended (Journaled)
         2  4TB   Mac OS Extended (Journaled)
         1  1TB   Mac OS Extended (Journaled)-  this is for documents, etc
    All these are daisy chain with 800 Firewire to the Macmini and hooked to TV with HDMI.
    Any suggestions would be helpful.  I can not download anything else from iTunes until I get this resolved and it is a real bummer.
    Sara

    Here are three different methods >
    How to use multiple iPods, iPads, or iPhones with one computer, http://support.apple.com/kb/HT1495
    This article > iOS: How to transfer or sync content to your computer, http://support.apple.com/kb/HT1296
    suggests using contacts groups.
    When syncing contacts, you can choose to sync all of your contacts or only selected groups.
    You can select a group of contacts to which all new contacts created on your iOS device will be added.
    You can set up groups in the Address Book application.
    If you are all going to use the same iTunes apps library, turn off "Automatically sync new apps" in the apps tab just below the list of apps.  Then you won't get new apps on your device unless you select them.

  • How can I make one cell search multiple other cells for a string of text and return whether or not the string appeared in the cells searched?

    https://www.icloud.com/iw/#numbers/BAI31boMQXsGKc8NH22BlqWRzbs8PdgWBs-F/2014-15_ Curriculum_Planning_w_CCSS_(Web_Shared)
    My document is above, if anyone wants to help this crazy teacher invent a better lesson planner.
    Here's my predicament.  The state in which I teach requires teachers to keep up with which of the Common Core State Standards (CCSS) their instruction is addressing and when the standards were addressed.  I got the bright idea to do this through a spreadsheet in Numbers because our school is getting iPads this year, so it'd be pretty sweet to be able to assemble all of my lesson plans in one massive spreadsheet.  On the "AP Lesson Plans" sheet, I've got a few weeks worth of lesson plans entered in.  I'm planning on going in and using the drop-down menu next to each lesson plan to add all the CCSS on a per-day basis.  This is simple enough, but here's where I run into a problem.
    I want the "AP Standards" sheet to concatenate, in cells D3 through G76, the dates on which a standard was covered.  What I need is some way for, say, Cell D3 to look at the table on the "AP Lesson Plans" sheet and concatenate the dates of every lesson which has the standard in column A (In this instance, RL.11-12.1).  At the end of the day, the functionality I need is that I can enter my lessons and CCSS on the "AP Lesson Plans" sheet and go to the other sheet and see a summary of which standards have been addressed, when, and how often.
    If that's as clear as mud, well, I teach literature, not technical writing, so my apologies.  I'm more at home with Jonathan Swift than spreadsheets.  I'll gladly help you help me if you'd let me know what you need to know.  Oh, and to illustrate my knowledge level (just enough to be dangerous), I've left you the formula of my best stab at making cell D3 behave as desired.  It's the gray box on the "AP Standards" sheet.  Yikes.

    Hi Arrdenet,
    Congratulations on the nested IFs. I haven't tested that formula, but it is impressive. It will be very difficult to debug if it doesn't work, and I think it would make Numbers very slow.
    Here is a different approach. After you enter all the CCSS, add another column with HLOOKUP.
    Edit:
    B2 (and Fill Down)
    A2 (and Fill Down)
    =IFERROR(HLOOKUP(A$1,C2:E2,1,0),"")
    HLOOKUP looks for the value in A1 in all the CCSS columns.
    IFERROR is to stop the error triangles appearing and returns "" (NULL) instead.
    Then sort by column A.
    Not a complete answer, but it might get you started.
    Regards,
    Ian.

  • How to set Datagrid 1st row selected

    I want to set 1st row as selected = true as default in
    datagrid after loading the form which out clicking on any item i
    want to set the 1st row as selected, how can i achieve this.
    Thanks in advance

    Thanks for your help,
    Here's the code which i wrote
    datagrid creationComplete="changeColor();"
    [code]
    private function changeColor():void
    dgrid.selectedIndex = 0;
    dgrid.setStyles("selectionColor","#800f3e");
    [/code]

  • I have four email accounts, i do not know how to set up one of them as a default account, can you help me?

    i have 4 email accounts, how can i set up a default email account?

    Depends on what you mean by "default account" and maybe what version of OS X you are using. (Your profile says "MacBook Pro (Retina, 15-inch, Late 2013), Mac OS X (10.1.x)" but MBP-R can't run 10.1.x.
    Maybe you mean for new messages. If so, then on 10.10.x use Mail > Preferences > Composing > Addressing: > Send new message from:

  • How to set a single cell editable in alv Webdynpro Abap

    I am trying to edit a single cell on lead selection. here the steps i did to achive this.
    1. I added a Attribute READ_ONLY  inside my node of type WDY_BOOLEAN.
    2. i am conditionally making this Attribute - READ_ONLY = 'X'.
    3. i am binding my node with new values.
    4. for ALV here is the code i have added.
    DATA :lo_cmp_usage TYPE REF TO if_wd_component_usage,
            lr_column    TYPE REF TO cl_salv_wd_column,
            lr_table_settings TYPE REF TO if_salv_wd_table_settings,
            lt_columns TYPE salv_wd_t_column_ref,
            ls_columns TYPE salv_wd_s_column_ref,
            lr_input_field TYPE REF TO cl_salv_wd_uie_input_field,
            lo_interfacecontroller TYPE REF TO iwci_salv_wd_table ,
            lv_value TYPE REF TO cl_salv_wd_config_table.
    *Taking reference of the Component Usage
      lo_cmp_usage =   wd_this->wd_cpuse_cu_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
      lo_interfacecontroller =   wd_this->wd_cpifc_cu_alv( ).
      lv_value = lo_interfacecontroller->get_model( ).
      CALL METHOD lv_value->if_salv_wd_column_settings~get_columns
        RECEIVING
          value = lt_columns.
      LOOP AT lt_columns INTO ls_columns.
        lr_column = ls_columns-r_column.
        CASE ls_columns-id.
          WHEN 'USR_ACT_RT'.
            CREATE OBJECT lr_input_field
              EXPORTING
                value_fieldname = ls_columns-id.
            lr_column->set_cell_editor( value = lr_input_field ).
            lr_input_field->set_read_only_fieldname( value = 'READ_ONLY' ).
        ENDCASE.
      ENDLOOP.
      lr_table_settings ?= lv_value.
      lr_table_settings->set_read_only( abap_false ).
      lv_value->if_salv_wd_column_settings~delete_column( id = 'READ_ONLY' ).
    but instead of changing the particular cell where i have marked READ_ONLY = 'X' it is changing whole column 'USR_ACT_RT'  data as editable .
    If anybody can  please help ASAP

    Hi Tashi,
    Thanks for your reply,i have did the same way u are doing here for setting the READ_ONLY Attribute conditionally.
    here is my code for setting the read only attribute .
    IF NOT lo_nd_nd_cost_rate IS INITIAL.
        lo_nd_nd_cost_rate->get_static_attributes_table( IMPORTING table = lt_nd_cost_rate ).
      ENDIF.
      IF NOT lo_el_nd_cost_rate IS INITIAL.
    * get all declared attributes
        lo_el_nd_cost_rate->get_static_attributes(
          IMPORTING
            static_attributes = ls_nd_cost_rate_sel ).
      ENDIF.
      lv_datum = sy-datum.
      lv_month = lv_datum+4(2).
    ** @TODO handle non existant child
      LOOP AT lt_nd_cost_rate INTO ls_nd_cost_rate WHERE quarter = ls_nd_cost_rate_sel-quarter.
        IF ls_nd_cost_rate-quarter = 'Q1'.
          IF ( lv_month  EQ '01' OR lv_month  EQ '02' OR lv_month  EQ '03' ).
            ls_nd_cost_rate-read_only = 'X'.
          ELSE.
            ls_nd_cost_rate-read_only = ''.
    *   report message
            CALL METHOD lo_message_manager->report_warning
              EXPORTING
                message_text = lv_text.
          ENDIF.
        ELSEIF ls_nd_cost_rate-quarter = 'Q2'.
          IF ( lv_month  EQ '04' OR lv_month  EQ '05' OR lv_month  EQ '06' ).
            ls_nd_cost_rate-read_only = 'X'.
          ELSE.
            ls_nd_cost_rate-read_only = ''.
    *   report message
            CALL METHOD lo_message_manager->report_warning
              EXPORTING
                message_text = lv_text.
          ENDIF.
        ELSEIF ls_nd_cost_rate-quarter = 'Q3'.
          IF ( lv_month  EQ '07' OR lv_month  EQ '08' OR lv_month  EQ '09' ).
            ls_nd_cost_rate-read_only = 'X'.
          ELSE.
            ls_nd_cost_rate-read_only = ''.
    *   report message
            CALL METHOD lo_message_manager->report_warning
              EXPORTING
                message_text = lv_text.
          ENDIF.
        ELSEIF ls_nd_cost_rate-quarter = 'Q4'.
          IF ( lv_month  EQ '10' OR lv_month  EQ '11' OR lv_month  EQ '12' ).
            ls_nd_cost_rate-read_only = 'X'.
          ELSE.
            ls_nd_cost_rate-read_only = ''.
    *   report message
            CALL METHOD lo_message_manager->report_warning
              EXPORTING
                message_text = lv_text.
          ENDIF.
        ENDIF.
        MODIFY lt_nd_cost_rate FROM ls_nd_cost_rate INDEX sy-tabix TRANSPORTING read_only .
        CLEAR ls_nd_cost_rate.
      ENDLOOP.
      lo_nd_nd_cost_rate->bind_table( lt_nd_cost_rate ).
    please see in the below sceen shot the last two cells are editable in the User Actual Rate Column whlie the selected rows cell is not editable. Please revert if u have any input for same.

  • How to set ADF table cell value in managed bean

    Hi all,
    I have an ADF table on my page, let's assume with three columns with Input text box: col A, col B and col C where column C is hidden, when I click on Submit is possible to set in managed bean the value of column C for each rows?
    Thk in advance.
    L-

    Hi,
    you can create a button with an ActionListener. In the ActionListener you can iterate over the rows (using the iterator) and set the value on the attribute. If you need to save the changes you can call the commit operation binding.
    Linda

  • How to set data in rtf document?

    Hi friends,
    I have a rtf document can anyone suggest how to set data in cells of an rtf document?Is there any way?
    Thanks in advance..
    Regards ,
    Soumyanil

    Convert the resultSet from the db to a Object[][], let's call it result.
    Then create a JTable (jTable1).
    On the JTable you need to define the headers, and the data itself.
    You can get the headers from ResultSetMetaData. Convert these to an array again (headers).
    Now use these methods to create a model and set the model of the JTable.
    Model model =  new DefaultTableModel(result, headers);
    jTable1.setModel(model);That's about the basics.
    If you need more info, use at the tutorial at sun's homepage.
    How to use Tables:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to set a page item to either of two sources?

    Hello Folks,
    I would like some advice with the following:
    On P1 there is a text field, say p1_text. The users enters a value into p1_text. This is validated.
    If the p1_text value validates OK, and the next button is pressed, there is a branch to page 2, which has a sql query page item named p2_dest which should use :p1_text in a where clause.
    If the p1_text value does not validate OK, the user is then presented with a Select List named p1_select (p1_text is now hidden). When the next button is pressed, there is a branch to page 2, and the sql query page item, p2_dest should now use :p1_select in a where clause (instead of :p1_text).
    I have the validation and presentation of either p1_text or p1_select working OK, but would really appreciate suggestions on how to set the one item on page 2 with either of the page 1 items when the branching occurs.
    Thanks
    KIM

    I used pl/sql in a page process on P2 to implement this logic to set a P2 item. I removed the setting of items from the calling page branch process.
    Cheers
    KIM

Maybe you are looking for

  • Error while using external service from application service

    Hello All, I have exposed webservice from a CAF project that i am importing as external service in another CAF project. Now i am using application service to directly call the external service. following is the code in my application service: Ns6_get

  • VAT pulling thru on billing document for vat exempt customer

    Hi, I have a ship-to customer exempt from VAT which has pulled thru 0% correctly on the Sales Order but the Billing document has billed VAT (presume beacuse it looks at Payer) how do i fix this please?

  • Mac OSX: need a batch export function

    I am in need of batch export function for PP on MAC OSX. I know that windows based Premiere Pro has Media Encoder that can bring up render queue. Why is that missing here? I use Premium Production Suite CS5 (educational) and there is Adobe Media Enco

  • Dremweaver CS6. Design View is not working.

    Hello. Design View is not working. I got this instead of normal View. What wrong with it? Regards, Nata

  • CS4 crash: preview an image with a secure URL

    Every time I create an image with a HTTPS URL as the image location, DW hangs/crashes. This is a relatively recent problem (last 4 months or so)... I do a few game related sites, and we have to include this image all the time in the footer. Unfortuna