samedi 27 avril 2019

how do i fix simple logic error in codename one?

I am new to codename one. I am trying to build an app in which I am stuck at a point. In attached first screenshot as you can see, there is an accordion named as Environment and inside Environment there is a Picker. Same thing is there for the other accordions. What I want to do is when user selects one of the task from picker, other accordions should be non editable. for instance, user selected picking up a trash from Environment accordion, he shouldn't be able to select any other accordions.

in second picture I don't want the user to select more than one type. can someone help me with that?

https://imgur.com/EYzDLP1

https://imgur.com/SAcu0UN

I tried doing it by if else loop, but its getting worse.

Expected Result: User should be able to select only one deed type as shown in image.

Actual Result: N/A

Aucun commentaire:

Enregistrer un commentaire