Passing data from one frame to another frame

hello all, i am having a problem with passing data from one frame from another. I have a main frame when you click on connect button it display the second frame(class) that has 2 text fields and 2 buttons. When i click on connect it check if the data is correct. If the data is correct i want that frame to close and pass the data back to main frame. How can i do that.
thank you

hello all, i am having a problem with passing data
from one frame from another. I have a main frame when
you click on connect button it display the second
frame(class) that has 2 text fields and 2 buttons.
When i click on connect it check if the data is
correct. If the data is correct i want that frame to
close and pass the data back to main frame. How can
i do that.
thank you
the original problem sounded like an ideal opportunity to use Modal Dialog. if you want one frame to display another to get user input then you need to stop the method in the main frame from executing until you recieve a valid input.
you can use your own class and keep all of the components that you have in the connect frame but you would have to extend JDialog instead of JFrame.
there is a way around it!
if you must use JFrame for both, then you need to have access to the main frame in the connect frame, maybe pass the pointer to the constructor??
anyway, when the connect frame is done with its duties, you have to use the pointer to call another method in the main frame that will continue the process. otherwise main frame doesn't know when connect frame is done and by that time, the method in main frame that instantiated the connect frame has long since died.
also, it allows things to happen in the other window that you may not want to happen until the connect frame is done
typically users of software start clicking around on things and you could have three or four connect frames going at the same time
it's really best to use a Modal Dialog, it really can look just like a JFrame!!!!!!!!!!!!!!

Similar Messages

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • Passing data from one screen to another(web-dynpro) in SRM sourcing cockpit

    HI Experts,
    i am facing problem in passing data from one web-dynpro screen and assigning the data it to another web-dynpro screen.
    my requirement is that when ever user selects a contract in PROPOSE SOURCES OF SUPPLY screen popup and press only assign only button, the data of the contract should be copied to the shopping cart.
    i have already used the BADI BBP_DOC_CHANGE_BADI, but unfortunately it was not working.
    so i tried to use the context, element and other web-dynpro fields to pass the data, i am able to pass the data from the popup to the second screen and able to assign it.
    but when ever i deselect the shoppping cart which has been assigned with the data of the popup and select another shopping cart the data of the above shopping cart is cgetting changed.
    i am unable to figure out the exact reason why this is happeing.i have written code in the ASSIGN ONLY button method to fetch the popup data and in the WDONMODIFYVIEW method of the second screen to assign the popup data to the shopping cart.
    i have tried to bind the elements using the BIND_TABLE, BIND_STRUCTURE, BIND_ELEMENT, BIND_ELEMENTS methods, but nothing is working.
    can anyone suggest me where i am making mistake and try to solve the issue.
    Thanks
    Tanveer

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • Pass data from one VI to another one

    Hi,
    I try to control a event structure in a VI with a boolean command from a second VI. I have been advised to "build a connector to pass any data from one VI to another one".
    Below an simple example: my goal is MyVItwo gives the result of a 2 numbers addition only when the boolean "MyBooléen" value changes in MyVIone.
    How can I realise this?
    Thanks
    PB
    Attachments:
    Example.zip ‏10 KB

    It is not entirely clear what you are trying to do. I think that what you want is a main vi/subvi setup. The boolean control would be in the main vi and would be monitored by an event structure. When the value of the boolean changes the subvi would be activated. I have attached an example showing how this is done.
    In order to use a vi as a subvi you build a connector box. In order to do this you just right click on the vi icon at the top right of the front panel and select show connector. You then wire connections on the connector block to controls on the front panel. You insert the subvi into your main vi by choosing "Select a vi" on the functions pallette and browsing to the subvi.
    If you absolutely have to pass the data from one vi to another while running in parallel there are a number of ways to do it. Global variables will certainly work but are generally avoided by experienced LabVIEW programmers due to their potential caveats and the break in data flow. An alternative to global variables is the functional global, also called a LV2 style global. This is basically a non-reentrant subvi with an unitialized shift register which allows for data to be stored. For more information search this forum for LV2 globals.
    Another alternative is to obtain a reference to the control and operate on that reference. You could also use queues, notifiers, or occurences. Search the examples which shipped with LabVIEW for examples on using these operators.
    If you need any more information feel free to post back here.

  • Passing data from one subreport to another subreport

    Post Author: GISGuy
    CA Forum: Formula
    I have a report which is really a series of subreports with very few actually requiring a direct link to another.  What I am trying to do is compare dates between different subreports and do conditional formatting to highlight where a dependant data source has an older date than the parent data source.
    We use Crystal Reports XI release 2, and the data resides in ArcSDE & Oracle 9.
    Any suggestions would be greatly appreciated.
    Eric Andersen
    Woodlands Information Management Technician
    Canadian Forest Products Ltd.
    Prince George, BC

    Post Author: synapsevampire
    CA Forum: Formula
    When your tagline is about the size of your post, you probably didn't convey much.
    You can pass values from one subreport to the next in the order they are placed in the main report by using shared variables, as in:
    //1st subreportwhileprintingrecords;shared datevar MyDate := {table.date}
    //2nd subreportwhileprintingrecords;shared datevar MyDate;if {table.date} = MyDate thencryellowelsecrwhite
    Covers the theory, for specifics you have to be in your post.
    -k

  • How to use session to passing data from one JSP to another JSP

    Dear All, I had create 2 jsp web page and want to do this:
    1. input some data into the text box and click the submit button, the jsp page
    will open another jsp page and send the text box data to the new open jsp page.
    can any one tell me how to open a new jsp web page and reciev data from another jsp page?
    thanks yu very much!
    the question.jsp got some code like:
    <html>
    <input type= 'text' name = 'txtName' size = 10 >
    <input type= 'submit' name = 'submit'>
    <% some jsp code %>
    </html>
    answer.jsp
    <html>
    <%
    some jsp code here
    %>
    </html>

    Contents of HTML forms are transmitted as name-value pairs, so you can call request.getParameter(String name) with your form field's name in order to access its value:
    String textValue=request.getParameter("txtName");Regards

  • Passing data from one transaction to another

    Hello ,
    I have internal table  as a result of user  selection on the selection screen of first transaction.
    Internal table can have any number of  lines that have to be processed in second transaction.
    How I can pass data ( list ) from first transaction to second one.
    Please advice
    Krsto

    Hi Krsto,
    Firstly i didnt understood the concept of transactions.
    U can pass the data of one views table selcted data into the other or to capture the data  .
    Try using these two methods
    1. Cal method get_selected_elements.
    2. Or else if u want whole table data to be captured then use Get_static_attributes_table
    I am sure by one of this methods yuor data will be passed.
    This methods are used for the table data selected will be captured and write the code accordingly as u wish
    regards,
    Sana.

  • Passing data from one webapplication to another

    hi all
    i have two web apps webapp1 and webapp2 deployed on weblogic server 10.3
    i want to redirect to webapp2 from webapp1 based on some condition, set some flag there and then come back to webapp1.
    now in webapp1 i want to check the value of this flag set in webapp2.
    i tried using request.sendRedirect() method and set the flag value in session attribute.
    but as per my understanding sendRedirect() method creates new request object and thus invalidates the old session because of which i am not able to retrieve the values. requestDispatcher.forward(0 method doesn't work for different applications.
    so what is the method which i should be using to pass some values from one web application to another.
    thanks in advance

    seems more like something you would fix with a webservice really. With for example XML-RPC you can very quickly setup a (simple) communication line between applications and you don't even have to worry if the applications are moved to different servers or even completely different networks.

  • How to pass data from one session to another?

    What does SAP memory use to pass data between sessions?
    What is the syntax of "Export to ..."? Where is it used?

    hi suman vijay,
    EXPORT obj1 ... objn TO MEMORY.
    Exports the objects obj1 ... objn (fields, structures or tables) as a data
    cluster to ABAP/4 memory .
    EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.  Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to the database table dbtab.
    IMPORT f itab FROM MEMORY.
    Imports data objects (fields or tables) from the ABAP/4 memory . Reads in all data without an ID that was exported to memory with "EXPORT ... TO MEMORY."
    IMPORT f itab FROM DATABASE dbtab(ar) ID key. imports data objects (fields, field strings or internal tables) with the ID key from the area ar of the database dbtab .
    EXPORT obj1 ... objn TO MEMORY.
    If you call a transaction, report or dialog module (with CALL TRANSACTION , SUBMIT or CALL DIALOG ), the contents of ABAP/4 memory are retained, even across several levels. The called transaction can then retrieve the data from there using IMPORT ... FROM MEMORY .
    Each new EXPORT ... TO MEMORY statement overwrites any old data, so no data is appended.
    EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key
    The database table dbtab must have a standardized structure .
    The database table dbtab is divided into different logically related areas ( ar , 2-character name).
    You can export collections of data objects (known as data clusters ) under a freely definable key (field key ) to an area of this database.
    IMPORT allows you to import individual data objects from this cluster.
    thanks
    Sachin

  • How to pass data from one page to another

    i have a table with multiselect and i want that in the moment i select some rows and press on a button in the other page should be displayed only those data i have selected from previous one.... how can i do this? any link or example for this case?
    thanks in advance :)

    If the data you are retrieving from the excel file is just a few fields, then you can get them all on the first page and store them as public variables and use those variables on the different pages. But if you are getting a lot of data per page, then it would still be a good idea to get them all on the first page but store them as arrays. Then, on each page you can use the array you need.

  • Passing data from one component to another

    I have one composite component (HtmlGroupPanel) that holds one or many primitive component. I have to sum up all the number of X in each primitive component and pass it to the parent/composite component to render that data to the user.
    Can any one please let me know the popular practices to do this task or anything close to it?

    hi shabeeb......
         you can have an inbound plug in the window. the default inbound plug has the option for entering the parameters and it also has an option to give it as optional. you can make use of that.
    ---regards,
       alex b justin

  • How to pass data from one Form to another Form

    I am writing a Login form to allow user to access MySQL but the Authentication is taking place in another form that actually does the work
    how do I pass the username and password form the Login form to the worker form.

    1. don't do these stuffs on the UI classes, let them only be responsible for displaying UI.
    As for the passing information back and forth from separate objects (forms are classes and form instances are objects) you can read up on the various appropriate design patterns, especially those implemented in MVC models.

  • How to pass data from one component to another

    Hi all,
    We have added a button on "ICCMP_BTSHEAD" component, which will open a new popup component (Zcomponent), which will have some fields related to the order. Can anyone please tell us how to pass the ticket/ entity value  to the new component so that it can be used there. Any pointers will be highly appreciated. Thanks.
    Rgda,
    @run

    Hi Arun,
    I have the same issue. I  added the Follow-up(hyperlink) button in the Sales order. How can i get the view from the Interaction record follow-up  by clicking on hyperlink in Sales order. Please help me.
    Regards,
    Swaraj

  • Passing data from one page to another page using form bean

    hi,
    refer to above question, i had follow the sample found at weblogic sample application
    ,but unfortunately when i create my own application. The following error occur:
    [Caught exception when evaluating expression '{actionForm.note}' with available
    binding contexts [currentTag, session, pageContext, request, response, application].
    Root exception cause: com.bea.wlw.netui.script.xscript.IllegalContextStateException:
    The action form for the expression "actionForm["note"]" could not be found
    can anymore tell me what has i miss !
    {program flow -
    pageA.jsp[userinput] ->getConfirmationAction-> pageB.jsp[confirmation]
    -> protected Forward getConfirmation(TransferBean
    form) throws Exception
    return new Forward( "show_confimation" ,form);
    thanks & rgds
    cassy

    Cassy,
    If your page flow looks like this:
    first.jsp -> actionA(FooForm) -> second.jsp -> actionB()
    Then I think the problem is that there is no action form in scope as
    second.jsp is rendering. This is because the action raised by
    second.jsp is actionB, which has no form, and hence no {actionForm}.
    You have two options:
    Option A - use page inputs (available in the upcoming Service Pack 2)
    ---- JSP:
    <%-- At the top of your second JSP... --%>
    <netui-data:declarePageInput name="myPageInput" type="APageInput"/>
    <netui:label value="{pageInput.myPageInput.name}"/>
    ---- JPF:
    * @jpf:action
    * @jpf:forward name="success" path="second.jsp"
    protected Forward actionA(FooForm form)
    APageInput input = new APageInput(form.getName());
    return new Forward("success", "myPageInput", input);
    Option B - since the form is still technically in the request, use it as
    a workaround until option A is available to you.
    <netui:label value="{request.fooForm.name}"/>
    I hope this helps.
    Thomas
    Eddie O'Neil wrote:
    Cassy--
    Is there a <netui:form> tag on the page which displays this error
    (pageB.jsp?)?
    The "actionForm" binding context can only be used inside of a
    <netui:form> tag. To display data in a read-only page (no form), you
    can put the data in the request and reference it with the "request"
    binding context.
    Hope that helps...
    Eddie
    cassy wrote:
    hi,
    refer to above question, i had follow the sample found at weblogic
    sample application
    ,but unfortunately when i create my own application. The following
    error occur:
    [Caught exception when evaluating expression '{actionForm.note}' with
    available
    binding contexts [currentTag, session, pageContext, request, response,
    application].
    Root exception cause:
    com.bea.wlw.netui.script.xscript.IllegalContextStateException:
    The action form for the expression "actionForm["note"]" could not be
    found
    can anymore tell me what has i miss !
    {program flow -
    pageA.jsp[userinput] ->getConfirmationAction-> pageB.jsp[confirmation]
    -> protected Forward
    getConfirmation(TransferBean
    form) throws Exception
    return new Forward( "show_confimation" ,form);
    thanks & rgds
    cassy

  • Any info about ADF WebServices and pass data from one VO to another VO?

    Hi, i need to do a webservice for synchronize two tables in two db... there are any info, articles, tutorials or examples about this? preferably the part of data copying between VO...
    Thanks in advance.

    I'm not exactly sure what you are trying to do and why would you need a Web service for this - but it seems like having an AM service method is what you should be using.
    Read more here:
    http://docs.oracle.com/cd/E26098_01/web.1112/e16182/bcservices.htm#sm0206
    http://docs.oracle.com/cd/E26098_01/web.1112/e16182/bcservices.htm#sm0212
    Demo:
    https://blogs.oracle.com/shay/entry/am_service_method_-simpledem

Maybe you are looking for

  • Help displaying an image using the canvas!!!!!!!!

    Hey guys I don't know whether I am not grasping some concepts well.I have been going mad trying to get the code working Here is the code import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import java.io.*; * @author Administrator

  • Help!  Images in Aperture are dark and oversaturated...

    I just got a new MacBook Pro, so I decided to download the Aperture demo to give it a try. I have been working with Lightroom and wanted to compare the two. So I imported my first folder of images from some conference events I shot. My first impressi

  • Trouble updating to new videocard

    I am having trouble getting my new Nvidia Quadro FX 5600 video card to install. When I fired the machine up after putting the new card in it gives a alarm tune and the monitor does not wake up. My system is a Mac Pro 2.8GHz 8-Core with 16GB of ram an

  • How do I get exit & etc to be displayed on my screen?

    It only is displayed when I move the cursor to the upper right corner and click the left button.

  • Grey dots next to song

    The last few songs I've purchased have down loaded on itunes but wont transfer to my ipod shuffle. There are little grey dots next to these songs. Also even if I disconnect my ipod from the computer , it still shows up in my source list. I just can't