Adding Pages Dynamically

I want to be able to add a Page dynamically to a Book.
In the Portal JavaDocs, there is a method called addPage() which is part of
the following class :-
com.bea.netuix.servlets.controls.page.Book
Problem is, this class doesn't seem to exist ?
Anyone have any ideas on this ?
Thanks

Maybe I'm missing something but I was under the impression that a .Portal
file is in fact a Desktop ?
"Chris Jolley" <[email protected]> wrote in message
news:[email protected]...
>
I assume you are using a desktop and not a .portal file...
You can add a page to a book via two ways - depanding an what you want yououtcome
to be
If you are an Admin and want to add it to a book in the Library (outsidethe context
of a desktop) and want it to effect all desktops that include this bookthen you
want the follwoing method on BookDefinitionManager:
* <p>Add a Navigable definition (BookDefinition or PageDefinition) toan
existing BookDefinition.
* @param customizationContext customization information such asprefered
locales and desktopInstanceId
* @param bookDefinitionId the book definition to add the navigableto.
* @param navigableDefinitionId the definition id of the navigabledefintion
from which to add.
* @param position the position in the book (or menu) to insert thisnavigable
(starts with 0)
* @param alignment position the page from the left (top) or right(bottom)
* @return the Navigable instance which was created.
* @throws ObjectNotFoundException BookDefinitionId or theNavigableDefinitionId
are bogus.
* @throws NotEntitledException if the caller does not have therequired permissions
to delete this object.
* @throws IllegalDependencyException adding the Navigable to theBookDefinition
would cause a recursive dependancy
* @throws DuplicateObjectException if this navigable is already addedto
this book
* @see com.bea.netuix.application.view.BookView#ALIGNMENT_LEFT
* @see com.bea.netuix.application.view.BookView#ALIGNMENT_RIGHT
public NavigableInstance addNavigable(CustomizationContextcustomizationContext,
BookDefinitionIdbookDefinitionId,
NavigableDefinitionIdnavigableDefinitionId,
int position,
int alignment,
boolean isDefault)
throws RemoteException, ObjectNotFoundException,NotEntitledException,
IllegalDependencyException, DuplicateObjectException;
If you are and end user or and admin and want to effect only the acertain desktop
then you want the following method on PortalCustomizationManager
* <p>Create an new instance of a <code>NavigableView</code> (BookViewor PageView)
from the supplied
* NavigableDefinition object.</p>
* @param desktopDefinitionId the desktop context to which this updateapplies.
* @param bookInstanceId the book instance to add the navigable to.
* @param navigableDefinitionId the navigable defintion id from whichto create
the instance.
* @param position the position in the book (or menu) to insert thisnavigable
(starts with 0)
* @param align position the page from the left (top) or right (bottom)
* @return the NavigableView instance which was created.
* @throws ObjectNotFoundException BookDefinitionId or theNavigableDefinition
are bogus.
* @throws IllegalDependencyException adding the Navigable to theBookInstance
would cause a recursive dependancy
* @throws MissingDataException missing vital data in theNavigableDefinition.
* @throws NotEntitledException if the caller does not have therequired permissions
to delete this object.
public NavigableInstance addNavigable(CustomizationContextcustomizationContext,
DesktopDefinitionId desktopDefinitionId,
BookInstanceId bookInstanceId,
NavigableDefinitionIdnavigableDefinitionId,
int position,
int align)
throws RemoteException, ObjectNotFoundException,MissingDataException,
NotEntitledException, IllegalDependencyException;
Note: If you are and Admin and want to efffect all users try
setting your visitormode to false on your CustomizationContext.
customizationContext.setVisitorMode(false);
Also: if you are doing this from a backing file and you want the change totake
effect for that request you will need to do a redirect back to the portal,otherwise
you wont see the change until the next request
"Priya" <[email protected]> wrote:
I want to be able to add a Page dynamically to a Book.
In the Portal JavaDocs, there is a method called addPage() which is part
of
the following class :-
com.bea.netuix.servlets.controls.page.Book
Problem is, this class doesn't seem to exist ?
Anyone have any ideas on this ?
Thanks

Similar Messages

  • Dynamically adding pages

    Is it possible to create a "add page" button that will dynamically add a fillable form to a pdf?  Also, can this button keep adding pages?

    It is Adobe Reader and Adobe Acrobat.
    Reader can not use the template feature of Acrobat.

  • How to set the number of rows per page dynamically

    Hello all,
    i urgent need the option to set the number of rows per page dynamically.
    I've got a parameter.
    In dependence of the value of this paramter i want to set the number of rows per page of a repeating frame.
    The Reports Builder version i use is 10.1.2.0.2
    I defined a report trigger.
    My code so far:
    function R_G_BEMERKUNGFormatTrigger return boolean is
    begin
    if :vYN_Display_one_per_page = 'Y' then
    --what i've to write right here??
    return (TRUE);
    else
         return (TRUE);
    end if;
    return (TRUE);
    end;
    Can anyone help me please??
    Best regards
    Florian

    Do you just need to change back and forth between 1 and some other number? If so, you can create two identical layouts, one with the "number of rows per page" preperty (on the repeating frame) set to 1 and the other layout set to whatever. You would have to have duplicate layouts for each group you wanted to do this with. Your format trigger on the outermost master group frame where num of rows was 1 would look like:
    function M_G_ename_GRPFRFormatTrigger return boolean is
    begin
      if :vYN_Display_one_per_page = 'Y'  then
        return (TRUE);
      else
        return (FALSE);
      end if;
    end;Your format trigger on the outermost master group frame where num of rows was whatever would look like:
    function M_G_ename_GRPFR1FormatTrigger return boolean is
    begin
      if :vYN_Display_one_per_page = 'N'  then
        return (TRUE);
      else
        return (FALSE);
      end if;
      return (TRUE);
    end;

  • Is it feasible to set the rows displayed per page dynamically?

    Hi,
    Is it feasible to set the rows displayed per page dynamically in the table view result as per the user wants eg : the user wishes to see only 25 records or all the records?
    Also what is the maximum limit of rows that can be fetched as per the entry in instanceconfig.xml :
    <ResultRowLimit>65000</ResultRowLimit>
    Is there a limit for number of rows being displayed in table view?
    thanks
    Rishabh

    See this
    How to increase default  number of rows dspalyed ?
    This is your thread only...

  • [JS CS3] Page side when adding pages

    Hello all,
    I am using a script to remove oversets by adding pages with linked text frames to the end of the document. When I am done removing the oversets, I check to make sure the document ends on a left page; if not, I am using the code below to add an extra page. However, the page ends up as a second right hand page right next to the previous one. How do I ensure that the page I add is a left-hand page. Thanks in advance.
    Rick Quatro
    rick at frameexpert dot com
    585-659-8267
    // Set a variable for the active document.
    var oDoc = app.activeDocument;
    // Call a function to remove the oversets
    // Make sure the document ends on a left page.
    if (oDoc.pages[-1].side == PageSideOptions.RIGHT_HAND)
    AddPageAndLinkedTextFrame(oDoc);
    function AddPageAndLinkedTextFrame(oDoc)
    var oPage = oDoc.pages.add(LocationOptions.AFTER,oDoc.pages[-1]);
    var oTextFrame = oPage.textFrames.add();
    oTextFrame.geometricBounds = GetPageMarginBounds(oDoc,oPage);
    oTextFrame.previousTextFrame = oDoc.pages[-2].textFrames[0];

    in "standard" document - without page shuffling, etc. - you can do something like this (VB):
    if mydoc.pages.item(a) mod 2 then
    ' right page
    else
    ' left page
    endif
    robin
    www.adobescripts.com

  • How to scroll to region in a page dynamically

    I have bunch of regions in a page. One of the region is report region and I need to show atleast 25 rows in this report. I have another region below this report which displays the details of the emlloyee and allows user to edit record. When user clicks on the report column link in the employee report above, is it possible to scroll to the edit region at the very bottom of the page dynamically,so that user don't have to do vertical scrolling ?.I can't put the edit region in " region Column2", as column2 region space is also displying some related salary reports. I've the sample page on APEX. any ideas are appreciated.
    http://apex.oracle.com/pls/otn/f?p=54577:20
    workspace:Godavarthi
    username:[email protected]
    password:apex_demo
    thanks for you help,
    Surya

    Surya:
    Yes, it is possible. Use the same technique as in the report column link.
    Change the button target to URL and for the URL specify
    f/?p=&APP_ID.:<target_page>:&SESSION.:::<comma separated list of items to set>:<comma separated list of values>#<anchor_name in region header>Varad

  • Adding pages to a document

    I have been using the following code to add a page to the document.
    Utils<ILayoutUIUtils>()->AddNewPage();
    It has been working fine in CS3 and CS4. However in CS5 (mac), it is inserting pages. So in a 2-page document, any objects that were on the 2nd page, are now on the 4th page in the document. And the newly added pages become the 2nd and 3rd page.
    In previous versions, all the new pages were added at the end of the existing pages, so any objects that were on the 2nd page, stay there, and the new pages are the 3rd and 4th page.
    Any ideas?

    Dux,
    Insert a Section Break at the beginning of the first line of the document to insert a new page at the top of a document without upsetting the alignment of text and graphics below. The Page numbers will update below, but the design will be intact. Be aware though that this may result in your needing to copy Header and Footer details to the new first Section. If you build a document in the normal order, Section details are inherited by succeeding Sections, but when you work backwards this doesn't happen automaticallly.
    Jerry

  • Adding pages to pages

    I used a template and modified it it's 2 pages. I can't add a third page. I found no documentation re adding a page so I assumed that if text flowed beyond the second page a third page would be added. I even pushed a picture into the non-existent third page and it disappeared. Any suggestions?
    PS. The original flyer called FLYER is flawed. I called Apple Support because when I tried to email my revised FLYER template, onlyvone page would be as an image even though I chose PDF. Other templates emailed OK. So adding pages may be flawed also n

    Yeah, I love how it's so much easier than the old OS9 days of having to put the fonts there yourself. More info for those looking at fonts, I've found that when given the option to download the Windows or the Macintosh font, downloading the Mac gives you a .sit file a lot of times. Instead, I download the Windows version (almost always a .zip file) and that works fine.
    Given the option between TTF and OTF, always go with the OTF one

  • Adding pages to iWeb

    when adding page to iweb, how do i move the name of the new page off of the top of the home page?  looking to have it on the bottom of the page..  thanks!

    Are you referring to the navbar at the top which are links to each page in the site?  If so then you'll have to deactivate (not include)  the navbar on each of the pages in the Inspector/Page/Page pane:
    Click to view full size
    and create your own Text Based Navbar which you can position anywhere.  However, there is a drawback to having the navbar at the bottom:  if the page is longer than the browser's window a visitor would have to scroll down the page to get to the navbar in order to go to a new page. That's not good web page design. 
    However, if the pages are long then having a navbar at the top and bottom is wise.
    OT

  • How to render a JSP page dynamically with JSF controls ??

    Hi All,
    I am new to JAVA and JSF. I am recently started doing a web project. First we started using plain JSP and servlets and now we are going to use JSF.
    Now I am facing one problem with JSF. In a JSP page, I am having a combobox and a div and when i am selecting a value from the combo box, the div should be filled with some controls(like text boxes and comboboxes, buttons, etc) according to the selection.
    I have done this in plain JSP with the help of XML/XSLT, AJAX and JavaScript. i.e. XML contains the details of the controls and XSLT transformer will give me controls in a string format in the server, AJAX helps to retrieve it and I have to simply set the div.innerHTML property to that string. It is working fine.
    Now with JSF, I need to add JSF controls into my XML file, and it inturn returns the corresponding string having JSF controls easily, but i could not set it directly to div's innerHTML as the String contains JSF controls (Moreover, these JSF controls are linked with JAVA beans).
    Is there any provision to add JSF controls to a running page dynamically or is there any provision to convert the above mentioned string of JSF controls to normal HTML controls like the JSF taglibraries doing.??
    thanks in advance
    noushad
    Edited by: naash007 on Apr 20, 2009 4:17 AM
    Edited by: naash007 on Apr 20, 2009 5:45 AM

    That's simply asking for trouble. Do not suggest to use JSTL in combination with JSF.
    JSF already provides almost everything which the JSTL flow control tags provides in flavour of the 'rendered' attribute.

  • In iPhoto '11 I cannot change the book settings. For example, adding page numbers. There is no "option" button as is suggested by the help item.

    In iPhoto '11 I cannot change the book settings. For example, adding page numbers. There is no "option" button as is suggested by the help item. How can I change to book settings?

    The "options" button should appear at the bottom of the iPhoto window, when you view your book, then the Book Settings Button should be available and you can activate page numbers.
    But remember, that the settings available will depend on the Book Theme you selected. The above shows the settings for one of the "Travel" themes. In a Picture Book Theme, e.g. you cannot add page numbers.
    What theme and book size are you using?
    Regards
    Léonie

  • Adding Page to Workset using Java

    i am trying to add a page to a Workset using java. Can any one help me do this.
    Also how can i retrieve the Worksets attached to a Role.

    I am to create a workset in the fashion mentioned below.
    IRoleService rSrv = (IRoleService)PortalRuntime.getRuntimeResources().getService("com.sap.portal.pcd.roleservice.roles");
    IWorksetDescriptor worksetDescriptor = rSrv.getWorksetDescriptor(env);
    parentCtx.bind(worksetName, worksetDescriptor);
    IPortalWorkset workset = (IPortalWorkset)parentCtx.lookup(worksetName);
    But adding pages to the workset is still not resolved.
    Do Pass on any info regarding this.

  • Adding column dynamically

    Hi all
    I have a requirement of adding the columns to a Classic Table at run time.. the number of columns are not fixed. the number of The data in there columns will be dispaled from the view initialized at run time.
    I tried searching out threads on adding column dynamically but didtn get one..
    pls help me out ..
    naveen

    Of course you can add columns dynamically, but this always needs to be from the same VO, a OA table cannot be based on more than one VO.
    So if it all the columns are from the same VO, why take the pain of adding and removing columns, why not just either render it or hide it.
    Thanks
    Tapash

  • How to keep TopSites from adding pages

    Safari keeps adding pages to my TopSites, no matter how many times I X the pages. There is no info about this in Preferences or the Help pages.
    It's a pain, every time I use Safari I have to spend time eliminating Top Sites.
    Any solutions?
    RS

    Hi,
    From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.
    Carolyn 

  • When adding pages, keeping size the same

    It seemed so easy but, NO. How does one attach pages from a file and keep the pages the same size?

    I may not described my problem clearly. The last page of the document I wish to add to, when it is displayed full-screen is shown to be 18.4% (Zoom to page level). The first page of the new document (File) I want to add, when it is displayed full screen, is shown to be 71.1% (Zoom to page level). The result of adding the new page is that, when the complete document is viewed, the last page (the newly-added page) is miniscule, compared to the preceding page. I simply do not have enough experience to figure out what to do.

Maybe you are looking for

  • I am not able to make International calls from iPhone 5s

    I got this new iphone 5s as a gift a week days ago, and It was working all great for 2-3 days. But from last 4days i AM not able to make international calls Whenever I dial, I can't hear any ring going on and all I can hear is my own voice reverting

  • Problem open multiple pictures in Photoshop

    I am working on a picture file, jpgs, changing the size, the level, etc.  I open 4 or 5 pictures, modifying each as I open it and then when I try to open  the next I receive an  error message that says:  Could not complete your request because of a p

  • Filling the text and assignment automatically of WA document

    can anyone please let me know where in SPRO do i configure for populating the text and assignment fields of WA document(accounting document) generated after GRN (movement type 105)?

  • Samsung continuum ticker not working

    i just got the samsung continuum today, and the ticker won't work consistently. it will work like, every 5 hours, then go away.  can someone help me? i have it set up for twitter, facebook, and some newsfeeds, my gmail...i already made sure the corre

  • Insert Today's Date  into query

    I created a query and want it to filter based on todays date. How do I automatically add todays date to the query so the user does not need to type it in?