B4J Question Checkbox group

Discussion in 'B4J Questions' started by moore_it, Jun 12, 2019.

  1. moore_it

    moore_it Active Member Licensed User

    Hi all,

    how i do for have one event in a group of checkbox ?

    Thanks in advice
     
  2. DonManfred

    DonManfred Expert Licensed User

    set the eventname for all Checkboxes which belongs together the same eventprefix. You then can use ONE event for all of them.
     
    José J. Aguilar likes this.
  3. moore_it

    moore_it Active Member Licensed User

    thanks DonManfred but:

    if i have four checkboxes and the last if checked put false at all the others i have four events
     
  4. DonManfred

    DonManfred Expert Licensed User

    You can use ONE Event. Where exactly is the problem?
    Create a small project which shows the issue and upload it.

    You also can put all checkboxes in a list (all which belongs together) and iterate triugh the list and react accordingly.
    step 1: iterate over the list and set them all unchecked.
    step2: set the checkbox checked on the clicked one.
     
  5. moore_it

    moore_it Active Member Licensed User

    but if i modify the value of a checkbox the event start.
    If i put true on a checkbox that put false on other x checkboxes i have x events ...
     
  6. klaus

    klaus Expert Licensed User

    If you want to have only one CheckBox checked at the same time use RadioButtons instead of CheckBoxes.
     
  7. moore_it

    moore_it Active Member Licensed User

    Ahhh sorry for my stupidity !
    Thanks Klaus
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice