Delete / copy pages thanks to a procedure / api

Hello

Oracle 11 g 2
Apex 4.1

I have an installed application several times to many customers in separate schemas.

First of all, I have to remove a couple of pages of each instance of the application. Is anyway to do otherwise than through the web interface?

I also need to copy pages from one application (core) to others. Again anyway is to do otherwise than through the web interface?

Any help is very appreciated.

See you soon

Rob

Hi Rob,

the problem is with the statement:
>
apex_application_install.generate_offset;
>
This will generate a new sequence number that will be used in a part of the import of the page like this:

p_plug_template=> 8931054716739067023+ wwv_flow_api.g_id_offset,

You can calculate the correct offset based on the export and the page that you want to replace.
The principle is described in this blog http://joelkallman.blogspot.nl/2010/07/where-did-my-saved-interactive-reports.html

Kind regards
Erik-jan

Tags: Database

Similar Questions

  • In the recent update of Adobe Reader, how can I go and delete the pages? Thank you very much!

    In the recent update of Adobe Reader, how can I go and delete the pages?

    I am struggling with the new simplified design.

    Any help is appreciated.

    Thank you!

    Adobe Reader cannot remove pages.

  • one of the icons at the top of my software is missing.   I have those for: open the safe, files, print, share files, customize, reminder, BUT THE ONE for SOULIGNANT A WORD or EXPRESSION IS MISSING, then delete the page, etc.  I have Acrobat Pro 10.  How c

    one of the icons at the top of my software is missing.   I have those for: open the safe, files, print, share files, customize, reminder, BUT THE ONE for SOULIGNANT A WORD or EXPRESSION IS MISSING, then delete the page, etc.  I have Acrobat Pro 10.  How to get back the icon and the missing function?  I would just reinstall, but I get the message that I don't have a legal copy of the program.  However, I bought and paid for it.  Thank you very much for your help!  Carolyn

    Add them to your quick tools. Go help > Quick of the tool.

    I've added these tools to my quick tools, as follows:

    Also see this article: Adobe Acrobat X Pro * databases the workspace

  • Copied page always directed to the original page

    Hello, pp

    I have original page 20, then I created page30 copied from page 20.  It works well when rendering a page of the report (page30) form (page31) except when when page31 is closed by clicking on the button and supposed to be directed to page 30 (I rechecked that Action when you click on the button is set to go to page 30), it will always go to page 20.  And if I type apex/f? p = 101:30 as url, it will be also goes to apex/f? p = 101:20.  No idea on this matter is appreciated.

    Thank you

    Jian

    I found the solution. In the copied page, the settings are different between designer and view of the component, need to remember their corresponding.

  • Help with excel import and delete the page script

    Hello. I will try to make it as simple as possible. I have some data from excel (saved as delimited by tabs) that I need to import in a 5 PDF page. I use the script below to import, and it works fine. All import fields and records the individual (one for each record) PDF. However, I need to extend this functionality by removing some pages before it saves the document by looking at the different boxes. The code below is what I use to import the records.

    // specify the filename of the data file
    var fileName = "/Users/MacMike/Desktop/Test.txt";  // the tab delimited text file containing the data
    var outputDir = "/Users/MacMike/Desktop/Dump/";    // make sure this ends with a '/'
    
    var err = 0;
    var idx = 0;
    while (err == 0) {
        err = this.importTextData(fileName, idx);    // imports the next record
    
        if (err == -1)
            app.alert("Error: Cannot Open File");
        else if (err == -2) 
            app.alert("Error: Cannot Load Data");
        else if (err == 1)
            app.alert("Warning: Missing Data");
        else if (err == 2)
            app.alert("Warning: User Cancelled Row Select");
        else if (err == 3)
            app.alert("Warning: User Cancelled File Select");
        else if (err == 0) {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf"); // saves the file
            idx++;
        }
    }
    

    As I said before you import works surprisingly well.

    My PDF consists of 5 pages (info-registration, p1 = Dir-contract = p0, p2 = contract ndarp-brand, p3 = takes-contract, p4 = agreement must be brand). My idea is that on the import of data, the script will look at a few check boxes and determine which contracts to remove on the PDF and then save. I wrote the syntax of which, in my view, what it should look like. I'm not a programmer and know just a little bit. I looked through the documentation and this is what I came with. I don't know how to combine to work. Here's the code I came up with that.

    var dir = this.getField("Associate Director"); // checkbox
    var aldir = this.getField("Alumni Director"); // checkbox
    
    var fac = this.getField("Facilitator"); // checkbox
    var alfac = this.getField("Alumni Facilitator"); // checkbox
    
    var oyb = this.getField("Optimize Your Brain"); //checkbox
    var poyb = this.getField("DVD and Workbook Previously Purchased"); // checkbox
    
    // Below are all the possible training options.
    if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:3, nEnd:4})
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:3, nEnd:4})
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:4})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:4})
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:2, nEnd:2})
    }
    
    else if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:1, nEnd:2})
    }
    else (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:1, nEnd:2})
    }
    

    How to combine these two so that I can create a document temp import my data, check the boxes to check off and delete the appropriate pages and save the file and then go to the next record? I got the first part done. It imports large and has the right, but I don't know what to do next. Thanks for any help!

    Or y at - it another way to do this?


    Michael

    Wow. Ok. I had it works beautifully. There was a lot of trial and error. Because the script as it was would have, would open the original PDF, delete the pages needed, then save the file. While it would be to go to the next record is missing pages in PDF and bomb to open. I hunted and searched for a way to do this. I found "this.insertPages" in the documentation. Finally, what worked was so move the "save under" in the service and put it under every variation of check. So now when checking the boxes, he performs the check, removes the mandatory pages, stops, insertions of back in deleted pages from the original file, leave the service and finally goes to the next record.

    Here is my final script:

    // This code looks at an excel (tab delimited) file, imports the records into a PDF form 10 Pages long.
    // Then checks a series of checkboxes and deletes the pages that aren't associated with first page.
    // After it deletes these pages it reinserts the deleted pages so it can do the checks for the next record in the (tab delimited) file.
    
    // variables for importing excel data
    var err = 0;
    var idx = 0;
    var fileName = "/Users/MacMike/Desktop/Test.txt";  // the tab delimited text
    var outputDir = "/Users/MacMike/Desktop/Dump/";    // make sure this ends with a '/'
    
    //Checking a bank of 6 checkboxes and determine which pages need to be deleted, save the file, and the insearch the deleted pages again.
    function seekandDestroy() {
        if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:6, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:5, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:6, nEnd:9 });
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:6, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:5, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:6, nEnd:9 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:9 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:9 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:1, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:0, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:1, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:1, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:0, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:1, nEnd:5 });
        }
        else if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
    }
    
    // Imports records does the above function then go the next record, all the while doing error reporting.
    while (err == 0) {
        err = this.importTextData(fileName, idx);    // imports the next record
    
        if (err == -1)
            app.alert("Error: Cannot Open File");
        else if (err == -2)
            app.alert("Error: Cannot Load Data");
        else if (err == 1)
            app.alert("Warning: Missing Data");
        else if (err == 2)
            app.alert("Warning: User Cancelled Row Select");
        else if (err == 3)
            app.alert("Warning: User Cancelled File Select");
        else if (err == 0) {
            var dir = this.getField("Associate Director"); // checkbox
            var aldir = this.getField("Alumni Associate Director"); // checkbox
            var fac = this.getField("Facilitator"); // checkbox
            var alfac = this.getField("Alumni Facilitator"); // checkbox
            var oyb = this.getField("Optimize Your Brain Site Coordinator"); //checkbox
            var poyb = this.getField("DVD and Workbook Previously Purchased"); // checkbox
            seekandDestroy(dir, aldir, fac, alfac, oyb, poyb); //performs the above function
            idx++; //goes to next record
        }
    }
    
  • Adobe Acrobat XI Standard stops working whenever I try to delete multiple pages.

    I repaired the installation and even removed and re-installed and it still happens.  Help, please.  And if programs does not work, stop it indicates one or several pages are in use and could not be deleted

    Abhishek,

    I don't know where to find the Windows preview pane to see if it is enabled.  Nevertheless, I got the TerraGo toolbar and so I thought that this could be the problem, so I disabled it.  And voila!  I was able to delete multiple pages without problem.  If I run into it again (oh don't like it), I'll try to close the file Explorer as you suggest.  Thank you.

  • delete all pages whose name does not begin with

    Hello

    can someone tell me how to write the equivalent of the applescript below in ExtendScript please.

    say application "Adobe InDesign CS6.

    say active document to delete (each page whose name is not start by "SRT")

    end say


    Thank you

    Nik

    I think the following should do it (untested):

    var pp = app.activeDocument.pages.everyItem () .getElements (), p;

    While (p = pp.pop ()) if (p.name.substr (0.3)! == "SRT") p.remove ();

  • How can I delete a page and rearrange the other pages?

    I'm trying to delete a page/document and then rearrange the remaining pages/documents. I followed the instructions to help Adobe, but my toolbar does not give me the option to delete or move documents as indicated in the instructions on the help page. The thumbnail gives me only the possibility to increase/decrease the size or print. Please advise I'm losing my mind and have need to understand that as soon as possible because it is for a Web site online. I downloaded the latest update. Thank you!! L

    The instructions that you read were for Acrobat from Adobe, and no Adobe Reader. Reader doesn't have this capability.

  • Why I can't delete some pages without doing it by hand?

    This question is open, but I'm at a loss at this moment to find this behavior.

    I'm working on CS6.

    I can't seem to delete some pages using the method. remove(). Why would it be? I can go to a deletion of the page that if I select all the content and delete them, then select all of the new content and delete them if this gives clues.

    I'd be super grateful if anyone has any ideas on how to face this mystery. I could as well post the documents if this is useful.

    Thank you

    Hello

    app.textPreferences.smartTextReflow = false

    Rgds

  • Is that what we can copy page zero an application in another application?

    Hello

    I was wondering - is there a way to copy Page zero from one application to another application. I use Apex 4.0.2.

    Thanks in advance.

    -Jas

    Yes and get this... http://screencast.com/t/6a5miQ4e this New Page that a copy is available on Page 0 if you access the Page 0 using the Previous/Next buttons. If you type 0 in the area of the Page and click OK, the option disappears. Go figure.

    Examining the Builder application shows that this is because this New Page as a copy menu/list entry is subordinate to the F4000_P4150_GOTO_PAGE! = 0

  • Trying to delete a page in a spread and renumber the rest of the document.

    I need help deleting a page of a spread. After I deleted the page of the spread, the page disappeared but I need the next page to take the place of the deleted page and have all of the other pages to renumber accordingly. I use Indesign CS6.

    For example, I am editing a book and I need to delete the page 7. After you remove the 7 page, I need page 8 to page 7 and all the other pages to renumber accordingly. I think it will be very simple to make; However, I do not know how to do it.

    Thank you for helping in advance. God bless you!

    If you delete the page viii, pages ix, x, xi, and xii if mve, a post left and renumber, but you have a new section starting on the 1 page after the current page xii, and this will not change. By default, ID use conventions and maintains the odd-numbered pages on the right, and to overcome that you have to reject the mixer page at least a spread and manually, drag a page to the other side of the spine, which would be a big mistake, in my opinion. Readers are used to pages being numbered according to tradition.

    This doesn't seem to be the only white page in the preliminary pages section. Perhaps you should consider removing two thugs he and adding at the end of the doc to keep the number of pages.

  • I save a document with 3 pages, how can I delete a page?

    I scanned in 3 documents (PDF file) and now I want to delete one of the pages, what is the procedure.

    Yopu can not do with the free player. You can with Acrobat.

  • Cannot delete the Pages?

    I have a file in indesign cs4 is 5 pages long. It contained there on only 2 of these pages; I wish I have created these pages in the past and then discarded the content on them. I can't get rid of the extra pages.

    When I try to delete them, I get this dialog box: "the affected page contains objects. Delete the page anyway? "By clicking Yes, the page disappears to reappear a few seconds later. Sometimes, the program crashes.

    I haved trashed my preferences, rebooted and do not know what is causing this problem.

    (I use a Mac 10.5.8)

    Any help? Thank you.

    Looks like you have the active smart text reformatting, and there is a thread that rebuilds. Make sure that there is no text that is in excess or otherwise wants to flow to another page.

  • can I delete login page so that windows starts automatically when you first start?

    can I delete login page so that windows starts automatically when you first start?

    Yes, you can.

    See http://windowsxp.mvps.org/Autologon.htm

  • Delete empty pages

    Hi experts,

    I would like to delete a document all empty pages.

    What is the best solution? By storythread or pageitems or something?

    A storythread can contain one or more empty page with same tagname

    Empty page = the current page contains only empty text or frame graphic and not contain static text.

    THX: Károly

    I don't think that there is a single integrated command to perform this task.

    What constitutes an empty page belongs to your logic.

    And you need to encapsulate this logic in a function to delete the pages.

    He must know that page elements belong to spread (or more specifically spread layer) and NOT to the page.

    If you have a story, it is likely you have a framework for this container.

    So, it would not be a bad idea (though according to your use case) to search for items on the page.

    So, you can delete a page if there is no element on a page, or even treat the elements of the page to determine cases like block of empty text, empty graphic block, guides, etc..

    Review for the implementation:

    -> Cover each Board in the document (ISpreadList)

    -> For each page of the spread and make ISpread::GetItemsOnPage

    -> IPageItemTypeUtils of use to determine what type of page element is a UIDRef.

    Page article can be a graphic image, group, text frame, text on path, guide, shape spline, etc..

Maybe you are looking for

  • HP EliteBook 850 G3: HP EliteBook 850 G3: its problems after the update of Windows 10 anniversary

    Hi people! After the update of Windows 10 birthday I have problems with my sound card. There are two sound cards listed by Device Manager. The first is "Conexant Audio of ISST" and the second "Intel High Definition Audio". I know not weather it was t

  • Satellite P300D 10V - how can I update the display driver?

    I have a Satellite P300D 10V and there ATI radeon hd 3xxx series display panel. I bought Starcraft 2 and there was an error message: that the display driver is outdated. I went on ati.com. They say I have to get the driver from Toshiba. I went to Tos

  • I need a fine how rotate a paragraph 45 degrees

    I do a stamp to print on documents, I need to rotate 45 degrees and print it on the document. How can I do this?  Craig

  • Keyboard input does not work

    I bought simmtronics motherboard two years back and I still have warranty. But lately my computer does not just work. My keyboard doesn't quite work alright, so my keyboard works fine. When I type a word document all of a sudden the NumLock turns off

  • Shut down the computer to randomly pop poster

    The "stop the computer" seeing pop randomly on my XP Pro PC.  When it appears, the office begins to fade in black and white, as is the case when you deliberately cut the computer by using the command 'Start '.  All this seems to start when the follow