09-18-2009 04:35 AM
Hello all, I have a question that I can't solve with my current knowledge, and couldn't find an alternate solution on the internet. So here it goes:
I want to add variable number of buttonfields (depending on the data coming from the database). But the problem is how to fire the clicking event of the buttons ? There is the sample code I've written:
ButtonField mybutton = new ButtonField(ans.getText(), FIELD_HCENTER | ButtonField.CONSUME_CLICK)
protected boolean trackwheelClick(int status, int time)
System.out.println(nameID.toString()+" "+ stateID.toString());
return true ;
please don't be worried about any variable names etc, the only problem is I can't see nameID and stateID on the console. so somehow the buttons I created in this loop don't do their events. What should I do ?
Solved! Go to Solution.
09-18-2009 06:05 AM
09-19-2009 02:51 AM