How to close a Form in LWUIT

Hi,
How do I close a form in LWUIT and go back to the form that opened it? There is no close or dispose command. There is a setVisible command
but I don't seem to know how to use it. It doesn't seem to have any effect when used on a form. I have even tried to call show() on the form that
opened the form I am trying to close. That doesn't work either.

altayli wrote:
I fixed it by converting Vector to Array..Thank you all
Array -- do you mean java.util.ArrayList object from Java SE? are you going to use it in j2me MIDP application?

Similar Messages

  • How to close infopath form through code?

    Hi All,
    How to close infopath form through code, thanks in advance!

    Hi Sam,
    Please check if the articles below can be help:
    http://www.bizsupportonline.net/browserforms/programmatically-submit-infopath-form-sharepoint-send-email-close-form.htm
    http://www.bizsupportonline.net/blog/2009/01/how-to-programmatically-run-code-close-infopath-web-form/
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to close various forms

    Hi,
    In my menus , i have 3 submenu items,
    if i click 1st item , call_form('formname'); 1st one will appear,
    if i click 2nd menu item , call_form('2ndformname');2nd one will appear,
    samething for 3rd item,
    finally if i click close int the top of the window, i have to close each form,
    My problem is if i click anyone menu item, it should replace or hide the previous window.
    I know call_form (hide and replace option was there,but i dnt know how to use ) was there , any other method is there,

    If you want to close all the three forms. Use one global variable and set it to TRUE in that close button.
    In the WHEN-WINDOW-ACTIVATED of each form
    write:
    IF :GLOBAL.CLOSEAPP = 'TRUE'
    THEN
    EXIT_FORM(NO_VALIDATE);
    END IF;

  • How to Close InfoPath Form After Submission When Two Buttons Exist?

    I have an browser-enabled InfoPath 2010 form that has two views and a submit button on each view. The form would correctly submit and close the form using one button on the form until the second button was added. After adding the submit button on a second
    view, the second button submitted/closed but the behavior on the first view changed so that the form no longer closes after submission. I’ve researched this and have not yet found a solution to allow closing the form after submission for one of the buttons.
    Things I’ve tried:
     - I’ve attempted creating multiple submit data connections for the different buttons
     - Specifying different Submit Options
     - Try closing the form with the code
     - Add another button to the non-closing view
     - Add duplicate Rule actions to "Close this form: No Prompt"
    Settings:
    Button rules:
     - Submit using data connection: SharePoint Library Submit
     - Close this form: No Prompt
    Button Properties:
     - Action > Rules and Custom Code
    The form Submit Options:
     - Send form to a single destination (a form library)
     - Choose a data connection for submit (SharePoint library submit)
     - Advanced > After Submit: Close the form
    Advanced form options:
     - Filler Features: all items unchecked (not allowing Save, etc.)
     - E-Mail Attachments: uncheck Enable InfoPath e-mail form functionality for this form template
    Resources:
    When considering programmatically submitting and closing the form, I understand from this article that the Rules run before code and I can’t close the InfoPath form programmatically by writing code behind a button that has a rule set on it:
    http://www.bizsupportonline.net/blog/2009/01/how-to-programmatically-run-code-close-infopath-web-form/
    Discussion of creating a custom Save and Submit buttons for InfoPath browser forms:
    http://markhaverty.com/sharepoint/custom-save-and-submit-buttons-for-infopath-browser-forms/

    what if you need to switch views? 
    I have the same problem in a similar situation.  I created a test button to narrow down the cause.  the button submits data & closes the form fine.  however when I add a rule to switch views before the submit & close rule, it
    breaks.  Submit still works but it no longer closes the form.  If I disable the switch-view rule, then it closes fine. 
    I tried added another rule to switch back to the main view but that didn't help. 
    switching views is an integral part of the workflow b/c I want to email the alternate view upon approval & then close the form.  So removing that rule is not a good answer unfortunately. 

  • How to close the Form

    Dear Experts,
    i have witten the following lines
    oForm = SBO_Application.Forms.Item("Modal")
    oEdit = oForm.Items.Item("no").Specific
    oEdit1 = oForm.Items.Item("name").Specific
    userTable = oCompany.UserTables.Item("TESPA_LOGIN")
         userTable.GetByKey(no)
         userTable.UserFields.Fields.Item("U_status").Value = "1"
         userTable.UserFields.Fields.Item("U_remarks").Value = curUser
         userTable.Update()
    '// Updated succesfully
    '// here i want to close the form
    oForm.close()
    the B1 is closed, when i search the error it saying the form has no value
    how to solve this
    Regards
    Mathi
    Edited by: Mathi Arasu on May 24, 2008 2:38 PM

    hi expert,
    when i use the line
         SBO_Application.SendKeys("{^}")
    symbol ( ^ ) displaying in one EditText box, the form is not closed.
    when i use the line
         SBO_Application.SendKeys("")
    the form is closed, but one message (Invalid form) is coming
    Regards
    Mathi

  • How to close a form within script

    Hello,
    I'm using Adobe LiveCycle Designer v 8.2 to develop an Order form. I'm fairly new to developing in LiveCycle, and would like to ask the following question that I couldn't find an answer to elsewhere.
    I'd like to know if it is possible to close a form down within a script, if certain conditions are met/not met. Specifically, when my form loads I am testing the user's version of Acrobate Reader. If it is not above the stated version, I would like the form to close down. At the moment, it displays the warning message correctly but then continues to try and load the form.
    I guess the JavaScript equivalent of Me.Close() is what I am after
    if 
    (xfa.host.version < 8.101){
    xfa.host.messageBox("Your version of Adobe Acrobat Reader is not recent enough to use this form.",
    "Wrong version of Adobe Acrobat", 1);//Code to close form to go here
    Can anyone help?
    Thanks
    Matt

    You will be able to close the form but you will not be able to close the Reader application. The command you want is event.target.closeDoc(). This will close the currently active Document. Note that if you are diosplaying in a browser then it will not close the doc ....it will only work form the Reader/Acrobat applications.
    Paul

  • How to close PDF form in Browser

    Hi,
    Does anyone knows if there are any way to close a PDF form that is opened in a browser (Internet Explorer 6)?
    In my form, there is a button that is supposed to close the form when clicked, it is working if I launched the form in Reader but does not work in a browser.
    The script that I used in the click event of the button is:
    event.target.closeDoc();
    Thank you.

    Hi,
    heres the code
    1. Go to <Your Webdynpro project> - WebDynpro - Web Dynpro Components - <your component> - Windows right click and create a window (PdfWindow).
    2. Place the view that contains pdfForm in the window PdfWindow.Create a button in the view say ClosePdf .
    3. Create a context attribute say WindowInstance of type com.sap.tc.webdynpro.clientserver.window.Window (java native type) in the component controller.Map this attribute to the context of both views (view with button and Pdfview)
    3. In the onAction of button
    IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("PdfWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
    window.setWindowPosition(500, 500);
    window.show();
    wdContext.currentContextElement.setWindowInstance(window); // this iwll bw used to destroy the pop up
    4. In Pdfview create a action closepopup and associate with button ClosePdf. In the action write
    IWDWindow window = wdContext.currentContextElement.getWindowInstance();
    window.destroy(); // this will close the popup.
    Note:
    you dont need wdContext.currentContextElement().setPdfVisible(WDVisibility.VISIBLE); as your pdfform is in different view.
    Message was edited by:
            Shriram Kabra

  • How to close custom form from standard form.

    Hi,
    I have the following requirement which I can not handle.
    I open custom form from menu special position which is available in standard form on particular window and block only. So custom form may be open only when the window of standard from is open.
    My requirement is to close custom form when the window of standard form is closing or when standard form is closing. I can not modifiy stanard form so I need to use forms personalization. I have problem in form personalization:
    1) to handle "when-form-exit" event / trigger (when window closing I can handle by when "new item instance" where cursor goes and appropriate conditions).
    2) to navigate to my custom form to close it, like "go_form" in Forms Builder.
    Is it possible do achieve with forms personalization or maybe in some other way?
    Kind regards,
    Marcin

    Hi,
    The standard program is list of vendors address(AQZZ/SAPQUERY/FKF1============)or we can also access through the :sapmenu->accounting->financial accounting->accounts payable->information system->reports for accounts payable accounting->master data->S_ALR_87012087-Addresslist.
    Regards,
    naresh

  • How to close current form but leave calling form open

    My case is like this, I am working on one form. It have 2 functions. One is serach function, let us call it A, the other is display/entry function, let us call it B. I first start window A to search record. From that record I open window B, when I close window B, I want to leave window A open so I can start a new search.
    Right now, when I close widows B, window A closed too. How can I close only window B. I tried both APP_NAVIGATE.EXECUTE and FND_FUNCTION.EXECUTE but did not work out.

    Thank you very much.
    The problem is how can I find out what is the module name or window name. This is a heavily custom Oracle Apps form CSXSRISR. It is quite big and I just got lost into those data block/trigger stuff.
    Is there a easy way to find out the module for each window?
    Thanks

  • How to close a former Apple ID

    My Apple ID is my current email. I stopped using another email service a year ago.  How do I get Apple to stop referring that old email address?

    Apple ID: Contacting Apple for help with Apple ID account security - Apple Support
    Pete

  • 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.

  • How do I keep forms opened on the web  - if they close themselves at times

    How do I keep forms opened on the web  - if they close themselves??

    Hi,
    When you have completed design your form on design tab, you may open form to filling out and submit. At this time, if you don’t change your form, it will keep the open state. if you change or edit your form, it will showing a warning dialog to let you know form will be changed to closed, and remind you to open it again.
    Thanks,
    Guanshuai

  • How to close a custom form from CUSTOM.pll

    Dear Friends,
    We need your help on the following issue related to Oracle Apps Forms.
    We have a requirement to show a popup message (message should remain open and user should be able to continue working in the order entry form. User use this message as a reference while entering order details) when user enters a customer name or number in the order entry form . This is similar to the Stock Availability form which gets opened automatically when control enters into Order Entry Lines form, where the stock availability form remains open while entering line details.
    To fullfil the requirement, we have designed a custom form with a single text field in which the message text (some customer information) will be shown.
    We are using custom.pll to call this custom form (thru FND_FUNCTION.EXECUTE) when the control leaves customer number field. User could leave this custom form open and continue with entering order details. Till this point we could achieve what we want. i.e. we could show the popup message in the custom form after user enters a customer number.
    The problem is, after the custom form is opened, when we enter a new order for different customer, we need to close the custom form (which is opened for the previous customer) if the customer is not qualified.
    we could not achieve this. We tried using CLOSE_FORM, CLOSE_WINDOW, but did not help.
    Any body have any suggestions on achieving this... Basically, we need your help to know how we can close the custom form from CUSTOM.pll.
    Thanks,
    Uma

    I thing you haven't any (supported) option to close a form via custom.pll.
    For a long time, we have search a solution for the same problem without any result.

  • When i close called form. i want to refresh calling form.but how?

    i am using call_form ( name_in(':Global.App_Path')|| file_name, hide, Do_replace, no_query_only,pl).
    when i close called form. i want to refresh calling form.
    how can i do it.

    You have a block called : EMP, so you have to re-query-it with the following:
    Go_Block('EMP');
    execute_query ;Francois

  • How do I close a form

    I have a form, which needs to be initialized when I change worksheet. Is their a code which finishes the job: UserForm_Terminate?
    :) Søren

    Typically the purpose of a Form is to display information to the user and accept inputs. When done the User will close the form with little x or click a Close button on the form which calls
    Unload Me
    If you want to close the form, perhaps after some sort of timeout, there are different ways depending whether you have shown the Form as Model or Modeless.
    If you showed it as Model your code loaded the form is suspended
    UserForm1.Show ' code stops here until the form is closed
    The only way to close the form is via code in the form, typically called by the user.
    Code that's called by buttons in the form works normally, and at any part of that code can branch off and do
    Unload Me ' code returns to the line that loaded and showed the form
    However things are different with modeless forms
    UserForm1.Show vbModeless ' code continues until it terminates
    In another routine (not in the form) you can close the form like this
    Sub test()
    UserForm1.Show vbModeless
    End Sub
    Sub CloseForm()
    Dim uf As UserForm
    For i = UserForms.Count - 1 To 0 Step -1
    If UserForms(i).Name = "UserForm1" Then
    Unload UserForms(i)
    End If
    Next
    End Sub
    Note the index of the first userform is zero.
    Another and perhaps better way is to set a reference to the form when loading it, and use the same reference to unload it. I hesitate to give an example because it's important to ensure all object references are cleaned up in all scenarios.
    Also look at the form's QueryClose event

Maybe you are looking for