How to call to another form declare in different class ???????

hi, i'm beginner in j2me...
I was wondering how to call to other form(class) in the current form...
For example,
public class A extends MIDlet implements CommandListener
public void commandAction(Command d,Displayable s)
if (d==*OKCommand*)
if press this OK command, it will be able to show another form declared in the different class...
How to make it able to call to other form/class(eg.classB)????
public class B
//form that will be shown after pressed command OK in class A
please help if you know...Thanks a lot..... =)

you MUST have a reference to the other class or MIDlet in the current MIDlet ...
i think that i have answered to these kind of questions a few month ago.. you should use the 'search' engine to find the topic..
CLDC and MIDP forum is not a huge forum compare to Java Programming forum so it will be easy !

Similar Messages

  • Help on how to call a new form

    Anyone there that can help me how to call a new form...
    Actually I have 3 forms.... the Parent, and 2 child...
    child a
    child b
    I used JFrame to the Parent...
    I used JDialog to the child....
    I want to know how to call child a by the child b.....
    this is my code in calling them....
    when i'm in the form_b, i used this code to show form_a....
    form_a a = new form_a();
    a.setVisible(true);
    when i'm in the form_a, i used this code to show form_b....
    form_b b = new form_b();
    b.setVisible(true);
    but the problem is when i call either of the two, there's always a new form for form_a and also for form_b....
    I want to call the form without opening a new form... that form also will be visible... is there anyways i can do this.... any help will do.... tenks....

    One way would be to have the parent maintain instances of A & B and have public methods for accessing A & B. Something like this. You would have to pass a reference to the parent class to A & B so that they can call the access methods.
    public class form_a extends JDialog{
       public form_a (Parent parent){
    public class Parent extends JFrame{
       form_a a;
       form_b b;
       public Parent(){
          a = new form_a (this);
          b = new form_b (this);
       public form_a getFormA(){
            return form_a;
       public form_b getFormB(){
           return form_b;
    }

  • File upload hanging when called from another form

    Hi
    I have created a file upload form from the documentation I found on metalink and the form works fine on its own. I have then implemented the form into a multi form application and when the file upload form is called from another form it hangs trying to get to the client drive so that it can pick up a file. I have tried using the 'call_form', 'open_form' and 'new_form' built-ins but the results were all the same. Can anybody help me?
    Maria

    Hello,
    This is not the support, so there are no post more urgent than other.
    Francois

  • Help how to Call a New Form

    Anyone there that can help me how to call a new form...
    Actually I have 3 forms.... the Parent, and 2 child...
    child a
    child b
    I extend JFrame to the Parent...
    I extend JDialog to the child....
    I want to know how to call child a by the child b.....
    this is my code in calling them....
    when i'm in the form_b, i used this code to show form_a....
    form_a a = new form_a();
    a.setVisible(true);
    when i'm in the form_a, i used this code to show form_b....
    form_b b = new form_b();
    b.setVisible(true);
    but the problem is when i call either of the two, there's always a new form for form_a and also for form_b....
    I want to call the form without opening a new form... that form also will be visible... is there anyways i can do this.... any help will do.... tenks....

    One way would be to have the parent maintain instances of A & B and have public methods for accessing A & B. Something like this. You would have to pass a reference to the parent class to A & B so that they can call the access methods.
    public class form_a extends JDialog{
       public form_a (Parent parent){
    public class Parent extends JFrame{
       form_a a;
       form_b b;
       public Parent(){
          a = new form_a (this);
          b = new form_b (this);
       public form_a getFormA(){
            return form_a;
       public form_b getFormB(){
           return form_b;
    }

  • Can you programatically detect that a form has been called by another form?

    Can you programatically detect that a form has been called by another form using Open_Form?
    When closing a form I want to do one thing if it was opened stand-alone and another thing if it was called using Open_Form by another form.
    Thanks in advance.

    Maybe, Tony, also
    GET_APPLICATION_PROPERTY built-in ; it can
    be used to retrieve information about the calling (parent) and called
    form (child).
    The following example describes a way to perform a query on the child form
    using a value from the parent form; if the form is a child form, it first
    executes a query, otherwise the form goes into insert mode automatically.
              WHEN-NEW-FORM-INSTANCE
              ======================
              BEGIN
                   :GLOBAL.APP_NAME := GET_APPLICATION_PROPERTY(CALLING_FORM);
                   IF :GLOBAL.APP_NAME IS NOT NULL THEN
                        EXECUTE_QUERY;
                   END IF;
              END;Regards

  • How to call a Jclient form from another project?

    In my workspace, there are three projects. One is for business components. The other two are Jclient forms applications. Can I open a Jclient form from another Jclient form in another project?
    I used to create multi_form accounting application using Oracle Form Builder in which I can call a form from another form.

    Just set one project to be dependant on another in the project settings dialog of the former. This should work.

  • HOW TO GO THE ANOTHER FORMS

    HI 4 ALL
    I MAKE 2 FORMS FROM SCOTT/TIGER
    AND MAKE FIRST FORM ABOUT DEPT AND PUT BUTTON THAT TRANSFER INTO ANOTHER FORMS THAT CALLS EMPLOYEE
    HOW CAN I DO THIS AND I NEED WHEN I SELECT FROM FORM 1 DEPTNO WE WILL GO TO EMPLOYEE WHOS WORK ON DEPTNO WE CHOOSE
    THANK U

    I TRY BUT NOT GOOD
    I WILL MAKE FORM1 ADN ITS DESPLAY DEPARTMENT AND PUT BUTTOM THAT GO TO EMPLOYEE FORM BY USING GLOBAL VARIABLE < AND PUT THIS CODE IN PL/SQL FOR BUTTON
    DECLARE
    FRM FORMMODULE ;
    BEGIN FRM := FIND_FORM('FORM2');
    IF ID_NULL(FRM) THEN
    OPEN_FORM('FORM2',ACTIVATE,NO_SESSION,NO_SHARE_LIBRARY_DATA,'');
    ELSE
    GO_FORM('FORM2');
    END IF;
    END;
    AND DEFINE GLOBAL VARIABLE BY :-
    THIS ON FORM 1
    :global.dept_id:=:departments.department_id;
    AND THIS ON FORM2
    Set_block_property('employees',default_where,'department_id='||:global.dept_id);
    Go_block('employees');
    Execute_query;
    WHERE PROBLEM

  • How to call Procedure in Forms

    Hi All,
    I'm having 1Form,in that one check box is there if i check that, if i save the form means it should automatically call the procedure.
    Can any one know how to call th procedure inside the Form.When we save form procedure sholud call and Run.
    Bit urget plsss
    Regards
    Siva

    thanks for ur reply,
    i have got the solution
    Cloding the Thread..
    Regards
    Siva

  • How to Call Standard PO Form in my Z program

    Hi All,
    Could you please tell me, How to Call the Standard PO form in my Z program for print priview and printing.
    My requirement is :
    Create Z program with PO Number as Selection screen.When we give the PO Number and Press execute it will show the print priview with printer option.
    Thanks & Regards
    Murali

    Plz refer this.
    REPORT  ZPPR_BOM1.
    TABLES
    TABLES : MAST.  " Material to BOM Link
    *& Internal tables         Begin with it_
    DATA : IT_MAST TYPE MAST OCCURS 0  WITH HEADER LINE.
    DATA: fm_name TYPE rs38l_fnam.
    CLEAR   : IT_MAST.
    REFRESH : IT_MAST.
    *& Parameters       Begin with pr_
    *& Select-options   Begin with so_
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  PR_MATNR LIKE MAST-MATNR OBLIGATORY,
                 PR_WERKS LIKE MAST-WERKS OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
      SELECT * FROM MAST  INTO TABLE IT_MAST   " Get BOM number
        WHERE MATNR = PR_MATNR
          AND WERKS = PR_WERKS.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'ZPPS_BOM1'
        IMPORTING
          fm_name  = fm_name.
    CALL FUNCTION fm_name "'/1BCDWB/SF00000079'
    EXPORTING
       ARCHIVE_INDEX              =
       ARCHIVE_INDEX_TAB          =
       ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         =
       MAIL_APPL_OBJ              =
       MAIL_RECIPIENT             =
       MAIL_SENDER                =
       OUTPUT_OPTIONS             =
       USER_SETTINGS              = 'X'
    IMPORTING
       DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            =
       JOB_OUTPUT_OPTIONS         =
       TABLES
         IT_MAST                    = it_mast
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to call a custom form on click of a button?

    We have a requirement to call a custom form on clicking a button which is on a standard form. I cant modify the standard form. Is this possible to handle this event from CUSTOM.pll or forms personalization?
    some sample code will help. Thanks in Advance,
    Message was edited by: 988490e8-2268-414d-b867-9d9a911c0053

    Hi,
    I think you are working with Oracle EBS.
    I don't think so that we can able to call the custom form on clicking button.
    We can call the form from the standard form using both custom.pll and form personalization
    In custom.pll using zoom function we can do this and in form personalization we can call the form by using form function, In both we call the form by creating a special menu in standard from and we used to call.
    So please check further, and let me know if any i can help you any.
    Regards
    Sri     .

  • How to call existing sap form

    Hi All,
    I have created one addon for MRP in this addon when client click on menu i have to display "Order recomandation"  form which will dispaly in existing MRP functions.
    How to display existing sap form in our menuclick. please help me as soon as possible.
    Regards,
    sri

    Hi Sri,
    This related to SDK so post this thread on SAP Business One SDK. You will get solution asap.
    Thanks
    Sachin

  • How to call a Oracle Form from within the oracle APEX application

    Hi,
    I am new for Oracle APEX. I have a requirment where need to call a Oracle form (.fmx file) from within the Oracle APEX application.
    Can someone help me out ?
    it would be a great help.
    Thanks

    This might help you...
    http://roelhartman.blogspot.com/2008/11/integrate-oracle-forms-with-apex.html

  • How to call a Oracle Form from within the APEX

    Hi,
    I have a requirment where need to call a oracle form from within the Oracle APEX application?
    I will appriciate if can someone help me out.
    Thanks

    Hi,
    are you working with Forms 6i or 10g?
    If you want to call a forms 10g page. Just use a button with javascript:
    - Target type: URL
    - URL Target: javascript:window.open ('http://<server>:<port>/forms/frmservlet?config=<conf>','Forms window');
    With Forms 6i you can open the directory where your forms file is inside (works just with IE):
    <script type="text/javascript">
    function fnc_window()  {w = open('C:\\FormsFiles', "winLov","scrollbars=yes,resizable=no,width=600,height=400");
    if (w.opener == null)
    w.opener = self;
    </script>Or execute the forms file with vbscript (IE only):
    <script language = "vbscript">
    sub fnc_forms()
    dim progName
    progName = "c:\FormsFiles\myForm.exe"
    set oShell = createobject("wscript.shell") 'create a shell
    '***use the line below to call your app, defined above with the "progName" variable:
    oShell.run(progName)
    end sub
    </script>

  • How to link to another Form? *Urgent*

    I'm using netbean to develop an application, I've a MIDLet with Login Page, I've used setCurrent(list) to display a list when I click "enter". It works fine, but when I want it to display another Form when I click "new" under the list using the same method, it does work. Any solution to this?

    Add default slide to the constructor and use a similar process to http://foundationphp.com/tutorials/spry_url_utils.php
    var ImageSlideShow = new Spry.Widget.ImageSlideShow("#ImageSlideShow", {
        defaultSlide: 2,
        widgetID: "ImageSlideShow",
        injectionType: "replace",
        autoPlay: true,
        displayInterval: 4000,
        transitionDuration: 2000,
        componentOrder: ["view", "controls"],
        plugIns: [ Spry.Widget.ImageSlideShow.PanAndZoomPlugin ]
    Gramps

  • To call a another form

    hai to all
    i have created two applet forms
    putting some text boxes and command buttons as "submit"
    suppose if clicked the submit button means
    i want to go to another form
    as in visual basic going to anothe form

    i think you should be able to do applet.get(Applet)Context().showDocument

Maybe you are looking for

  • Problem with the Motion

    When I am trying to edit a particle Motion always crashes. It seems that the problem is always the same (thread 5 crash) and I can easily reproduce it. The same problem doesn't occur in the MacBook Pro. Thanks in advance about the help! Date/Time: 20

  • Parked Invoices Work Flow Logging Mechanism

    Dear ALL, From functional end how can we apply a release strategy on Invoice parking? Is there any separate logging mechanism of the release? We have developed standard work flow for logistic invoice verifications and as well for direct invoice parki

  • SCCM 2012 SP1 OSD Multicast is failing 0x80004005

    I am trying to get multicast to work on a DP. But when I kick off an OSD and get to one of the items that I have enabled multicasting (lets say the OS image) then I get the following in the smsts.log: Failed to get MCS key (Code 0x80004005) ClientReq

  • Search no mapped unicode characters as question mark

    No mapped unicodes characters are replace by question mark. I want to search/detect these characters to correct them (i may spend too much time to find the character "?" in a big document, because of real question mark). How can i do ?

  • Display one the popup

    I am opening a new window(Popup) when click on the submit button. My question is, is there any way I can open the popup in the first time itself and the submit button on the popup? it is a JSP page. I need the whole thing in the new window. <%@ tagli