How to unload a form

in my project i load a form from the mainForm
the form is for listing my data in a textarea
when i close it i just set it to setVisible(false);
but when i load it again it mess up with the records
for example
at the first load
1, data, data,data
2, data, data, data
when i load it again
it shows me
3, data, data,data
4, data, data, data
how can i fix this
thank you
The code i use to load up the form
ListMaps dialog = new ListMaps(mainWindow)

ignoto,
If you've only got two forms then "hiding" (+setVisible(false);+) and "showing" the second form is probably adequate... then the trick is to not to load the form twice... the second time you "show" the form. This is a bit faster (more effecient) than loading the form everytime, especially if it's populating itself with the same data (from a database or file) everytime you display it.
For bigger systems you have to unload the form, because it'd take up too many resources having all your forms loaded at once... so you destroy the form on "close", and load it on "show".
Clear?
Cheers. Keith.

Similar Messages

  • How to Unload the form when the user presses Escape Key

    Hi all
    I have tried several triggers for unloading the form when the user presses escape key,but none of them worked. Could any body give the trigger name and the code that unloads or closes the form when the user presses escape key.

    Hello,
    Change the EXIT entry of you ressource file:
    27   : 0 : "F4"             : 32 : "Exit"Francois

  • How to clear a form

    Hi,
    since I've received no answer to my earlier question yet, I try to ask it again.
    I have a form to input data. The primary key of the new data record is created from a sequence. If I open the form the first time, everything is right. But if I save the new record and open the form again, the afore entered data are in the input fields and instead of "create" occurs "apply changes". I guess, the form gets the primary key of the saved data record instead of a new primary key from sequence. Where can I have an effect on that?
    The application is on the Oracle workspace "GILLETTEDH" and the application is 25515. The form I talk about is on tab "Input Form" (page 2).

    Bettina,
    I wasn’t referring to the processes or branches on the form page. You should keep them just as they were generated by the wizard. The branch I was talking about is the one that takes you to the form page. This is typically a report page or some kind of menu page. If you use the form & report wizard, then you’ll get that pre-build. The create button takes you to the form page and resets the form page session state and displays the form in create mode. The report link takes you to the form page while supplying a key to query data and displays the forum page in edit mode. So it depends on how you call the form page.
    If you just want to keep adding data though, i.e. create a record, return to page 2 and create another record, then resetting session state for page 2 and branching back to page 2 when clicking on create would be the right thing to do. Try creating a reset session state page process on page 2 and make it conditional on clicking “Create”.
    Also, when looking at your form, I found that your page process to generate the PK is currently set to “Never”. With that setting you won’t be able to create new records. You should make that process conditional on clicking on “Create” as well.
    You also may want to look into using before-insert triggers for generating the primary key. This would be a cleaner approach to generating this key than having a page process. By using triggers, the primary key would be generated no matter how to records gets inserted, i.e. by using this page, direct insert statement or another client interface.
    Hope this helps,
    Regards,
    Marc

  • How to call a form from report? in 6i

    How to call a Form from Report? In Developer 6i of oracle. Plz tell me tex.

    try this
    declare
       AppID PLS_INTEGER;
    begin
         AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
    exception when others then
          srw.message(1,'Errror');
    end;Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • How to run the form that is only installed on a PC and not using a server?

    Hi
    I am new to Oracle and have taken the forms class. But I do not understand how to run the form from my PC using XP windows. (Do not have access to a server).
    I have started the OC4J, made sure the listener was started, compiled the form and then when I run it, it automatically goes to the HTTP:
    ERROR: res://ieframe.dll/acr_depnx_error.htm#,http://kevin:8889/forms/frmservle
    I connected to the database correctly. I can process a report and it does nor try to access the internet. My only issue is running the form. I verified it compiled.
    Sorry for a basic question. Could someone please help, I tried reviewing other questions, but not sure if they are connecting to a server or not.
    I see webutil but is it required if I don't have a server? Thank you in advance.

    Regardless of the version, it appears that you may not have configured the Builder. Do the following:
    1. Open the Builder
    2. From the menu, select Edit > Preferences > Runtime
    3. In the box labeled "Application Server URL:", enter a local URL needed to run a form OR click the button labeled "Reset to Default". If you decide to manually enter a value, it would looks something like this:
    http://localhost:8889/forms/frmservlet
    4. In the field labeled "Web Browser Location:", enter the path and executable to your preferred browser. So for example if IE is your browser of choice the entry would most likely look like this:
    C:\Program Files\Internet Explorer\IEXPLORE.EXE
    5. Click on OK and retest.
    By the way, you can manually enter a URL in the browser. Clicking the RunForm button from the Builder is strictly optional. To run the "test" form directly from the browser enter the following into the browser's address field:
    http://localhost:8889/forms/frmservlet?form=test
    More information about Forms can be found on OTN:
    http://www.oracle.com/technology/products/forms/index.html

  • How to create one form for two Udo object

    Hy ,
    I have two Object Udo (header and line)
    How we created a form to manage these two files (UDO)
    Thanks

    Thank you janos
    it works, I put the code to other developers for information
         Shared Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_application.ItemEvent
                If ((FormUID = "SIR001_") And (pVal.ItemUID = "add") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) And (pVal.Before_Action = False)) Then
                    Dim oDS As SAPbouiCOM.DBDataSource
                    oDS = SBO_application.Forms.Item(FormUID).DataSources.DBDataSources.Item("@SIR_LOTL")
                    oDS.InsertRecord(oDS.Size)
                    oDS.Offset = oDS.Size - 1
                    oform = SBO_application.Forms.Item(FormUID)
                    oMatrix = oform.Items.Item("mtx_0").Specific
                    oMatrix.AddRow(1)
                End If
                If ((FormUID = "SIR001_") And (pVal.ItemUID = "del") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) And (pVal.Before_Action = False)) Then
                    oform = SBO_application.Forms.Item(FormUID)
                    oMatrix = oform.Items.Item("mtx_0").Specific
                    For index As Integer = oMatrix.RowCount To 1 Step -1
                        If oMatrix.IsRowSelected(index) = True Then
                            oMatrix.DeleteRow(index)
                            oform.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
                        End If
                    Next
                End If
            End Sub

  • How to deploy Oracle Forms & Reports in Weblogic Server 11g (10.3)?

    Hi
    How to deploy Oracle Forms & Reports in Weblogic Server 11g (10.3)?
    Thanks

    Hi
    when i am going through your bleow link.
    I am not able understand the 3.3.1 step :2
    http://download.oracle.com/docs/cd/E15523_01/web.1111/e10240/basics.htm#i1010040
    edit this file in the Web Configuration,
    configuration of an application called "my_application" with a form module called "form=hrapp.fmx":
    can deploy only.fmx file ?
    if not how to find the realation between my_application and hrapp.fmx ?
    Thanks in Adavance
    Regards
    Ram

  • How to Refresh System Form in Run Time

    Dear All,
    Please give me idea for Refresh System Document in Run Time using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    Please post above discussion in SDK forum.
    Thanks & Regards,
    Nagarajan

  • How to put the form in Query mode

    Hello
    Please let me know how to put the form or block in Query mode , so that when i run the form it should be in Query mode . I have seen properties of SET_FORM_PROPERTY and SET_BLOCK_PROPERTY but cannot find one
    Thanks

    QUERY mode? Did you mean, that you can only QUERY without changing data.
    This is the QUERY-ONLY-mode, which can be started e.g. call_form
    this is the help for that topic:
    PROCEDURE CALL_FORM
    (formmodule_name VARCHAR2,
    display NUMBER,
    switch_menu NUMBER,
    query_mode NUMBER,
    data_mode NUMBER,
    paramlist_name VARCHAR2);
    query_mode     
    NO_QUERY_ONLY (The default.) Form Builder will run the indicated form in normal mode, allowing the end user to perform inserts, updates, and deletes from within the called form.
    QUERY_ONLY Form Builder will run the indicated form in query-only mode, allowing the end user to query, but not to insert, update, or delete records.

  • How to compile all forms in a directoy at time?

    Hi friends, thank for your replies for the previous questions.
    Now
    How to compile all form modules located in a directory
    at a time? usually what I know is opening form one by one
    and compile it. But I want to compile all forms and create
    executable files at a time.
    Is project Builder helpfule to achive this??
    thanks
    madhu

    Yes, his file is useful -- it should run on Windows XP. You need to copy the above text into a file using a standard text editor, something like Notepad. To run it, you open a Cmd.exe DOS window on your pc, change directory (CD) to the folder where your forms are, and enter the command script file name.
    Here are several more links to other topics in this forum asking how to do the same thing:
    Re: How To Compile 370 forms ?
    Re: Creating Oracle 10g Forms and Reports Builds

  • How to create a form that requires thousands of checkboxes?

    Hello forum members,
    I have Adobe Acrobat 8 Professional.  I've been searching the internet/forums for the past few hours and I can't seem to find any information on how to create a form with many checkboxes.  I do not want to have to give individual names to thousands of checkboxes.  I'm hoping there's an easy solution to my problem.  Maybe I don't even need to use checkboxes.
    Here it is...
    I'm a DJ and wedding season is coming up.  For each wedding that I do, I usually give the bride and groom a list of my songs and they choose a bunch of songs that they'd like to have at their reception.  In the past, I've just been sending them a webpage word document with the songs and they'd send me their selections in a different document or directly in the reply email.  I'd like to make this process easy for them (and myself) by making a pdf document where they can simply place a checkmark beside the songs that they want and then send it back to me.  As a bonus (if it's possible) i'd like to be able to export the songs that they selected into a separate document so that I don't have to go through the entire pdf (with thousands and thousands of songs) when they send it back to me.
    I would be ever greatful if somebody help me or direct me to a link with some additional information.
    Thanks in advance,
    Mike

    George, thank you very much for your quick reply and good advice.
    Mike

  • HOW TO OPEN A FORM developed IN 10Gds REL2

    HI,
    How to open a form developed in 10gdsrelease 2 in 10g release1.
    It gives ros error.
    Thanks in Adv.
    Rup
    Message was edited by:
    Rup
    Message was edited by:
    Rup

    My suggestion would be to try converting the form to XML using <10gHome>\bin\frmf2xml.bat, and altering this XML to look like R1 XML. Simply changing the Module version might do the trick, but probably not.
    To see the difference between 10gR1 and 10gR2 XML formats, take a reasonably complex R1 form and convert it to XML. Next, upgrade that same form to R2 and convert it to XML. Compare the two XML files.
    Applying the knowledge gained from this comparison, modify the XML from your original R2 form. Try converting back to FMB using <10gHome>\bin\frmxml2f.bat Please share your findings with the forum!
    Hope this helps,
    Eric Adamson
    Lansing, Michigan
    PS: It is assumed that you have access to both 10gR1 and R2 installations!

  • How to open a FORM developed in 10gds release2 into 10gds release 1 ????

    How to open a FORM developed in 10gds release2 into 10gds release 1
    Thanks in adv.
    Rup
    Message was edited by:
    Rup

    Please check out the Forms.

  • How to setup a forms function in R12 to launch an URL?

    Hi All,
    In 11i we could create a forms function of the type "SSWA plsql function" to launch a html page from the menu.
    How is that supposed to work in R12?
    So my question is, how to setup a forms function to launch an URL like www.oracle.com in R12?
    thanks,
    thierry

    Hi, first set the Profile 'Restricted Text Input' to 'No' for your User.
    Then create a form function like below:
    Functional Administrator > Core Services > Function > Create (button)
    Name: XX_GOOGLE
    Code: XX_GOOGLE
    Type: SSWA jsp function
    Maintenance Mode Support : none
    Context Dependance: Responsibility
    (press continue button)
    HTML Call: javascript:void window.open("http://www.google.com")
    Leave other fields blank
    Add to HR_EMPLOYEE_DIRECT_ACCESS_V4.0 menu:
    500 XX Google XX_GOOGLE
    This will pop up your external webpage in a new window.
    The issue is that it only works from the Navigator framework page (not from within Core Forms)
    Regards,
    Mike

  • How to assign modified forms (SAP scripts etc.,) to Dunning texts

    Hello, how do I assign forms (SAP scripts etc.,) to dunning texts according to no 5 above?
    I've copied the form f150_dunn_01 and modified it. Now I want to assign my modified form to dunning text. In txn fbmp I have created new procedure and when I clicked on Dunning texts it takes me to dunning text screen where I should be able to assign my modified form. But the screen is greyed out and not editable. Is there anything I'm missing or I've permission issue?
    Please help
    Regards
    Naz
    Most of the config for Dunning is done with TCode FBMP.
    Key Steps are :-
    1.     Define the dunning procedure or use the standard
    2.     Define the dunning levels (desired stages of reminder)
    3.     Define the dunning interval (frequency of reminder)
    4.     Line item grace periods & Min.days in arrears (acct) govern the criteria for picking items to be dunned along with Minimum amounts
    5.     Assign forms (SAP scritps etc.,) to dunning texts. Forms contain the contents of the reminder notice and the format of notice.
    6.     You can include the Sp GL Transactions as well.
    7.     Customer/Vendor Master Records needs to be updated with the Dunning
    8.     Procedure etc, Dunning tab in the master data
    9.     Use F150 to run.

    Hi Praveen,
    Ok let me go through the steps that I have done so for.
    1. New dunning procedure 004 been created in Txn FBMP
    2. Then by choosing the assigned dunning procedure 004, trying to update the form by selecting the company code and then Dunning text. But the screen is grayed out.
    Please pass me your email address then I will send you the screen shoots.
    Thanks
    Naz

Maybe you are looking for

  • Need a help on Update statement

    Hi All, I Need a help in updating a table column. PFB my requirement. Table1 ItemID OrgId       Date 1       82     12/sep/2012    2       82     25/oct/2012 3       82     17/Nov/2012 4     82     22/Jan/2013 5     82     26/sep/2012 Table2 Itemid  

  • Recv. Detrmtn Error

    Hi, While testing the configuration: Receiver Determination           <Not found> Runtime error                      Error while refreshing the XI runtime cache <Trace level="1" type="B">CL_RD_PLSRV-ENTER_PLSRV</Trace>... (2 lines) I have activated a

  • Why java take enum type off

    why java take enum type off? When in switch statement, it become complex without enum type. Enum can constrained the range of integer value. Taking enum type off, method parameter checking will take lots effort. can any way to replace the functions o

  • Format Plug-In : problem loading a 4 channels image with CS4

    Hi! I wrote a format plug-in to support our own in-house file format. That plugin works fine with CS2 but I have some problems with CS4. Since my plug-in behaves exactly as the "simpleformat" provided with the CS4 SDK, we can center the discussion ar

  • [Faces] Debug information like UIX?

    Hi All, I used to work with ADF UIX and what I liked was that you had a setting in 'uix-config.xml' where you could enable debug information. After enabling this setting you would see every parameter that was sent in your debug console. My question i