Delete current veiwed page help!!!

Hi I've created a form that adds a new instance when i click on a button with the click script
"Mysubform.addinstanceManger.addInstance (1);"
This copies my complete form to a new page which is what i want it to do.
However when veiwed in on the web i want to create a delete button that will delete the current page the user is veiwing if they decide they want to.
example if the first form is filled out and they click the add new page and fill out the second form, and click again if they need to fill out another.
If now for example they have now created 4 pages and decide they want to delete say, page 2 or maybe page 3. but keep the other pages with information already entered. How do i create a button that deletes the current page they choose to delete.
Any detaiiled help would be greatly appreciated!!!!!! as i am new to scripting and LC.

Take a look at the attached. The form includes a button 'removePageBtn' and the click event is as follows:
// form1.page.subform.removePageBtn::click - (JavaScript, client)
var i = this.parent.instanceIndex;
if (i == 0) {
     if (form1.page.instanceManager.count > 1) {
          form1.page.instanceManager.removeInstance(0);
else {
     i = i + 1;
     form1.page.instanceManager.removeInstance(i);
Steve

Similar Messages

  • Can't delete or insert pages, help?

    I have made some corrections to a Word document that I previously made into a pdf document.
    I saved the Word document to a new pdf with a new file name.
    However, this time Adobe will not allow me to delete pages nor to insert pages nor to alter the text in any manner.
    Those options are all greyed out.
    I do not have the original word document on any kind of required permissions.
    For some reason, the pdf has missing text at the top of 3 pages in succession. I'm trying to delete those 3 pages and replace them with a page one at a time.  I had to do this once before to the earlier version, but that time I was allowed to add and delete.
    Please tell me how to fix this annoying problem.
    Many thanks.

    You inadvertently created a PDF/A document.  It's probably selected in your PDFMaker Joboptions settings. Now in Acrobat 9.x it is the default to view in "PDF/A" mode which does not allow editing.
    To workaround the editing issue in Acrobat:
    1.  Go to Edit>Preferences>Documents>PDF/A View Mode
    2.  Select "Never" from the pop-up menu.
    3.  Click the OK button
    Now you should be able to do what you need to do.

  • Help deleting saved web pages

    Hello:
            I am new to dreamweaver cs5 and I am working from a book Adobe Dreamweaver Classroom in a Book.  
           Being new to Dreamweaver and  just having fun I have created and saved 4 basic web pages that are appearing in the dreamweaver Welcome screen in the Open a Recent Item drop down list.  Being new to this  trial and error I would like to delete them and start fresh.  Searching for hours on line and in dreamweaver's help section I can't find what I am looking for.  The book comes with a dvd with instructional lessons I have saved on to c drive where I do my work and save back on to c drive.  Please, is there a way to delete these web pages.  Thank you Jon.

    Re Mr. Waller
                Thank you.  It did the trick.

  • Detecting the current tab page

    Hello All,
    I am working on a task for our current project which requires that I correctly identify the
    current tab page selected on the user's page.
    Toward that, I was passed some information about the function:
    wwpob_api_page
    function get_selected_tabs( p_pageid in number,
    p_store in wwsto_api_session,
    p_tabstring in varchar2,
    p_tabviewprivs in out wwsbr_type.boolarray,
    p_pages in out page_table,
    p_base in boolean
    return varchar2;
    which appeared in version 3.0.6.X.
    I was unable to locate this function in the 3.0.7 / 3.0.8 api installed on our machine, but since I
    only have access to view the public interface of this package, and wondered if this function was
    still available.
    Has the function been moved, or included elsewhere, or deleted?
    The success of this task depends on having a reliable way to determine which tab page is
    currently selected/viewable.
    Is there another / better method for accomplishing this?
    Any help would be most appreciated.
    Stuart Dautrich

    That isn't a supported API yet. I'm not aware of any current functionality that will allow you to find the current tab.

  • *Can't delete a blank page.*

    Hello,
    I'm currently on page 30 of a script I'm writing using Adobe Story, but somewhat mysteriously, there appeared an extra blank page between the title page and the first page of the script.  So now I have a blank "page 1" and the script starts on "page 2".  Nothing I've tried has succeeded in removing the page or moving the text up, etc.
    I didn't add the page, so I'm not quite sure how it got there.
    PC - Sony Vaio
    Windows 7
    Adobe Story Build 791
    Additionally, using the "center" justification tool on the title page doesn't quite center it.  It favors the left side just enough to be noticeable to everyone I've asked (to make sure it wasn't my eyes playing tricks).
    Any help is greatly appreciated!
    Take Care,
    Chris

    Thanks for reporting this issue. We will fix this bug in our next update.
    As a workaround, you can remove parentheticals in the following two ways:
    1.       SHIFT TAB
    a.       Hit shift tab, when you are on the parenthetical element type
    2.       Changing the element type
    a.       Click on the line with the parenthetical element
    b.       Change the element type from the top right hand side to action or dialog
    c.       Notice that its gone
    Finally, In the same writing session you can delete the parenthetical by Undo-ing the operation also
    --Anubhav

  • How to open NEW PORTAL PAGE from current portal page ?

    I'm very confuse with my problem.
    I have 2 portal page.
    portal page I has 2 portlet : portlet A & portlet C.
    portal page II has 2 portlet : portlet B & portlet C.
    Now my customer want : start with portal page I, when i submit portlet A, program will open portal page II.
    I don't know the way to call new portal page from current portal page. Help me, please.
    Thanks.
    Edited by: young_hero on Oct 30, 2008 1:12 AM

    Could you please help me how to call a .html page
    from a Pl/Sql procedure or trigger ?
    Thanks & Regards
    Kalyani KothaKalyani,
    Could you explain a little more exactly what you're trying to acheive? I'm not quite sure what it is you're asking for. Are you asking: "how would you/can you open a browser and direct it to a URL with PL/SQL?"
    Earl

  • How To Delete The Extra Page In Smartform Output

    Hi Friends,
    I am working wih Smarform..which displays P.O Details (Header and Item ) .
    Header Details in Template and Item Details in Table..
    I am trying to print 10 P.O ..for every P.O i kept New page command.
    So..finally i have to get 10 pages in output...instead i am getting 11 pages...
    How to delete the extra page ? Y i am getting this..
    please give helpful answers...
    Points will be given after get the answer.
    Thanks,
    Laxmi

    Hi,
    as someone else said. put the newpage command at the start.
    However with a condition that that it not happens at the first page.
    or
    Determine how many P.O.
    use a counter.
    If this counter is equal to number of P.O, then no newpage command.
    success.
    Gr., Frank

  • Printing current selected pages

    i was wondering - it there a way to print the currently selected pages in indesign //like we can do in acrobat//? its not very sexy to manually type in all the pages you want to output and writing a pdf file to select and print the pages in acrobat cant be the only way //having a 100+ pages and printing like 15 of them//
    i hope you can help me, thank you in advance
    denis
    ps: im using indesign cs5

    Might be scriptable, but you see your built-in choices there in the dialog.

  • I've managed to get back to Pages 4.3 and delete the downgrade Pages 5, which makes a total mess of any doc prepared with it,  but how to I get back to the old version of Pages on my iPad so that I can work while I am away from home.

    I've managed to get back to Pages 4.3 on my iMac and delete the downgrade Pages 5, which makes a total mess of photo-rich documents prepared with Facing Pages (most of mine),  but how to I get back to the old version of Pages on my iPad so that I can work on sections away from home. At least on my old PC, Word maintained compatability with old versions. Beginning to regret having switched.

    Thanks for your help. What is really irritating is that Apple give a big hurray about what they have added as "new"  in Pages 5 (most of it pretty useless) without telling you of the myriad things they have deleted.  If they had shown the list your gave the link to, I doubt may regular users would risked going to Mavericks with its auto upgrade. My partner got the message in time and is sticking with the earlier operating systems and Pages on Mac and iPad. Lucky girl.
    I have found a way to use my iPad to add chapters written while on the move to reports on my iMac Pages 4.3. If I write it on the new Pages on the iMac (don't seem to be able to revert there), the send the report as an email in WORD format (not Pages) and download it in the Text Editor, then cut and paste into the story on the iMac. Hardly elegant but it works.

  • I have downloaded mozilla firefox a number of times. Over a few days it tells me that the firefox is no longer on my computer. I never delete it. Please help. I do use CCLEANER.

    I have downloaded mozilla firefox a number of times. Over a few days it tells me that the firefox is no longer on my computer. I never delete it. Please help. I do use CCLEANER. edit

    You are unfortunately out of luck with an Intel Mac and OS X 10.4.11<br />
    Best would be to update to OS X 10.5 or later if you want to use Firefox 4 and later versions (current is 8.0).<br />
    There is a Firefox 8 compatible third-party version TenFourFox from www.floodgap.com for a PowerPC Mac, but no alternative for an Intel Mac with Mac OS X 10.4.
    Firefox 4 and later require at least OS X 10.5 and an Intel Mac.
    * http://www.mozilla.com/firefox/8.0/system-requirements/
    Firefox 3.6.x (Mac OS X 10.4 and later) can be found here:
    * http://www.mozilla.com/en-US/firefox/all-older.html

  • How do I delete a blank page and rearrange pages in Pages 5.0?

    I have several blank pages in my document, there is nothing on the page - except the header and footer - and I can't delete the blank pages ... in the previous version you this by selecting the page thumbnail on the left hand side and using the delete key - but this doesn't work ..
    Also you could re-arrange the page order by moving around the thumbnails ... but now this does not work ... so how do I rearrange the pages in a newsletter?
    Please help me ... urgently
    thank you
    Chris

    Apple has removed over 90 features from Pages 5 yjis is one of them.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
    Peter

  • I am running XP SP2 fully patched. I recently upgraded to 3.6.3 and since then, clicking on an icon that normally would open another windows (for example, a printer-friendly version of the current web page), nothing happens. In these situations, I have be

    I am running XP SP2 fully patched. I recently upgraded to 3.6.3 and since then, clicking on an icon that normally would open another windows (for example, a printer-friendly version of the current web page), nothing happens. In these situations, I have been forced to go to IE or Crome in order to accomplish what I need to do. Very frustrating. Also clicking in the slider area has no effect. "Page Up" and "Page Down" keys work. Holding down left mouse button on slider works. Also very frustrating. Can someone help
    == This happened ==
    A few times a week
    == Upgraded to 3.6.3.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • URL of the current portal page loaded using Javascript ?

    Hello:
    I am trying to add programmatically the url of the current
    page loaded in the portal to the 'Favorites List'. There
    is a pre-built KM iview to store your 'favorites'.
    I can extract and write to this 'favorites' using KM java
    API. But only challenge is to extract the current loaded
    page URL and title using Javascript.
    I would appreciate any help in this regard.
    Thank you very much,
    Prasad Nutalapati

    Dude i was having the exact same problem. I solved it using the SAP-provided EPCM (javascript client framework).
    Javascript Code
    var pageName = "";
    var URL = "";
    function bookmarkPage()
         /* page url */
         var fullURL = "https://<%=request.getServerName()%>/irj/portal?NavigationTarget=" + URL;
         /* IE bookmark */
         if(EPCM.getUAType() == EPCM.MSIE)
              window.external.AddFavorite(fullURL , pageName);
         else
              var msg = "Sorry. The \"Add To Favorites\" feature only works with Internet Explorer. " +
                          "The URL to this page is " + fullURL;
              alert(msg);
    /* get pagename from eventObject from subscribed event */
    function getPageObject(eventObj) {
        pageName = eventObj.dataObject.title;
        URL = eventObj.dataObject.URL;
    /* subscribe to event in pagetoolbar area */
    EPCM.subscribeEvent("urn:com.sapportals:navigation", "AddNavTargetAllowDuplicate", getPageObject);
    End of code
    Basically, what this does is that everytime a page loads, the innerpage, where the content is, raises an event using  the EPCM.raiseEvent() method. EPCM.subscribeEvent subscribes to an event called AddNavTargetAllowDuplicate which has an object holding the page information (i.e. page title and URL (ROLE://...)). Everytime that it notices an event raised, the function getPageObject gets called to go get data from the event object that is available globally in the framework.
    You should be able to put this code anywhere in any iview and it should work. Thou i have only tried putting it in the masthead. Try and if you still have questions please let me know.

  • Can you delete the last page of a document with a script?

    Hello, I have been building a script over the last week to help me remove formatting and reapply some of that formatting on a large number of files. I am still learning alot about how to build scripts and what the commmands are but I am almost doen with everything I need to put in it. One of the last things that I want to add is to delete the last page from the Indesign file whether it has content or not. Is this possible? Can anyone point me in the right direction? Thanks

    Something like this:
    if (app.activeDocument.pages.length > 1)
         app.activeDocument.pages[-1].remove();
    First check if document contains more than one page, and if does, remove last page.
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com

  • How does one rename or even delete templates in Pages?

    How does one rename or even delete templates in Pages?

    At the top of this page, click on your name or avatar to go to your profile page. You need to have more than one product listed in My Products and the one you need to edit can't be set as the default. So, add a product if you only have one & set this second as default. Then back to your profile page where you can edit the settings, including your OS version. Then back again to set this one as default. This is just one of many, many things that the current forum software makes very difficult. I have to go "hunting" for the setting each time, it's that difficult. If I were invited to test changes or a new version, this is one thing I'd mention.

Maybe you are looking for