Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Sep 2008

    choicegroup help

    i have 3 things...ie mainform which has choice group which has "yes and no" as items..wen i click yes it should open one sucess form and when i click no it should display error form....which inturn each form have 2 different choicegroups...
    mainform--->choice group(in mainform itself)--->success and error form(both different forms)---->choice group1(success)and choice group2(error)...
    im able to dispatch one form to another using display.setCurrent()...but dunno how to dispatch choicegroup to another form2........pls help

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Deva, Romania

    Re: choicegroup help

    Couldn't you use the choicegroup's getSelectedIndex() method to see which option ("yes" or "no") was selected and then simply use display.setCurrent() to show the next form?

    Also, do the success and error forms each have 2 choice groups or do they each have 1?

    Sorry for understanding so hard

  3. #3
    Regular Contributor
    Join Date
    Sep 2008

    Re: choicegroup help

    i know abt getselectedindex()...is it possible to direct to another form using choicegroup ie after clicking item(without use of command button)to dispatch to another form..similar to the one setcommandlistener in case of dispatching to another form......

  4. #4
    Nokia Developer Expert
    Join Date
    May 2007
    Mexico D.F

    Re: choicegroup help

    Yes, it is possible

    You can set an ItemStateListener to your form


    and then a handler event method will be called each time the item changes its state.

    public void itemStateChanged(Item item)

Similar Threads

  1. Series 80 Choicegroup bug
    By jdiscar in forum Mobile Java Tools & SDKs
    Replies: 9
    Last Post: 2006-09-18, 17:10
  2. ChoiceGroup Command Action HELP
    By cjmarsha in forum Mobile Java General
    Replies: 2
    Last Post: 2005-07-29, 14:44
  3. ChoiceGroup bug in Series 60 MIDP 2.1 Beta for SymbianOS
    By random_john_doe in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-06-04, 10:48
  4. MIDP 1.0 ChoiceGroup too long !
    By ionutianasi in forum Mobile Java General
    Replies: 2
    Last Post: 2003-08-27, 11:35
  5. Mark/Unmark within ChoiceGroup
    By broadk in forum Mobile Java General
    Replies: 0
    Last Post: 2002-10-01, 07:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts