Clicking Add Page button deletes data from initial page.

I have an Add Page button on the first page. I enter information into my first page. When I click the Add Page button, a new page (page 2) is added but the information I have inputted into the first page disappears. I have attached the form that I am struggling with. Any help would be appreciated!

Modified your sampel to make it work.
1. For the Page 2 subform you should set the minsize as 0,  themaxsize to 1 and the initial count to 0. In doing this there is no addressable object to script against.
2. In the code that adds the page you have a command:
form1.Page2.instancemanager.addInstance()
As there are no subforms for Page2 present you get an error about the object not existing. The Page2 object does not exist yet so you cannot call teh instanceManager method. So you must use another notation to get to the instanceManager. In this instance you vcan use the underscore (_) notation to access the instanceManager of an object that is not part of the layout yet. So your command will be:
form1._Page2.addInstance().
3. You may want to disable the button after they add the second page as well as position the cursor in teh 1st field on teh next page. To do this you can add this code:
xfa.host.setFocus(Page2.Table1.Row2.Action_Step);
this.presence = "invisible";
Note that you must reposition the cursor before you hide the object otherwise the hide the button code will not work.
Hope that helps
Paul

Similar Messages

  • Transfer of data from one page to another

    Hi all,
      I am new in bsp. I have created one bsp application in which i have created one tableview iterator with button in one of its column.
      when i click on the button i am calling one page ,in which on initialization event, i have written one code to display PDF by converting smartforms OTF output to PDF.
    first time, when i click on the button on the first page all the data declared in the application class are transfer from one page to second page. and PDF gets open in another window.
    But when i close the first pdf file and again click on the button on the first page to see pdf output of another record , i found that data get initialized in the first page .hence its not transported to second page and pdf file comes as blank.
    Please help me to solve this issue.
    its really urgent.
    thanks,
    JIGs

    Hi,
    Passing params can be done via:
    - navigation->set_parameter (see http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/231779c53011d4990400508b6b8b11/frameset.htm)
    - cookies (see http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/frameset.htm)
    or by working stateful (then you need to make sure that the vars are set right before going to the next page).
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • How can we export the data from OAF Page to Excel instead of .csv or .txt

    Hello,
    How can we export the data from OAF Page to Excel instead of .csv or .txt
    When i click on the export button it is exporting to txt file, But i need to export the data into Excel by default
    Please help me
    Thanks in advance
    Thanks,
    Raju
    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju
    Edited by: 1006649 on May 21, 2013 10:55 AM

    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju

  • Deleting data from text files

    Hi there,
    I am having a real battle trying to delete data from a text file I am using. There seems to be this giant cloud with Java, where there is no real easy way to delete text from a file??
    I have a JFrame with two textfields on it where you enter the username and pcname. There is a OK button once you have entered those details.
    On action event I would like those two details, to be removed from the text file that has been read in.
    I have a text file like this:
    bob
    pc1
    bill
    pc2
    The data above gets written no problem, one at at a time using the below.
    File f = new File("\\c:\\filename.txt");
    String strToWrite;
    try
    FileOutputStream fstr = new FileOutputStream(f);
    strToWrite = username1+ '\r'+'\n' ;
    byte[] bytes = strToWrite.getBytes(); fstr.write(bytes);
    strToWrite = pcname1 + '\r'+'\n' ;
    byte[] bytes2 = strToWrite.getBytes(); fstr.write(bytes2);
    strToWrite = username2+ '\r' +'\n' ;
    byte[] bytes3 = strToWrite.getBytes(); fstr.write(bytes3);
    strToWrite = pcname2 + '\r'+'\n' ;
    byte[] bytes4 = strToWrite.getBytes(); fstr.write(bytes4);
    catch (IOException e)
    System.out.println("Error -- " + e.toString());
    To read them back in I have made the follwoing:
    BufferedReader br= null;
    Count = 0;
    try
    br = new BufferedReader(new InputStreamReader(new FileInputStream("\\c:\\filename.txt")));
    String s = "";
    while((s=br.readLine()) != null )
    Count = 1;     
         //System.out.println("Data is " + s);
         inboundtext = s;
         if ( Count == 1 )
    break;
    while((s=br.readLine()) != null )
    //System.out.println("Data is " + s);
    inboundtext = s;
    Count = 2;
    if ( Count == 2 )
    break;
    catch(IOException ie)
    finally
    try
         if(br!=null) br.close();
    catch(Exception e)
    Now the above I know, is reading each line of the text file one at a time.
    Now what I would like is that when the text that we got from the textfields, using getText(), be removed from the file without destroying the rest of the records in there? Why is it so easy to add and replace files, but not do any deleting from them?
    please help!!

    sorry, FileOutputStream fstr = new FileOutputStream(f);
    should be FileOutputStream fstr = new FileOutputStream(f, true);

  • Program or Function module to delete data from Open Hub Destination Table

    Hi All,
    Can anybody suggest me a Program or Function module to delete data from Open Hub Destination Table.
    Thanks & Regards,
    Vinay Kumar

    You can simply goto t-code SE14 mention the open hub destination table and Delete data by clicking on "Activate and Adjust database" with radio button "Delete Data".
    Regards,
    Arminder

  • Deleted Database from OEM Page showing pending - Need help pls..

    Hi..
    I need urgent help for this issue. Yesterday I saw a production database was not communicating on the OEM home page so I deleted it from the page restarted the agent on the server and re-added it to the OEM home page (10g OEM). It has been showing pending since yesterday and is still uploading XML files. I forced an upload of files using emctl upload agent and it is still uploading and showing pending. Is there any way I can get this PRODUCTION database to show up normal and be accessible in OEM? I need help on this soon as we need to have it available in OEM for monitoring... Also, it should still have it's history even though I deleted it from the database page. Correct?
    This is the status output:
    Last successful upload : 2013-01-23 09:45:34
    Total Megabytes of XML files uploaded so far : 3.43
    Number of XML files pending upload : 0
    Size of XML files pending upload(MB) : 0.00
    Available disk space on upload filesystem : 27.00%
    Last successful heartbeat to OMS : 2013-01-23 09:44:41
    Agent is Running and Ready
    i23m9:FSRPT:/orasw/EMHomes/agent10g/bin> emctl status agent
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    Agent Version : 10.2.0.5.0
    OMS Version : 10.2.0.5.0
    Protocol Version : 10.2.0.5.0
    Agent Home : /orasw/EMHomes/agent10g
    Agent binaries : /orasw/EMHomes/agent10g
    Agent Process ID : 8388808
    Parent Process ID : 28573750
    Agent URL : http://i23m9.ucsf.edu:3872/emd/main/
    Repository URL : https://vx27.ucsf.edu:1159/em/upload/
    Started at : 2013-01-23 08:35:22
    Started by user : oracle
    Last Reload : 2013-01-23 08:35:22
    Last successful upload : 2013-01-23 10:05:31
    Total Megabytes of XML files uploaded so far : 4.07
    Number of XML files pending upload : 0
    Size of XML files pending upload(MB) : 0.00
    Available disk space on upload filesystem : 27.00%
    Last successful heartbeat to OMS : 2013-01-23 10:04:44
    Agent is Running and Ready
    Why does it show 0 as the number of files pending upload, but still uploading files? The number of file uploaded so far continues to increment.
    Thanks so much for your help!
    NS
    Edited by: EastBay_Oracle on Jan 23, 2013 10:05 AM
    Edited by: EastBay_Oracle on Jan 23, 2013 10:14 AM

    You are able to access all the DB pages because the OMS makes a direct connection to the target DB to retrieve in information in these pages. The historical performance details are also queried from the AWR of the target DB and is not stored in the Grid control repository DB.
    The status is however computed by the Agent monitoring this DB. If the DB status is incorrect though it is running, it means that the Agent is unable to compute the status or has incorrect monitoring configuration details for this DB. You can check this by choosing the Database and clicking on the 'Configure' button. Review whether all the database details are correct and attempt a 'test connection' in this page.
    Regards..

  • Update/insert/delete data from xcelsius to Database via web service

    Hi,
    I need to create dashboard that go function can <b>update/insert/delete</b> data send to <u>Database</u> thru <u>web services</u>, as i know got 2 xcelsius add-on software which support those of function <b>InfoBurst</b> and <b>flynet </b>
    <b>InfoBurst</b>
    http://www.infosol.com/azbocug/minutes/4-Writeback%20to%20a%20Database%20with%20Xcelsius.pdf
    <b>flynet </b>
    http://www.flynetviewer.com/public/community/Blogs/FlynetXcelsiusServerUser/default.aspx
    Except this 2 purchase add-on xcelsius, any other solution ?  
    Maybe need to write some in MSSQL or C# programming which enable insert, update, delete ...etc  ?
    *note: i not use Xcelsius Engage Server , i use Xcelsius Engage only
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Mar 1, 2011 6:06 AM

    Hi,
    As of now in Xcelsius/Dashboard Design there is no feature or functionality to insert/update/delete data from database.
    Solution:
    Create a Web service in let’s say C# or Java, which will perform insert/update/delete operation.
    In Xcelsius add Web Service connection and user above web service.
    Xcelsius Web Service connection provides option to pass input values to a Web Service (Input Pane) and get the result (Output values pane).
    We can pass values to be written to the database as a input to Web Service via Web Service connection from Xcelsius and write data to the database.
    Note:
    Performing delete operation from Xcelsius Dashboard could be risky and may delete important data from database. I would not prefer giving delete option/functionality in Xcelsius dashboard.
    Hope this helps!
    Thank you.
    Regards,
    Vinay Mhaske

  • Deleting data from EDPAR table

    hi  everyone,
                               I need to delete data forom table EDPAR. two conditions are there. Once through first radio button in selection screen based on values of kunnr selected from select options. In the second case. if i select the second radio button, all data from EDPAR table gets deleted.
    Can any one offer me proper CODE  to do it....Pls help.

    SAP delivers a standard transaction to edit the contents of this table, VOE4, this is safer then using a custom code to delete rows from the table.

  • "Transfer structure  does not exist" while deleting data from a DSO

    Hello experts,
    while deleting data from a DSO I get the following messages:
    @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated
    @5C\QError@     Transfer structure  does not exist
    When I try it twice process works without any problems. I get then the following msgs:
    @5B\QInformation@     InfoCube / DataStore object "AKIVO14" contains no data (yet)
    @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated
    So I think the first deletion works but ended with errors. What could be the reason?

    Please check if data from new and chage log table is also deleted.
    For the error message : Do you have 3.5 flow ? Check your transfer structure , if it is active and then again try to right click and delete data from DSO.
    - Monika

  • Need help in passing data from one page to other page in oaf

    Dear All,
    I have a requirement as below.
    I am doing some selection in one page and populating the data in another page table region, next time when i am selecting another row and pressing the button i need to display the previous row as well as new row, how can i achieve this, currently i am able to see only the first row what i selected first.
    Ex: 1 st scenario: after passing the selected data from one page to base page the data looks like below in base page.
    1 test desc
    2nd scenarios: when i am again selcting data and passing to the base page it should be like that
    1 test desc
    2 test desc
    but currently it is showing
    1 test desc only for the 2nd case, can any one please help me on thsi , its little bit urgent
    Thnaks

    How are you passing the values to the base page? Are you using setting the retainAM parameter to true while doing a forward.

  • Is it possible to retrieve deleted items from the Pages App please?

    IIs it possible to retrieve deleted items from the Pages App? Thanks

    From within the Pages app, no. If you have an iTunes or iCloud backup that would have contained the file, and you are backing up Pages, it could be received via a restore using that backup (this would wipe out any newer data however).

  • Who deleted data from IC

    Hi,
    is there any way to know who deleted data from a IC, ODS ?
    I looked for a job "BI_DEL*" on SM37 but data was deleted with right click -> complete delete so it seems not to record any entry.
    thx in advance

    Hi juan
    You need to go T-code SLG1
    give this in selection condition
    External ID: MON:PROTOCOLL_ACTION
    T-code : RSA1
    Provide  date if you can give because there are hell lot of data so be specific in giving the date
    you will find some records for deleted request from data target..now search for your target...the user is given in statring of each record
    Thanks
    Tripple k

  • Question on Deleting data from data target

    Hello Experts,
    I have one quesiton, what is diffrence when we right click on data target and " delete data" and when we right click on data target and go to manage and delete particular request.
    is it same thing or diffrent ?
    Please help.
    Regards
    Krish

    Hi Krish,
       If you right click on data target and choose delete data option then you have the option of deleting data from Fact table alone or from Fact table and the Dimension tables too.
    The other options will delete the data only from the particular request Fact table.
    Thanks and regards
    Balaji

  • How can I recover deleted data from my time capsule?

    How can I recover deleted data from my airport disk?

    locate the files in time machine and click on restore. it will then restore them back to your hard drive,

  • How i cen get back deleted data from the bin?

    how i cen get back deleted data from the bin?

    Not once you have put the data in the trash and pressed the button to delete it.
    There may be some hope if you can understand what I am telling you in my first post to you.
    Time machine is too complex to explain in this kind of post but I am giving you five links below which should explain quite a lot.   There are no formal instruction manuals for Time Machine.
    Time Machine Tutorial
    Time Machine 101
    How to back up and restore your files           This in particular
    Time Machine Features
    Apple - Support - Mac OSX v10.5 Leopard Time Machine

Maybe you are looking for

  • Cannot boot from OSX DVD - ACPI error

    I am unable to boot from my OSX installation DVD. While booting I receive the following message: Panic (cpu 0 caller 0x003A934F) Unable to find driver for this platform: ACPI. I have tried re-installing the combo updater and flashing the PRAM, withou

  • How to create a runtime repos in 10gR2

    Can anyone guide me through creating a runtime repository, access user and target schema(s)? We have a DESIGN REPOS, but would also like a repos on the target database for deploying to. I believe that there is no longer a RUNTIME ASSISTANT from relea

  • Chopping In Logic Express 9?

    Is this possible? I saw a tutorial on "chopping" in Logic on Youtube, not sure which version the person had but when I tried the procedure, it didn't work for me! He explained that the backslash \ is whats used but like i said, when I when I tried it

  • How to store my iPhone?

    How to store my iPhone the right way? i have an iphone 1th Generation and i want to keep it without using

  • Please help me with my apple problems!

    I have a iphone 4. My husband has a iphone 3gs and a ipad2. When we set his ipad up it linked my phone to both of his devices.All of my contacts have went to him and if he deletes one it deletes off of my phone. Everything of ours even phone numbers