CodeName One about lists -


i have problem want use list , when click on component of list take me form (make action) meaning if click on item list depending on selected index takes me form.

is in gui builder app or manual app?

for gui builder use action event callback list see: http://www.codenameone.com/how-do-i---handle-eventsnavigation-in-the-gui-builder--populate-the-form-from-code.html

then index/selected item using:

int index = list.getselectedindex(); object value = list.getselecteditem(); 

then can show form want using:

showform("formname", null); 

in handcoded apps can selected item/index in same way like:

form.show(); 

to show specific form.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -