How can I return a result of popup to parent form

Hi guys

This is probably a very simple question.

How can I return a result of popup to parent form?

Thank you

Hi dpolonsky,

due to the fact that your screen popup and parent are in classes separated.

So create your own set and get methods/functions that can be called from another class.

Because the variables are known only in the class, they were defined (information hiding), then you must use the functions/methods, that affects the apropriate values.

in your parent class, you can define a method like:

void setFromPopup (int intval) {}

intval = globalintvalfrompopup; globalintcalfrompopup is declared globally within your class

}

and in your child (popup) class, you can call via

.

.

int TestInt = 10;

parentclass.setFromPopup (testint);

.

.

It is a general question of JAVA.

Hope it helps.

Tags: BlackBerry Developers

Similar Questions

  • How can I get multiple results returned from a function

    IDBASKET IDSTAGE DTSTAGE
    ---------- ---------- ---------
    3 1 24 JANUARY 03
    3 5 25 JANUARY 03
    4 1 13 FEBRUARY 03
    4 5 13 FEBRUARY 03
    5 3 21 FEBRUARY 03


    I have entry is a unique number of the IDBASKET in this table and this feature works very well that if she has an IDSTAGE by idbasket. (idbasket #5)
    But how do I return a result for an IDBASKET when there several IDSTAGE? (idbasket #3 & 4)
    Thank you very much
    CARPET


    SQL > CREATE or REPLACE FUNCTION status_desc_sf
    2 (NUMBER Code_P)
    3 RETURN VARCHAR2
    4 EAST
    5 lv_output_txt VARCHAR2 (30);
    6 BEGIN
    7. If Code_P = 1 THEN lv_output_txt: = "Command" submitted
    8 ELSIF Code_P = 2 THEN lv_output_txt: = "Accepted, sent to the navigation";
    9 ELSIF Code_P = 3 THEN lv_output_txt: = 'out of stock ';
    10 ELSIF Code_P = 4 THEN lv_output_txt: = "Cancelled";
    11 ELSIF Code_P = 5 THEN lv_output_txt: = "shipped";
    12 lv_output_txt ELSE: not = 'no information ';
    13 END IF;
    14 lv_output_txt of RETURN;
    15 END;
    16.

    I think that your function works as expected, not necessary as you like it is running.
    See the example:

    SQL> create table t11(c1 int, c2 int)
      2  /
    
    Table created.
    
    SQL> insert into t11(c1,c2) values(1,1);
    
    1 row created.
    
    SQL> insert into t11(c1,c2) values(1,2);
    
    1 row created.
    
    SQL> insert into t11(c1,c2) values(2,2);
    
    1 row created.
    
    SQL> create or replace function func2(p_code number)
      2  return varchar2
      3  is
      4  v_output varchar2(64);
      5  begin
      6  if p_code = 1 then
      7     v_output := 'Submitted';
      8  elsif p_code = 2 then
      9     v_output := 'Accepted';
     10  end if;
     11  return v_output;
     12  end func2;
     13  /
    
    Function created.
    
    SQL> /
    
            C1 test
    ---------- ------------------------------
             1 Submitted
             1 Accepted
             2 Accepted
    

    If you have run the function in a manner similar to mine, it will work for all ranks. Your design of the table shows that keep you track of each State of your order, so you have more than one State of each basket. If you want to view only the last State of each basket, please take a look at this example:

    SQL> alter table t11 add c3 date
      2  /
    
    Table altered.
    
    SQL> update t11 set c3 = sysdate - 1 where c1 = 1 and c2 = 1
      2  /
    
    1 row updated.
    
    SQL> update t11 set c3 = sysdate  where c1 = 1 and c2 = 2
      2  /
    
    1 row updated.
    
    SQL> update t11 set c3 = sysdate  where c1 = 2
      2  /
    
    1 row updated.
    
    SQL> select * from t11
      2  /
    
            C1         C2 C3
    ---------- ---------- ---------
             1          1 15-JUN-09
             1          2 16-JUN-09
             2          2 16-JUN-09
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  select t11.c1, func2(t11.c2) "test"
      2  from t11, (select c1, max(c3) c3 from t11 group by c1) a
      3* where t11.c1 = a.c1 and t11.c3 = a.c3
    SQL> /
    
            C1 test
    ---------- ------------------------------
             1 Accepted
             2 Accepted
    

    With greetings
    Krystian Zieja

  • I use the beta version, how can I return to the basis of Firefox?

    How can I return to the basis of Firefox instead of the beta?

    Backup of your profile and you will not lose your add-ons and bookmarks.

  • How can I return Ipad lost the Original owner

    How can I return Ipad lost to the Original owner. I found this in a restaurant and he didn't. is it possible to give that ipad

    Of course, follow this:

    Report a lost or stolen - Apple Support Apple product

    Please send back

    EDIT: of course, you can leave in the police station the nearest and the report as lost, place, time, etc. or to personnel in the site you found.

  • How can I return to 6.3 4.0 I have never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back

    How can I return to 4.0 3.6 I've never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back

    Downgrade to Firefox 3.6 first of all uninstall Firefox 4, but do not select the option 'remove my Firefox personal data '. If you select this option, it will delete your bookmarks, passwords and other user data.

    Then you can install the latest version of Firefox 3.6 available to http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your favorite courses, passwords etc.

    I recommend, to avoid possible problems with decommissioning, accessing your profile folder and delete the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Delete these files will force Firefox to rebuild the list of installed extensions, check their compatibility and cancel the toolbar customizations.

    For more information on how to find your profile folder, see https://support.mozilla.com/kb/Profiles

  • How can I get rid of a popup xfinity add

    I have xfinity popup add that keeps popping up on my screen, ask questions about xfinity wifi. How can I get rid of this popup?

    Please, pull down the Wi - Fi connection menu in the menu bar. If you are connected to a network with the name "xfinitywifi", and it is not your usual network, mode.

  • How can I return the virtual keyboard (now in the center of the screen) down?  I don't see what I'm typing so I hope it works.  Help, please

    After a recent update the keyboard appears in the center of the screen, rather than at the end. How can I return it down?

    Press and hold the keypad icon bit, then slide your finger up to 'Dock '.

  • my audio syestem of beats went when I choose windows 8, how can I return it with the full version?

    my audio syestem of beats went when I choose windows 8, how can I return it with the full version? I have hp pavilion dv4 5110tx

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp59501-60000/sp59882.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    Then, download and reinstall the Chipset driver on the following link.

    Chipset Driver - Windows 8.

    After reinstalling, restart the laptop and let Windows load completely.  Open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  When this has completed, restart the computer again before checking if the Beats Audio is now listed in the windows control panel.

    Kind regards

    DP - K

  • How can I return the path of a test step VI in LabVIEW?

    I would create a VI that will return all of the VI paths that are associated with the test steps in a TestStand sequence.  How can I return the path of the VI associated with a test step?  Here is a starting point that will return the first step of the sequence.

    You must convert the Module to a LabVIEWModule (use the variant to the data node), then you can use LabVIEWModule.VIPath.  If you use TestStand 2010, you can call LabVIEWModule.GetVIAbsolutePath to find the VI in the case you are calling with a project.

  • How can I return my computer dell laptop to factory settings

    How can I return my lap top to factory settings

    See http://support.dell.com/support/topics/global.aspx/support/kcs/document?c=us&l=en&s=gen&docid=DSN_336966&isLegacy=true

  • How can I return the audio for my lap top.

    Original title: audio sound

    I inadvertently deleted something that gives me sound on my lap top. I think it is silverlight. How can I return the audio for my lap top. THX

    Hello

    1 have had any changes made on the computer before the show?

    2. what operating system is installed on the computer?

    3. when exactly do you face the question?

    I suggest to return the item and try to run the fix it:

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    Please provide more information to help you best.

  • How can I write my results to Excel in a perticular line sheet?

    Hi all

    I'm new in labview and I have a problem.

    I found my results, it is in the 2D array... He sometimes in 1 d array because I want to remove the header line.

    How can I write my results one by one in the row following on it?

    Hereby, I have attached the excel sheet where I write my results.

    There are about 25 result so I have to run my VI 25 times but the result appears in excel sheet in 25 succeeding row.

    hope you find my question...

    Thank you

    Ok..

    I'll probably do...

  • How can I return my T5i factory settings?

    How can I return my T5i factory settings?  I have problems with flash and counting and thinking, I may have inadvertently changed a setting.  Appreciate any help.  Thank you

    Yes

  • Accidentally changed myself to be the administrator. Now, I can't do anything on my computer. How can I return to be an administrator?

    I pressed a button on the accident and he took off to be a Director. Now, I am not recognised and cannot do things on my computer. How can I return my administrator status?

    Log in as the built-in Administrator and change yourself (or leave you the user account and only use the administrator account if necessary.)

  • How can I print the results of my research?

    I have more than 3000 DWF files in my search results. They are located in different folders on our server. How can I print the results of my research?

    This means that nomo did not read your question carefully.

    I think Directory printer Karen will do what you want.  3000 files is a lot of paper.  You can download Cute PDF Writer and save the output to a PDF instead - at least until you get the options sorted...

Maybe you are looking for