Creating multi forms  in a midlet

hi everyone,
i want to create a quiz, here i would like to know how to cal one form another.. anyone can help me.
here i am giving my code.. i am new to j2me, i dnt knw how to cal 2nd from into command action
public class Quiz3 extends MIDlet implements CommandListener {
  private Display display;
  private Form form1;
  private Form form2;
  private Command exit, choose;
  private ChoiceGroup technology;
  private ChoiceGroup Test1;
  private int index;
  private int index2;
  public Quiz3() {
    form1 = new Form("Technologies");
    form2 = new Form("Testing");
    technology = new ChoiceGroup("Select Technology Which You Know", Choice.MULTIPLE);
    Test1 =  new ChoiceGroup("Select The City", Choice.MULTIPLE);
    exit = new Command("Exit", Command.EXIT, 1);
    choose = new Command("Choose", Command.SCREEN, 2);
  public void startApp() {
    display = Display.getDisplay(this);
    technology.append("JAVA", null);
    technology.append("J2ME", null);
    technology.append("J2EE", null);
    technology.append("JSF", null);
    Test1.append("Chennai", null);
    Test1.append("Delhi", null);
    Test1.append("Bombay", null);
    Test1.append("AndhraPradesh", null);
    index = form1.append(technology);
    index2= form2.append(Test1);
    form2.addCommand(exit);
    form2.addCommand(choose);
    form2.setCommandListener(this);
    display.setCurrent(form2);
    form1.addCommand(exit);
    form1.addCommand(choose);
    form1.setCommandListener(this);
    display.setCurrent(form1);
  public void pauseApp(){}
  public void destroyApp(boolean unconditional){
    notifyDestroyed();
  public void commandAction(Command c, Displayable displayable){
    String label = c.getLabel();
    if (label.equals("Choose")) {
      StringItem message[] = new StringItem[technology.size()];
      boolean get[] = new boolean[technology.size()];
      technology.getSelectedFlags(get);
      for (int i = 0; i < get.length; i++) {
        if (get) {
message[i] = new StringItem("Your Choice is: ", technology.getString(i));
form1.append(message[i]);
form1.delete(index);
form1.removeCommand(choose);
} else if (label.equals("Exit")){
destroyApp(false);
thanks in advance

i have developed another midlet with multi forms, but here i am not able to go to next form..
else if (c == cmdExit)
display.setCurrent(frmSub);
boolean picks[] = new boolean[java1.size()];
StringItem message[] = new StringItem[java1.size()];
java1.getSelectedFlags(picks);
for (int i = 0; i < picks.length; i++) {
if (picks) {
message[i] = new StringItem("", java1.getString(i) + "\n");
frmSub.append(message[i]);
frmSub.delete(javaIndex1);
destroyApp(false);
notifyDestroyed();
To get to +Next Form+ by command +Next+, I would rewrite above code about as follows:
{code}else if (c == cmdForm)
   display.setCurrent(frmSub);
}{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Creating Multi-record Form

    In 9.02 how do you create a form that displays multi-records? I have seen some threads about possibly creating a master/detail form (with some trickery) as a work-around.

    Hi
    I couldn't get your point... With forms the user are able to save data periodically and still continue inserting data... For example, if your users have to insert 100 records, they can insert 10, save the data to the database, then insert more 10 and so on. Except if you just want to commit once when all the records have been inserted. If this is the case, you can use a non-displayed control item of default value $$dbdate$$ - this way, I think that when the user inserts a new record, forms have to query the database to get the date...
    If I got you wrong, could you give more details?

  • How To Create Multi Row Edit Forms in a JSP

    Hi, Could someone tell me how can i create multi edit rows in BC4J JSP edit page.
    Thanks
    Sirisha

    Refer to
    BC4J Multi-Row Extension API which provides multiple row operations to BC4J-based web application.
    http://sourceforge.net/docman/display_doc.php?docid=19393&group_id=87369
    http://radio.weblogs.com/0118231/2005/04/20.html#a529

  • Create multi level fillable forms

    I need to create a form that would be sent to my boss to complete part of it and once she has completed her part, it needs to be sent to another party to complete the content, but I need for my boss' input to be locked.  Is there a way to do that?

    If I have my boss digitally sign the form, can I have only certain fields locked and then have an additional signature field for our client to sign when other items are completed?

  • How do you create a form that has user permissions per form field for different user?

    I need to create a form that is used by multi people but each user needs to fill out different fields within the form. I need the first user to make selections from a list and save it to send to another (the selection fields then need to be locked). Then the other user checks one of the selections made by the first user and saves the document to send back to the first user. Not sure if this is possible. I would like the first form field selections not to even show as a highlighted field to the other user (like just be more like a text field). I want the document to be able to be used more than once. The list selections will change and need to be sent to the other user at least once a month or more. Has anyone done this?

    There's no built-in way to do that, but it's probably doable using a custom-made script to hide and/or lock the fields.

  • How to create a form with two column headings

    I have a business request to create a data form to handle multi year data by month. This will require creating a form with two column headings - with the first row be Year and second row be month, and data entry will begin in the third row and down.
    I can do multiple row headings in the layout design, but somehow can not get it to work for multiple column headings.
    Thanks in advance

    If you're in the "Layout" tab, simply pull the "Years" dimension and the "Period" dimension into the Column section. Planning can be a little picky about where you "drop" the dimension as you're dragging and dropping it. Drop it in the cell directly under the letter name of the column. Other than that, there's not much to it.
    Hopefully this helped,
    - Jake

  • How to create modal Form in SBO 2007

    Is it still no way to create a modal SBO form
    I want to create SBO Form that pause the lines of code from runing until the form is closed
    Modal property of the SBO Form still ready only.
    Sincerely yours
    Riade Asleh

    > Or you can use threading to work.
    Indeed, unless I'm mistaken, one will have to. In a common GUI API, if you open a modal form on the event thread, thereby putting it in WAIT state, another event pump is set up. But that functionality isn't available in the SBO UI API AFAIK.
    To put it differently: if you open a form in an SBO event handler and enter the WAIT state, the whole SBO application won't react anymore.
    So the way to do it is this:
    <ul>
    <li>Create a new Thread and start it. Within that Thread ...</li>
    <li>Create your window. </li>
    <li>Register a FORM_UNLOAD (or FORM_CLOSE -- I don't remember which one is deprecated) listener for that form</li>
    <li>Create a locking Object. A simple <tt>new Object()</tt> will do</li>
    <li>Show the form, and then enter a WAIT state on the lock previously created. In VB, for instance, that would be written:
        SyncLock waitObj
            Monitor.Wait(waitObj)
        End SyncLock
    </li>
    <li>When the FORM_UNLOAD handler is called (hopefully because the form was closed), notify the lock. For instance, VB again:
        SyncLock waitObj
            Monitor.Pulse(waitObj)
        End SyncLock
    </li>
    </ul>
    Mind you you might run into some trouble, as SBO suffers multi-threading somewhat less than gladly in my experience.
    But it might be worth giving it a try -- it's a fairly simple operation, so it might work without too much or indeed any hassle.
    PS: that nobr ain't none of mine

  • Create a form without the option to submit or send via email

    Just oant to know is it posible to create a form without the option to submit or send via email. I want my students to fill in the form and save it to a personal folder. The submit form button creates confusion.

    Many thanks Randy, I'll give it a go. But it means setting up the how to pay question at the top of the form. Currently we have it setup at the bottom.
    Think I can do a "Will you be paying by credit card?" check box at the top - Tick equal show Fields A (which I have already mapped to the payment option) and Unchecked Show Fields B.
    Sound logical..will be cumbersome though as there are 12 mult show/hide fileds in there already  here's the link just for the original form for future reference for anyone in the forum wanting to see what the form looks like and is facing the same problem.
    Will make the changes in a quiet perios and anyone interested can take a look next week and see how I got on.
    Appreciate your response Randy
    Roger

  • Multi-form applications

    I have a created a multi-form application where i have a calling form which calls another form. The user could commit changes in the called form and return to the calling form and either have changes in that form committed or rolled back. However, a commit in the called form SHOULD NOT commit any changes in the calling form. All this works fine.
    I have implemented this using "autonomous transaction". I am using the call_form --> open_form sequence for this purpose. i.e there is a call to a dummy form using call_form and this dummy form calls the other form using open_form call. Now, the problem that i have is that, at times the called form gets hidden behind the calling form and what is visible to the user is the calling form - with no access to any items on the form as this form is now NOT the active form in the application. This problem, though not reproducible has occurred many times. I do not have a solution to this. Any suggestions/pointers/soultions most welcome.
    Thanks in advance..

    What are OPEN_FORM,CALL_FORM,NEW_FORM? diff?
    CALL_FORM : It calls the other form. but parent remains active, when called form completes the operation , it releases lock and control goes back to the calling form.
    When you call a form, Oracle Forms issues a savepoint for the called form. If the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls back uncommitted changes to this savepoint.
    OPEN_FORM : When you call a form, Oracle Forms issues a savepoint for the called form. If the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls back uncommitted changes to this savepoint.
    NEW_FORM : Exits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, Oracle Forms keeps the higher call active and treats it as a call to the new form. Oracle Forms releases memory (such as database cursors) that the terminated form was using.
    Oracle Forms runs the new form with the same Runform options as the parent form. If the parent form was a called form, Oracle Forms runs the new form with the same options as the parent form.
    Call_form.
    BEGIN
    CALL_FORM('FORM2',
    NO_HIDE,
    DO_REPLACE, -- replace menu
    NO_QUERY_ONLY,
    SHARE_LIBRARY_DATA);
    END;
    Syntax
    OPEN_FORM(form_name);
    OPEN_FORM(form_name,activate_mode);
    OPEN_FORM(form_name,activate_mode,session_mode);
    OPEN_FORM(form_name,activate_mode,session_mode,
    paramlist_name);
    OPEN_FORM(form_name,activate_mode,session_mode,
    paramlist_id);
    sarah

  • Re:Close all Forms in Multi-form application

    how to Close all Forms in Multi form application's

    The easiest way would be to create an "initialize"-procedure in a pll, which simple default all the needed globals, if the do not already exist (using DEFAULT_VALUE), and call that procedure form every form in the PRE-FORM-trigger. It won't affect the "integrated" system because it only defaults values if they are not already initialized.

  • Windows Server 2008 R2: Script create multi users with Windows Powershell

    Dear All,
    I have windows server 2008 R2 Active Directory Domain Service. I want to create multi users by using Windows PowerShell.
    Could you guide?
    BR,
    Khemarin Set
    [email protected]

    Dear Awinish,
    Your link very my solution. but i'm very basic with Powershell and I never have experience with it.
    This is the link original script that you are provide:
    function Select-FileDialog 
    param([string]$Title,[string]$Directory,[string]$Filter="CSV Files (*.csv)|*.csv")
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
    $objForm = New-Object System.Windows.Forms.OpenFileDialog
    $objForm.InitialDirectory = $Directory
    $objForm.Filter = $Filter
    $objForm.Title = $Title
    $objForm.ShowHelp = $true
    $Show = $objForm.ShowDialog()
    If ($Show -eq "OK")
    Return $objForm.FileName
    Else
    Exit
    $FileName = Select-FileDialog -Title "Import an CSV file" -Directory "C:"
    $ExchangeUsersOU = "OU=ExchangeUsers" # I don understand, I have all users are store in all-users ou
    $domain = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()
    $DomainDN = (([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()).Domains | ? {$_.Name -eq $domain}).GetDirectoryEntry().distinguishedName
    $final = "LDAP://$DomainDN"
    $DomainPath = [ADSI]"$final"
    $cOU = $DomainPath.Create("OrganizationalUnit",$ExchangeUsersOU)
    $cOU.SetInfo()
    $UserInformation = Import-Csv $FileName
    $OUPath = "LDAP://$ExchangeUsersOU,$DomainDN" # I don understand
    $UserPath = [ADSI]"$OUPath"
    Write-Host "---------------------------------------------------------------"
    Write-Host "Creating LAB Users"
    Write-Host ""
    Write-Host "---------------------------------------------------------------"
    Foreach ($User in $UserInformation){
    $CN = $User.samAccountName
    $SN = $User.Surname
    $Given = $User.givenName
    $samAccountName = $User.samAccountName
    $Display = $User.DisplayName
    $LABUser = $UserPath.Create("User","CN=$CN")
    Write-Host "Creating User: $User.samAccountName"
    $LABUser.Put("samAccountName",$samAccountName)
    $LABUser.Put("sn",$SN)
    $LABUser.Put("givenName",$Given)
    $LABUser.Put("displayName",$Display)
    $LABUser.Put("mail","$samAccountName@$domain")
    $LABUser.Put("description", "Lab User - created via Script")
    $LABUser.Put("userPrincipalName","$samAccountName@$domain")
    $LABUser.SetInfo()
    $Pwrd = $User.Password
    $LABUser.psbase.invoke("setPassword",$Pwrd)
    $LABUser.psbase.invokeSet("AccountDisabled",$False)
    $LABUser.psbase.CommitChanges()
    Write-Host "Script Completed"
    If posible, could you help to correct script as: I have domain name: hello.net. All user are store in all-users ou.
    BR,
    Khemarin Set
    [email protected]

  • I am trying to create a form in acrobat pro 8 and it can't be filled in in reader 9

    When I open the form in reader, it says it is a pdf/a file.and the form fields do not show up unless I go to edit/preferences in reader and tell it to never view documents in pfd/a mode.  I am putting this document on my website for users to fill out, and don't want them to have to do that.  How do I create the form that is not a pdf/a document?  I have been messing around with this for a day and have not been successfull.  I have an old document from last year that apparently is not a pdf/a document and it works fine.  I cannot make this year's document open correctly in reader 9.  http://www.houseofsweden.us/docs/DecNightsSignUps2009.pdf  This is a very simple form created from a word document.

    When originally creating the pdf, you would need to choose another pdf conversion setting. In Word if you use the pdf menu, change your settings there: Adobe PDF > Change Conversion Settings. I would use High Quality Print instead. If you use the File > Print method, click the Properties button next to the Adobe PDF printer selection.
    For your already created form, you can change the file so your users will not encounter issues. In Acrobat 9, which hopefully is similar in process to 8: Advanced > Preflight > Profile tab > PDF/A compliance > Remove PDF/A information.(You'll have to unsecure your form first).
    You can read about PDF/A files in the Help.

  • How to create multi-folders in a single folder in numbers

    how do you create multi-folders in a single folders. I have multi files orginized by month, but now i need to group it into a single folder by year.

    See this link:
    http://apex.oracle.com/pls/otn/f?p=31517:107
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Error when create adobe form

    Hi,
    When i created adobe form, i found an error :
    Could not start Layout Designer (see long text)
    Message no. FPUIFB086
    Diagnosis
    The forms design tool for developing the form layout could not be started; either it is not installed or there are errors in the installation.
    Procedure
    Make sure that you have the forms design tool installed on your desktop (the tool is part of the SAPGUI installation).
    Also read SAP Note 801524.
    In my computer Adobe Life Cycle Designer 8.0 installed, why it happen?
    Please help me.
    Thank you.
    regards,
    Ferry

    Good to know  — there is no such application as "Adobe XI".
    "Adobe" is the name of the company.
    "XI" is indicative of the use of either Acrobat XI or Reader XI.
    Neither Acrobat XI Pro (for which Adobe provides a free, fully functional 30-day trial) nor Adobe Reader XI (the free to download and use PDF viewer that Adobe provides) have  an "Export PDF" entry under "File".
    "Export PDF" only is present in Adobe Reader XI over on the right on the "Tools" panel.
    The "Tools" panel provides a way for a user of Adobe Reader XI to connect to various By Subscription online services (gotta pay eh).
    Export PDF is one of these. A subscription lets you send a PDF file to the online internet service (aka "cloud" service). The service then exports to a supported file format (Word / Excel / ...) and the user selects / directs where the output file is to be saved on the user's local machine.
    Of course to use any of the online subscription services one must have an active (paid up in full) subscription to the service.
    So ---- As described the puzzle pieces don't fit eh.
    What specific Adobe (the company) applications are you using?
    Acrobat XI Pro? Adobe Reader XI? Both? 
    Be well....

  • I created a form, I want the email notices to go to several people. Why is this so difficult? It seems like they have to be a co-author/reader or something? I don't get it

    I created a form, I want the email notices to go to several people. Why is this so difficult? It seems like they have to be a co-author/reader or something? I don't get it

    This is crazy! I paid for this service to make it easier to create forms for a company that has had several acquisitions all over the globe. This was supposed to make it easy to create forms hosted on adobe so no matter what happens on all their servers, we would be safe using this forms service until we can integrate all acquisitions and build a permanent web site on a single server. Now I find out that even this is a major issue sending emails to team members, many I have never met so making them a collaborator or even setting up forwarded emails is not something I wanted to do. This service was advertised as simple and easily send notifications to many people. I am now frustrated and thinking this was a waste of money! Why is it like that?

Maybe you are looking for

  • Lost my external hard drive and now Snow Leopard can't find it

    I was doing some maintenance with Onyx (repair permissions, clean caches) and something happened to my external hard drive that I use for Time Machine. Snow Leopard no longer recognizes that the drive exists. It is not listed as a drive in the Mac HD

  • How to calculate min/max scan rate of PCI-MIO-16XE-50

    My board: PCI-MIO-16XE-50 , 20MHz timebase The min/max scan rate is0.00596-20K scan/s and the channel rate is 1.53-20Kchannels/s How do they calculate these data?

  • FMLE , video capture card

    hi every body, can anyone tell me what video capture cards are compatible with FMLE3. thanks a lot.

  • Fault error Code on UCS 6140 Cluster

    Hi all, I'm running a UCS 6140 Cluster with 1.4(3q) UCSM Version. I've a Critical Fault. The fault code is F999590. This fault code have no correspondance in the "Cisco UCS Faults and Error Messages Reference" doc. By searching with fault description

  • Can't log in to many sites after installing 11.9

    After installing 11.9, log in pages at various sites (thru Firefox 25) never go anywhere after submitting info, either get neverending loading circle or a reloaded blank log in page. In Safari (5.1), some sites will let me log in, some don't. It's ve