Adding pages to roles by code?

is it possible to add pages to roles by code?
where can i find examples?
thanks

Hi Michael / Alejandro,
> from here to see Daniel's blogs
They also only describe all but roles...
> role creation isn't quite as simple
As written, for sure it is, it's just not documented.
See high complexity problem... for details.
Best regards
Detlev

Similar Messages

  • [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

  • 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 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.

  • Retreive a list of workets,folders,iViews,pages from Roles

    Hi all,
    I have been working on retreiving the workset,folders,iview,pages from a role.
    i am refering to the code given in the forum thread
    Retreive a list of workets, iViews, pages from Roles
    but i am facing some issue.
    if the role has workset in it,its not able to read the iviews or pages from it.
    its retreiving null.
    please may i get some solution or some working code regarding this.
    Regards,
    Savitha

    Hi all,
    I have been working on retreiving the workset,folders,iview,pages from a role.
    i am refering to the code given in the forum thread
    Retreive a list of workets, iViews, pages from Roles
    but i am facing some issue.
    if the role has workset in it,its not able to read the iviews or pages from it.
    its retreiving null.
    please may i get some solution or some working code regarding this.
    Regards,
    Savitha

  • jsp:include Not Printing On Web Page, But In Source Code

    Hi there,
    I just had a friend install Tomcat for me on my Apache server at school and it's working great with the test .jsp page I created... until I started to use the <jsp:include> tag. Here's my source for "index.jsp":
    <html>
    <head>
    <% String title = "Hello World!"; %>
    <title><%= title %></title>
    </head>
    <body>
    <h1><%= title %></h1>
    <jsp:include page="/inc/header.jsp" flush="true" />
    </body>
    </html> Here's my source for "header.jsp":
    This is an include from the "inc" directory!When I load the page in a browser... "This is an include from the 'inc' directory!" does NOT show up on the page. However, if I view said page's source, I see this:
    <html>
    <head>
    <title>Hello World!</title>
    </head>
    <body>
    <h1>Hello World!</h1>
    This is an include from the "inc" directory!
    </body>
    </html>Can anyone please tell me why my include ("This is an include from the 'inc' directory!") is NOT being rendered on the web page... yet appears in its source? Thank you,
    CabG

    Well,
    I'm not sure why, but out of desperation I threw this:
    <%@ include file='inc/header.jsp' %>below this:
    <jsp:include page="inc/header.jsp" flush="true" />And it's working. Even after I took "<%@ include file='inc/header.jsp' %>" back out of the code. I must have done something wrong initially? I also removed the first "/" from my original:
    <jsp:include page="/inc/header.jsp" flush="true" />To make it:
    <jsp:include page="inc/header.jsp" flush="true" />But I thought I'd done that before, too. If anyone has any insight as to why it began to work after I added (then removed) the new code... love to hear it, as a new guy.
    CabG

  • How to upgrade Pages with a redemption code

    I am not sure where and how to upgrade Pages using a redemption code given to me by Apple, as an old coworker's ID is stuck as the original purchaser for the program and cannot be changed. I was issued an exception/redemption code but I don't know how to use it, whenever I click update it just brings me to the same box with his ID asking for the password we don't know. Please help! Pages will no longer allow me to open and use my work documents. iMac has been upgraded to Yosemite. Thanks!

    If you have 2 versions of Pages on your Mac:
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
    Pages 5.5.1 only runs on Yosemite and has yet another file format.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 100 features from Pages 5 and added many bugs:
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • How can i set a global error page for all error cod

    how can i set a global error page for all error code?
    i don't want to leave a long list in the web.xml file.could any one help me?
    thanks

    If u have a common Error JSP named as ErrorPage.jsp
    You need to have the following piece of code in the JSP as :
    <%@ page isErrorPage ="true"%>
    This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
    Thanks and regards,
    Pazhanikanthan. P

  • 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

  • Pass the data back from the jsp page to the java code

    Hi,
    I have written an iView that receives an event using EPCF and extracts data from the client data bag.
    I need this iView to pass the data back from the jsp page to the java code.
    I am trying to do this using a hidden input field, but I cannot get the code to work.
    Here is the code on the jsp page.
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId">
    <hbj:inputField id="myInputField" type="string" maxlength="100" value="" jsObjectNeeded="true">
    <% myInputField.setVisible(false);%>
    </hbj:inputField>      
       </hbj:form>
      </hbj:page>
    </hbj:content>
    <script language=JavaScript>
    EPCM.subscribeEvent("urn:com.peter", "namedata", window, "eventReceiver");
    function eventReceiver(eventObj) {
         var url = eventObj.dataObject;
         var funcName = htmlb_formid+"_getHtmlbElementId";
         func = window[funcName];
         var ipField = eval(func("myInputField"));
         ipField.setValue(url);
         var form = document.all(htmlb_formid);
         form.submit();
    </script> 
    Here is my java code
    package com.sap.training.portal;
    import com.sapportals.htmlb.InputField;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    public class ListSalesOrder extends PageProcessorComponent {
      public DynPage getPage(){
        return new ListSalesOrderDynPage();
      public static class ListSalesOrderDynPage extends JSPDynPage{
         private String merong;
        public void doInitialization(){
        public void doProcessAfterInput() throws PageException {
              InputField reportfld = (InputField) getComponentByName("myInputField");
              if (reportfld != null)      merong = reportfld.getValueAsDataType().toString();
        public void doProcessBeforeOutput() throws PageException {
              if ( merong != null ) setJspName("merong.jsp");
              else setJspName("ListSalesOrder.jsp");
    Here is DD
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="SearchSalesOrder">
          <component-config>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="/pagelet/SearchSalesOrder.jsp"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ListSalesOrder">
          <component-config>
            <property name="ClassName" value="com.sap.training.portal.ListSalesOrder"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    After receive event, then call java script function "eventReceiver" and call "form.submit()".
    But .. PAI Logic in Java code doesn't called ...
    Where is my problme ?
    Help me ...
    Regards, Arnold.

    Hi Arnold,
    you should not do a form.submit yourself. Instead you can put a component called ExternalSubmit to your page:
    ExternalSubmit exSubmit = new ExternalSubmit("EX_SUBMIT"));
    exSubmit.setServerEventName("MyEvent");
    This results in a java script funtion on the page which is called "_htmlb_external_submit_". If you call this function the the form gets submitted and your event handler is called.
    regards,
    Martin

  • 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

  • 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.

  • Changing properties for adding pages

    Hi,
    I have a problem, when i create a Workset and I'm not able to change its properties.
    For example I need to link it with some pages.
    Any clues?
    Regards,
    Dustin

    Hi,
    you must unlock objects before adding pages.
    Proceed as follows. Logon on the EP as Admin and go under <b>System Administration -> Monitoring -> (in the Detailed Navigation) Portal >  Object Locking</b>
    You would see the list of the lock objects and you can unlock them.
    Best regards,
    Gianluca Barile

Maybe you are looking for

  • Middle click new search bar's search for with should open in a new tab.

    Is there a setting anywhere to enable middle clicking on alternative search engines in the new search bar to open in a new tab.

  • Bug report status

    Hi, I have previously highlighted an issue with the Xperia C3 D2533 running 5.0, where the back camera is producing low quality images.This is from the Galaxy Note 1 While this is from the Xperia C3 What is appaling is if you zoom in, the N7000 has m

  • Lost all my favourites on iPad 2

    I Have lost all my favourites on my iPad 2. All it shows are the favourites from my i phone 4 . how can I restore my favourites ?

  • Hierarchy in RPD

    I have one requirement that when I click one column,I can drill down different low level for different report. For example: Report A has one column named region, when I click this column which can drill down to district. Report B have the same columm

  • G/L Account - Field for Functional Area in IDoc?

    I'm experimenting with creating G/L Account data outside of SAP using IDoc's (GLMAS01).  However, I'm having trouble finding a field in that IDoc for the Functional Area of the account.  Is anyone familiar with this IDoc, and know whether or not ther