ListItem customized with Checkbox problem

Hi I want to create a customListItem with a checkbox. I was able to do, but as soon as I select a checkbox other check boxes were also checked.

This is my code

        ListView {
            id: lv_cities
            objectName: "lv_cities"
            listItemComponents: [

                ListItemComponent {
                    type: "header"
                    Header {
                        visible: false
                    }
                },
                ListItemComponent {

                    type: "item"
                    Container {

                        background: Color.White
                        Container {

                        layout: StackLayout {
                            orientation:LayoutOrientation.LeftToRight
                        }
                        horizontalAlignment: HorizontalAlignment.Fill

                        background: Color.White
                        CheckBox {
                            id: member
                            objectName: "member"
                            checked: false
                            onCheckedChanged: {
                                console.log(ListItemData.name);
                            }
                        } 

                          Label {
                              verticalAlignment: VerticalAlignment.Center
                              text: ListItemData.name

                          }  

                    }

                        Divider {

                        }
                    }

                }

            ]

            onTriggered: {

        }
        }

so if I click on a checkbox it gives me the name of a city, but I do not understand why the other lines are also verified.

anyone has a similar experience and can help me?

concerning

Hello
ListView is the reuse of ListItemComponents it is during scrolling.
For this reason, box remains in a State that is activated when reused.

Checkbox State can be stored in the data model. Bind the checkbox checked property to scope a datamodel, in this way, it will be reset to reuse.

DataModel can be ArrayDataModel, GroupDataModel or any other type of model.

In general, the idea is that all the information given and the State is stored in the model, ListItemComponents display only the data to the appropriate lines.

Tags: BlackBerry Developers

Similar Questions

  • I start on the site where I bought Adobe After Effects. Then I pressed 'Download', but the site you get on says (translated from English): there are problems, try again later. Get in touch with the customer, if the problem keept going. "While it

    I start on the site where I bought Adobe After Effects. Then I pressed 'Download', but the site you get on says (translated from English): there are problems, try again later. Get in touch with the customer, if the problem keept going. "So, here am I, I really hope someone knows the answer...

    Thank you

    Are you referring to CC version After Effects?

    If so, you must download and install Adobe Creative Cloud app using whiuch, you can install after effects CC.

    Windows:

    https://ccmdls.adobe.com/AdobeProducts/KCCC/1/Win32/CreativeCloudSet-up.exe

    Mac:

    https://ccmdls.Adobe.com/AdobeProducts/KCCC/1/OSX10/CreativeCloudInstaller.dmg

    Reference:

    Download and install Adobe Creative Cloud apps

  • ADF table with checkbox refresh data binding problem

    Hello.

    I use JDeveloper 11.1.1.3. I need to use the table with checkboxes in each row of the table in my project. I use VO with transitional 'Selected' attribute that has a boolean type.
    Everything works well, wait one thing:
    When you click checbox with valueChangeListener and try to get the selected line in the managedBean you won't get any selected lines. After selecting second maaged bean evil shows that 1 single line is selected. It's my managedBean method:

    public void SelectCountyClick (ValueChangeEvent valueChangeEvent) {}

    DCIteratorBinding it = ADFUtils.findIterator (ITERATOR_NAME);

    int selectedRowCount = 0;
    RowSetIterator laughs = it.getRowSetIterator ();
    Line r = rit.first ();
    If (r! = null) {}
    If ((Boolean) r.getAttribute ("Selected"))
    selectedRowCount ++;
    }

    While (rit.hasNext ()) {}
    r = rit.next ();
    If ((Boolean) r.getAttribute ("Selected"))
    selectedRowCount ++;
    }

    System.out.println ("selected all THE LINES:" + selectedRowCount);


    }

    I tried to change this event to the client event, I got the line number, I put 'true' or 'false' to the code data binding, but whenever I can't correct data after the value change event.

    Please help me.

    The latest idea is updated databing after click of checkbox, I think. Please help me.

    Thank you!

    You must go through the concepts of life cycle of page ADF. In simple terms the Boolean value in the model is not defined in valueChangeListener. Try adding (.processUpdates) valueChangeEvent.getComponent (FacesContext.getCurrentInstance ()); on top of your listener method and see the effect.

    Reference:
    http://docs.Oracle.com/CD/E15051_01/Web.1111/b31974/adf_lifecycle.htm

  • Scrolling with Manager problem

    I created a datagrid customized with a header and vest statusbar.  Extends the DataGrid control manager and it contains, I added a static ColumnHeader (extends Manager), a body (up to VerticalFieldManager) and a static StatusBar (extends Manager).  I gave the class Vertical_Scroll and Vertical_Scrollbars body and the scrollbars appear when there are more lines that can appear in the visible area of the body.  My problem is when I scroll through the lines in the body, the body section only is repositioning itself not when datarow (extends the scope) turns off the screen.  Only when I reached the last row will be the body section extricate himself showing the last rows.  I tried just about everything that I can think of to fix this, but I hope someone can guide me in the right direction.  Moreover, the header and the statusbar are always fixed and visible.  What I need to manually redo my body section as the update field turns off the screen?  I thought the VerticalFieldManager would handle this for me.  Thank you for your time.

    BTW: I use sim JDE 4.7 and Blackberry Tour.

    Too bad.  I thought about it.  My lines were HorizontalFieldManagers at least one active field they contain.  What I need to do, is create a custom listfield, not inherit horizontalfieldmanager.  Thanks in any case.

  • I bought Adobe Acrobat Pro 9.  I used it on my computer for years with no problems.  Today he gave me the following message: "license for this product has stopped working.  You cannot use this product at this time.  You need to fix the

    I bought Adobe Acrobat Pro 9.  I used it on my computer for years with no problems.  Today he gave me the following message: "license for this product has stopped working.  You cannot use this product at this time.  You must repair the problem by uninstalling and then reinstalling this product or contact your COMPUTER administrator or Adobe customer support for assistance. (0)"I then uninstalled and reinstalled using the license key of my package, and I just get the same message.  I contacted customer service and they told me that they are unable to support me and directed me to the forum.  Please help as soon as POSSIBLE.

    Error: "License has stopped working". Windows

  • And anyone who has used the creative cloud cleaner to help with installation problems?, and anyone who has used the creative cloud cleaner to help with installation problems?

    And anyone who has used the creative cloud cleaner to help with installation problems?  I should try?

    Hi Alison,.

    You do not specify the issue that you are facing, but you can restore Photoshop CC 2014.Please use the link below to find out how to install an older version of any Application Adobe CC.

    How to find and install a previous Version of Adobe Apps in CC 2015 | Adobe Customer Care Team

    Link to adobe vacuum as you said use the Adobe Creative Cloud cleaning tool to solve installation problems

    Cloud troubleshooting creative risks troubleshoot Adobe Creative Cloud download and installation issues

    Let us know if that helps you solve/Rolling back Photoshop.

    ~ Assani

  • Using the screen with checkboxes reader.

    Hi all

    I have a check box on a form.  On the tab to the custom text checkbox is read by the screen reader.  Custom text provides explanations on the ground as well as the current state (unchecked).  Is it possible to have the screen reader announce the State of the checkbox on passing unchecked checked?

    If this necessary script or the use of alternative text, an example or an explanation would be greatly appreciated.

    Thank you

    Jelf12

    Jelf12,

    You must be careful to provide too much information to the CSRT, I recommend usually the people rely solely on the text of the caption for the check boxes - if the information is sufficient for sighted users, then in combination with the information technology assistance through our Accessibility API in Adobe Reader the information should be sufficient for blind users.

    For example, if you have a check box that has a legend that is ' Please send me information about new offerings ", which would be perfect for users of screen readers because when they land on the box they will hear"Please send me information about new offerings, check box"and if they uncheck it (you can assume that how to enable/disable a check box is a well-known (, don't need to pass that information), they hear 'off '.  If the user tabs far back they hear the complete explanation except once again, with the modified State reported.

    It is tempting to do too much, but for most of the boxes all what you need to do is ensure that the priority of screen reader is set to "Caption" and move on.

    AWK

  • All of the Images which the different Ratio to a report customized with an action of cultures

    Hi all

    I'm new to Photoshop. I have been struggeling for a few days with this problem...

    1. I have 100 Images with different ration.
    2. I would like to define a custom target ratio.
    3. Then, I want to crop the images, which do not have the target ratio.
    4. These Images must be croped aligned in the center of the image (if the height is too large, the upper part and the lower part of the image would lose the same amount of pixels)
    5. I can interpolate the resolution during this operation to a standard custom resolution if it is different?
    6. Finally I would like to create an action/batch of steps 1 to 5, so that all images are processed automatically.

    I would apriciate all sorts of help a lot!

    Thank you very much

    Save a preset size for truncation tool, then call him upwards in action. Add layers of resizing based on the percentage, when necessary. You still have to individually for each image, but have some practical actions could make it faster. for anything else, you need scripts, which is a whole other story...

    Mylenium

  • Verizon said I can be faced with one problem with my browser and don't charge but ATT, gmail and other

    Tried loading Verizon homepage, but it says I can be faced with a problem with my browser. ATT, gmail between other fine load and Verizon was very well for some time now, what should I do? I'm not tech savvy so please keep it simple for me, thank you.

    Try to clear your browser's cache.

    Firefox button or tools > clear recent history... - details and of course Cache hit only is selected, and then select all and click the clear now button.

  • Presario SR1463CL with drivers problems

    Please be tolerant of beginners.

    I purchased a SR1463CL to add to a DELL Dimension - old but never fails. -the HARD drive was crushed. I replaced the HDD Samsung with Western Digital. I have replace the dial-up modem. All this without problems. I installed Windows XP Pro and SP2 update. My system detects "New hardware" drivers VGA Compatible and multimedia controller. I have had no success finding the right drivers and their installation. My monitor works find, but I have no sound.

    Poster 'sounds, video controllers' Device Manager with the problems. Initial device showed sound and audio by default to the Modem. I removed which and at this point no device is indicated.

    Device Manager shows no driver found for new hardware and online search has failed. Windows Update detects any is available. I checked on the resource one manufacturing line have failed in my downloadsfrom RealTek and Nvidia.Dial - up has had major periods and material has been identified as there's no way for the system. Previous owner had made the back-ups-DVD-but they went "purple haze" and could not be read. That's why I installed XP Pro.

    My modem does not work on and additional time. It will connect and funtion but after a few minutes I'll get "Page not found" displayed.

    So, I use my Dell Dimension for internet troubleshooting. Any help is greatly appreciated.

    Respectfully.

    "Submariners do it deeper."

    Thanks for the information. Due to serious conflicts resulting from auto-updates from microsoft, which I had to reformat the HARD drive and have located since the necessary drivers to the www.sis.com for VGA and www.realtek.com for audio AC 97 readers to be precise. Manually review and choose downloads in the future.

    "Greens, all councils prepare to dive."

    Thanks again for your help. It is greatly appreciated.

    Bamabubblehead went to the abyss.

  • My macbook air running hot and the battery drains quickly can help you with this problem?

    My macbook air running hot and the battery drains fast is a 13 ", at the beginning of 2014.  Processor 1.4 GHz intel core 15Can you help with this problem?

    Apps can affect the performance of Mac, battery, temperature and fan activity - Apple Support

  • just installed new update for itunes. When I go to the page stoe it flashes really hurt. anyone with this problem. is there a solution?

    just installed new update of itune. When I go to store the page, it's really bad flicker.  anyone with this problem. is there a solution?

    Widely not reported, no known resolution until Apple release a new version of iTunes that affects it.

  • two drivers of PXI chassis with Configuration problem

    Hello

    I have two PXI chassis. One is PXI 1033 and works perfectly with the NI PXI-5404, 5105, 6509, 1409, installed 8336. The other is 1036 PXI with the PXI-5404 NI, 8366 installed. When I was trying wreath connect, as master 1033, 1036 as slave, I found several problems.

    1. in the Measurement & Automation Explorer, does not have my good guys in 1033. Instead, there is a sign of the Red Cross in bottom right with 6509, 5105, 5404.

    2. I can't find an another 5404 of the 1036. In fact, I can't find 1036 in MAX.

    Update BIOS. My PXI system is already identified under the name 'NOR PXI - 1033 Embedded MXI Express' and Chassis1 is identified as 'NOR PXI 1033'.

    So I made several tests as below:

    1. unscrew the 5404 1036 slave. MAX can configure 2 1036 chassis. Ok. But when I reconnect 5404 in 1036, same result happened as stated above.

    2 uninstall the driver of 5404, so the 5404 in 1033 does not either now. And then reboot again, same result happens again. Cannot detect the 1033 chassis. Other vouchers in 1036 don't work either.

    Please, any suggestion is highly appreciated.

    Sincerely,

    Bin

    Hi Ben,

    This happens sometimes with MXI-Express:

    Error code 12 with MXI-Express

    http://forums.NI.com/T5/PXI/two-PXI-chassis-connection-with-configuration-problem/m-p/1475876#M9033

    In general, you can read this error 12 means on Device Manager:

    Explanation of error codes generated by Device Manager in Windows XP Professional

    http://support.Microsoft.com/kb/310123

    If it was a problem of bandwidth, PCI or PXI side, you could pull a few cards to see if that alleviates the problem, or that the link from Microsoft over the States, you can disable the driver for other cards.

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I have a frozen screen of Active recovery of white desk with a mouse. I think that the computer is frozen upward with a problem of recovery? Right?

    I have a frozen screen of Active recovery of white desk with a mouse.  I think that the computer is frozen upward with a problem of recovery? Right?

    How can I fix?

    Hello
    • What were the changes made before the problem occurred?

    You can try to restart the computer and check if it helps.

    If above does not help, you can read the following steps to disable the active desktop on the computer and check:

    a. to disable Active Desktop.
    b. right click on an area empty office, point to Active Desktop, and then click view as Web Page to clear the check box.

Maybe you are looking for

  • My air led is orange flashing

    MY air game is orange flashing instead of stay green. What is the problem

  • Search bar default changes setting address bar search

    In the past, I usually kept my search bar on IMDb, since I use that a lot, but I do Google search even more often, so I just type Google search terms into the address bar and hit < Enter >, which has always worked well. It was like having two bars at

  • Retriving former opus after wipe system

    I had recently wiped my computer because if a bad virus and now I canoe get my origanal op back (vista) system I put hp about it and I was wondering is there any way I can recover Vista because xp is really not for me.

  • OfficeJet J6400: 8 [(1.0,-2147221498)]

    FR PC printer aangesloten een netwerk op zijn goed. Alle parts werken prima. PC en zijn gorgeous draadloos netwerk. En zijn ook gorgeous draadloos netwerk printer. Via the squeeze ik lack keer HP Solution Center of «kan niet vinden expensive HP» Info

  • Invalid key product (you have 19 days to activate)

    I have a three pc activation code, which is now appear as invalid on the third computer. What can I do to make this work?