CheckBox in DataGrid - how to check without changing row selection?

Hi Everyone
I have a CheckBox set as the renderer/editor for a column in
my DataGrid
and I would like users to be able to check and uncheck the
boxes on
different rows without selecting or changing the selection of
the
current grid row.
Is this possible? Any help would be very much appreciated.
Thanks
Gary Q

Hey Gary,
When you are defing the checkbox as itemrenderer then create
a new class for that and make one checkbox component in that.
then in the dataprovider of your datagrid append one
<selected>false</selected> tag. Then in your renderer
class check for the selected tag like
override public function set data( value:Object ):void
super.data = value;
if(value == null)
return;
var xml:XML = XML( data );
if(xml.selected == "false")
cbx.selected = false;
else
cbx.selected = true;
private function updateSelected():void
super.data.selected = cbx.selected;
[Bindable] public var selected:Boolean;
<mx:CheckBox id="cbx" width="14"
click="updateSelected()"/>
</mx:HBox>

Similar Messages

  • Changing row selection of a af:table component in a managed bean

    Hi,
    how can ich programmatically change the selected row of a <af:table> component within a managed bean class?
    I have a table which depends on the date settings of a <dvt:timeSelector> of a <dvt:lineGraph> component. Now when the timeSelector is moved to new dates the table should be refreshed by executing the query for the table again with the new dates. The problem is when the query of the table's view object is executed again the first row will be automatically selected after executing.
    Now I want to achieve that the last row I have selected will be selected again after moving the time selector.
    I searched already in the OTN Discussion Forum but didn't find a fitting solution.
    Thanks in advance!

    The problem is that executing the query moves the current roe to the first one.
    What you can do is to save the current row (its pk), execute the query and then set the current row to the pk of the saved selected one. Set the table attribute displayRow="selected" and set the selected row of the table to the now current row.
    One problem is that you have to be sure the last selected row is still in the record set of the new query result.
    Here are some pointers with code:
    Keep the scroll position on partial commit in <af:table>
    Jdev 11G ADF BC: rollback and keeping current row problem
    How can I programmatically select row to edit in ADF - 11g
    Timo

  • How To Sync WITHOUT Changing App Pages On Device

    *Help please. I can connect and sync my iPod Touch without probs. I want to sync apps WITHOUT changing the pages, or location of icons on each page, as they appear on my device. How may I do this?? There are options to "sync by" size, date, etc, etc. None of those appear to allow me to keep the apps arranged as I have them when I launch iTunes. There must be a way! Thanks!!*

    *Not sure what you mean. I do not have my apps organized by folders. I do have my apps organized by my usage (most used on page 1, etc). I sync MANUALLY. Therefore, when I go to app tab for syncing, the apps are shown as they appear on my device, but are grayed-out. When I check the "sync apps" box (upper left) the apps rearrange themselves into a random order; change pages, etc. I immediately uncheck the box and do not sync. If I do sync the apps, the sync process rearranges the apps into the random order shown when I check the box. All I want to do is sync my apps WITHOUT messing with the order in which I have arranged them on my device. HELP!*

  • How to check and change the dafault session timeout of the Portal?

    Hello,
    When leaving a portal page open without using it for a certain amount of time and then accessing it again the Session times-out.
    Where can I check and change this default time-out time in case I would like to extand it for the end users?
    Roy

    Hi Roy,
    Session timeout includes multiple settings (J2EE setting and SSO setting at User Management).
    Defining the Timeout in J2EE Session
           1.      Open file web.xml (path depends on the version of EP6.0. If it is based on NW04, then
    ..\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF
           2.      Enter a value in minutes under <session-timeout>. The value should roughly correspond to the length of a synchronization cycle. The default is 30 minutes.
    After a successful login, it receives a SSO ticket which is valid for longer duration (generally 8 hrs, default which you can changed using  "System Admin" as mentioned by Yoel.
    Thanks,
    Swapan

  • How to crop without changing aspect ratio/Crop mode

    Is there a way to crop in Lightroom without changing the aspect ratio? That is my first question.
    My second question, is it better to use APS-C crop mode on my full frame Sony A7R if I know at the focal length I'm gonna crop, or just take it full frame and crop in the software? Are there disadvantages to this when it comes to uses flash's etch?
    Third, Currently I do not have a portrait lens as the Sony A7R is new and does not have many lenses out yet. Until the 90mm lens comes out I was thinking I could use the Zeiss 55mm 1.8 in Crop mode for a portrait lens. That would make it around 88mm would it compress the background nicely the way an 85mm lens normally does for portraits?

    This is what I usually do, now I know for sure my aspect ratio has been locked. As far as shooting in crop mode though, what I meant about that is this; For portraits, if you take a 55mm and shoot a portrait with it, the background doesn't look that compressed, which I like. Even if it's at a good F stop. It'll be out of focus, but not "compressed" And seems to show more flaws in the person. This is why with my Canon I always used my 85mm or my 100mm. I know some who will only use a 200mm due to this type of compression that happens at longer focal lengths.
    If I was to shoot in crop mode, making it 88mm, would it give me that affect? The compressed look I get from a 85mm? Or would it simply just crop it like I do in post and not really make a difference.
    Sony has yet to come out with a portrait lens and I need one bad, I've been offered little jobs here and there and can't take them because I don't want to disappoint them. I'm waiting for their 90mm, because that is close the 100mm and 85mm I shot with on the 5D for portraits.
    Not to same the subject here but,  'Benjamin Root Photography,' has been a great help to me on this forum. I also torn between getting the 16-35mm F/4, or the new 24mm F1.4 prime, for wide landscape shots, because landscape and hiking is where I do most of my photography.
    I don't plan on actually shooting a landscape at 1.4, but if it's 1.4 that means if I stop it down to F 8 on a landscape it'll be tact sharp. But it is not a Zeiss and is only going to cost 500. On the other hand, there is the 16-35mm, still I'd shoot around F 8 or even higher for landscape, the problem is, if it's F/4 won't that mean it'll have to stop down much further than the 24mm to get a sharper picture?
    I don't guess I can go telephoto, like anything over 100mm because I have the A7R. People say over 100 mm it has shutter vibration, so at 200 or 300 I wouldn't buy until the A7R ii comes out. I'm not willing to get the regular A7 ii because I really like the advantage of having all those megapixels for cropping purposes, and it just plain looks better. Which is why I took my Sony A7 back for the A7R. Everyone was saying the photo's were more impressive than the 5D Mark iii's with the Zeiss 55 1.8 vs 5D with 50 1.4L. That wasn't really the case with the A7, but when I got the A7R I seen a HUGE difference in dynamic range.
    I've heard the A7 is better at focusing than the A7R, but since I switched to the A7R I have noticed literally no difference. But I don't shoot fast moving subjects.
    With both cameras I notice the face detection and EYE AF is hard to get to work properly. If I let it auto focus fully It'll focus on the wrong thing a lot of times even though the green boxes say the right thing.
    So, I have been putting it on a single point, keeping it at the center, focusing on the eye, and then recomposing. That's mostly how I did with the 5D anyway. I never allowed it to choose focus points for me either.

  • How to check the change log of a variant

    Dear Gurus,
    I want to check the changes done (Change log) in a variant of a program. But i could not find any options around. Please suggest me how can I find the changes done on a variant.
    Thanks in advance.
    RathiM

    Hi Koteswar!!
    Vishal was perfect in his reply to your query. But still as you insisted here comes a step by step elabu2026
    1.     Execute the transaction SE38
    2.     Give the program name in the field against the Program
    3.     In the sub objects section select the radio button variants
    4.     Click on Display
    5.      You will now lead to the ABAP: Variants initial Screen where you enter the variant name in the field against the Variant
    6.     Now traverse through the path utilities-Find  from the main menu
    7.     You will be prompted with a Find variant Popup where you can give the respective variant name and click on execute.
    8.     Yow will be returned with a screen having information regarding Variant name, short description, Environment, Protected, Changed by and Last Changed.
    Trust that suffice to your query!!
    Regards,
    Damanaidu J
    Edited by: Damanaidu jawaharlal on May 22, 2011 1:01 PM

  • How to check mass change(vendor) done by any particular user .

    Hi,
    What is a transaction used  to check mass change(vendor) done by any particular user .
    Thanks,
    Dharmesh

    HI
    pls try this table CDHDR
    Thanks & Regards
    Phaneendra

  • How to check number of rows processed in a package

    i have a pakage wid at least 11 procedures which runs on running a report now user run the report and he told me that records are not fully processed records are less so how to check how many records are processed so i can conform the data
    its urgent plzz any suggestion
    thanks a lot

    And here's some hints for you posting on the forum...
    a) do not post in UPPER CASE unless you are highlighting a word or two. Typing everything in UPPER CASE, is considered shouting and is not polite.
    b) do not say that your requirement is "urgent". Everyone here is a volunteer with their own jobs to do and your requirement is not "urgent" to them. Suggesting they drop everything to help you is poor netiquete and, again, quite rude. It also presumes that your issue is somehow more important than other people who have posted asking for assistance. Sure, everyone else would like their question answering as soon as possible, but they aren't so rude as to demand urgent attention, so neither should you.
    c) Always tell us your database version. The answers you are given may vary depending on the capabilities of the database version you are using and if you don't specify a version, people will have to assume you are using the latest supported versions and the answers may not work for you if you have a less capable version, even if those answers are technically correct.
    d) Always try and give an example of what you mean. Provide sample tables (create table statements) and sample data (insert statements), with example code or queries that you've tried (where relevant), showing what you expect to get as output and explaining any logic that is to get from the source to the output.
    e) Post any code or data inside {noformat}{noformat} tags so that it retains formatting on the forum.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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 can I make a row selected in JTable?

    I want to make a row selected and highlighted in JTable programmatically.
    But, I couldn't find method like setSelected(int row).
    How can I do this?

    try this ....
    private void makeRowVisible(JTable table, int row) {
         java.awt.Rectangle cellRect = table.getCellRect(row, 0, true);
         if (cellRect != null) {
              table.scrollRectToVisible(cellRect);
    }

  • How to check and change quality of the photos taken

    Hello,
    Would you please suggest where I can change the quality of the photos taken by my Sony Xperia Z3 Compact?

    Hi Pollyjourn,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    You can also try looking through he user guide for the device. I have supplied a link for the online user guide and the PDF version of the user guide.
    Online user Guide
    http://support.sonymobile.com/global-en/xperiaz3compact/userguide/General-camera-settings/
    PDF version
    http://www-support-downloads.sonymobile.com/d5803/userguide_EN_D5803-D5833_1_Android4.4.pdf
    I hope this helps.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How to Check Creation/Change data for PO Service Line item

    Hi, I was wondering what field(s) from what table(s) I would have to check if I wanted a report to look for the creation or chnaged date of a specific service item in a PO?
    Currently it is using the EKPO-AEDAT field to check if a PO line item has been changed, but I would like to narrow it down to just some service line items instead of capturing all the service lines in a recently changed PO line item.
    Thank you very much in advance for the advice!

    Hi Rashid, thanks for the advice, but it doesn't really solve my problem.
    What I want to know is if there is a field where the date of a service item was created in a PO line item is stored, so that an ABAP report can be written to retrieve newly created service items from POs.

  • HT4623 i had a green dot in my iphone 3g display ..how to rectify without changing display

    i had a green dot on the middle of the screen from last two weeks i dont know how to rectify that pls suggest me to personal mail id ([email protected])...i hope any one to help me!!!!!!!

    Zoom feature is covered in the manual
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • How to Check for Default Applet Selection

    Hello all,
    I'm new to the Java Card world, so I'll warn you in advance my questions will be basic. I appreciate your willingness to help us newbies out.
    I've been given a smart card and applets to dissect an reverse engineer. Currently, Applet 1 is loaded onto the card. I've tried installing the Wallet demo applet onto the card, and by all accounts it appears the applet has loaded. However, I cannot select the Wallet demo applet, but I can send APDU commands to Applet 1.
    How can I check to see if Applet 1 is selected by default? My thought is that Applet 1, or Global Platform (2.1.1) has locked down selecting another applet.
    Any suggestions are greatly appreciated.
    Thanks,
    Collin

    Ok, but as per specification applet selection should still be handed by the OS before it hands them to the default selected Applet. The default selected Applet should not be able to block SELECT by Name. It does however receive the APDU if no selection could take place.
    If this card has Global Platform installed you could post the output of some GET INFO APDU's to see what is installed on the card. You will need to authenticate to the cardmanager to get permission though.

  • How to check the availability of selection

    Hello to all !
    I have a script fills in the  selected area. But if the user has not made a selection, the string Mybounds = doc.selection.bouns an error. How I can check is the selection are not ?

    You could wrap (var myBounds = app.activeDocument.selection.bounds) in a try clause.

Maybe you are looking for

  • Oracle Application Server 10g Staging - export error - Urgent

    Dear All, I am trying to stage a AS 10g test environment from a production environment in a solaris environment, i am following the following document http://download-uk.oracle.com/docs/cd/B14099_19/core.1012/b13995/prodtest.htm I am at the step 4 b.

  • ITunes Music has no volume

    I recently installed iTunes on my HP Media Center PC and using EZ Vinyl Converter, created a file with album tunes. When playing the tracks in iTunes, I see the progress bar, but there is no volume. None of my volume controls is on mute. Suspect inco

  • Record Control

    Hi! I'm have a problem with sound recording. I want to capture sound and write it to output stream. According to MMAPI 1.2 this is done like this: try {     // Create a Player that captures live audio.     Player p = Manager.createPlayer("capture://a

  • How do I clear my searching history?

    I tried resetting Safari, clearing my cache, and clearing the history, but after I do all this it still tries to auto-fill when I type something in the search field in Yahoo. How do I delete everything I've typed in a search field?

  • Random Questions (Scorm Limitations)

    I'm battling with Captivate and my LMS as to what is the problem with some of my quizzes. I have several quizzes that were created in Captivate 1. Just recently I started randomizing the questions using Captivate 3. The first one that I tested in my