Assigning Page to a Workset using code

Dear EP friends,
I want to assign a page to a workset as delta link using code.
Can anybody got any helping document on the same.
Plz reply me
thanx in advance
regards
Lakshmikantha

Hi Gerardo,
check this code
Hashtable env = new Hashtable();
env.put("java.naming.security.principal", request.getUser());
env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, String<userId>);
env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
InitialContext ctx = new InitialContext(env);
IPcdUtils pcdUtils = PcdAccess.getPcdUtils();
IPcdAttributes basePcdAttributes = pcdUtils.createPcdAttributes();
IPcdContext  pcdCtx = (IPcdContext)ctx.lookup("pcd:portal_content/existingFolder""/"worksetName);
pcdCtx.createDeltaLink(String<pageName>,basePcdAttributes,String<pageId>);
Regards,
Ramamurthy

Similar Messages

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

  • Trying to open a page in IE-tab using javascript, script type="text/javascript" window.location.href="chrome://coralietab/content/container.html?url=0,myurl" /script Error:Component returned failure code:0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]

    I am trying to open a page in IE-tab using javascript like this, <script type="text/javascript"> window.location.href = "chrome://coralietab/content/container.html?url=0,myurl" ;</script>.Error occured : [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::myurl :: load :: line 234" data: no] I have IE-Tab plug-in installed..when I open the same link manually in mozilla,it works fine and page gets opened in Ie-tab.

    The only way this might be possible is by using the HostContainer object
    to access the HTML page and do it from there.

  • Why am I suddenly getting this message from a page I have been using for 6 months(Error code: sec_error_unknown_issuer) how do I get my page back?

    Why am I suddenly getting this message from a page I have been using for 6 months(Error code: sec_error_unknown_issuer) how do I get my page back?

    Did you reset Firefox recently?
    *https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
    If that is the case then you may have lost intermediate certificates that were stored in the cert8.db file in the Firefox profile folder.
    Check out why the site is untrusted (see the Technical details) and if this is caused by a missing intermediate certificate then see if you can install this intermediate certificate from another source.
    Some firewalls monitor secure (https) connections and send their own certificate instead of the website's certificate.
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    *Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    *Click the "View..." button and inspect the certificate and check who is the issuer.
    You can see more Details like intermediate certificates that are used in the Details pane.

  • How to assign pages to workset and workset to roles in ep5sp6

    hai,
        how to assign pages to workset and workset to roles
    in ep5sp6 . can any one help me in this regard .
    Regards
    praveen

    Hi Praveen,
       You can find the documentation you are looking for on the SAP help portal.  This link will take you to the Administration Guide for EP5 SP6.
    http://help.sap.com/saphelp_ep50sp6/helpdata/en/38/76bd3b6e74d708e10000000a11402f/frameset.htm
    In the left hand navigation you can pick the topics that you are interested in.  e.g. pages, roles, iviews.
    Hope this helps.
    John

  • Can't assign chart of deprecition to company code

    Hi Experts,
    At the time of assign chart of depreciation to company code  its showing  the error
    Errore is: 
    Company code entries for N001 are incomplete - See long text
    Message no. AC551
    Diagnosis
    The result of the check of company code N001 shows that important global parameters from Financial Accounting are missing for Asset Accounting.
    One or more of the following fields are affected:
    Currency
    Chart of accounts
    Fiscal year version
    Input tax indicator for non-taxable transactions
    Procedure
    You cannot use the company code for Asset Accounting without this information.
    First complete these entries.

    Dear,
    Nagesh.
    As per Zubin maintain all the entries and further more maintain tax codes for Non  Taxable Transactions in AA in
    T code  OBCL as V0 & A0 for you respective company code.
    I hope this will help you to solve your problem.
    Please revert for further help.
    Regards,
    Pankaj A Bhalerao.

  • Error when i am assigning chart of dep to company code

    Hi all,
    when i am assigning chart of depreaction to company code it was geving the following error.
    NOTE: i copied chart of dep form USA and names as 999 and my company code is 1234
    Inconsistency between FI company code 1234 and chart of deprec. 999
    Message no. AC481
    Diagnosis
    You tried to assign chart of depreciation 999 to company code 1234. According to its Customizing definition, this company code manages parallel currencies.
    The chart of depreciation does not contain a corresponding depreciation area for each of the currency types that are defined in the company code.
    System Response
    This assignment is not possible.
    Procedure
    1. Check the currency types of the company code.
    2. Specify a corresponding depreciation area for each currency type.
    could you please give me solucion to me please.
    thanku

    please define the additional currency of ur company code as per following setting. as you copied the chart of deperciation
    1-OAYH Define depreciation areas for foreign currencies
    2- OABT Specify the use of parallel currencies

  • Error while assigning Chart of Deprecation to Company Code

    I am working in ECC 6.0
    I created one Non-Leading Ledger. While activating that Non-Leading Ledger (Assigning to company code) I had given another currency as Hard currency (40) as USD.
    Now I tried to assign u201CChart of Deprecationu201D To Company code it is giving the following error. Can any one please give me the solution to overcome the error.
    Company code entries for 5556 are incomplete - See long text
    Message no. AC551
    Diagnosis
    The result of the check of company code 5556 shows that important global parameters from Financial Accounting are missing for Asset Accounting.
    One or more of the following fields are affected:
    u2022     Currency
    u2022     Chart of accounts
    u2022     Fiscal year version
    u2022     Input tax indicator for non-taxable transactions
    Procedure
    You cannot use the company code for Asset Accounting without this information.
    First complete these entries.
    Thanku

    Hi,
    Just execute OBCL and assign the Input and Output tax codes as V0 and A0 for your company code and then assign the COD.
    Regards
    Balaji

  • Panel Page in ADF Faces using Facelets not rendering correctly

    Hi, I am attempting to integrate facelets into a web app built using adf faces and am running into a problem with the panel page component. I have integrated facelets and adf faces without any problems by adding relevant jars (jsf-facelets and adf-facelets) to the project and specifying alternate facelets view handler in web.xml.
    However, when I try to render any component inside <af:document> or <af:html> tags, all the font style in components seems to be lost ( all the text and input fields turn large and ugly!).
    I tried to leave out the <af:document> tag and put the <f:view> inside some vanilla html instead, but then panelPage component dosen't render properly and I get following message on top of page :
    "Skip navigation elements to page contents"
    So seem to be in a bit of a catch 22. By the way, this all works fine if I don't use facelets (remove the facelets view handler from web.xml and page renders correctly).
    Does anyone have any ideas or examples of panelPage rendering correctly with facelets or an alternative to using adf faces html tags that will allow panelpage to be displayed?
    The following is the code from a simple test jspx page :
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ui="http://java.sun.com/jsf/facelets">
    <f:view>
    <af:document>
    <af:form>
    <af:panelPage title="Title 1">
    <af:panelHorizontal>
    <af:panelGroup layout="vertical">
    <af:outputLabel value="Username"/>
    <af:inputText id="lo_username" value="" columns="20"/>
    <af:objectSpacer width="1" height="10"/>
    <af:outputLabel value="Password"/>
    <af:inputText id="lo_password" secret="true" value="" columns="20"/>
    <af:objectSpacer width="1" height="15" />
    <af:panelHorizontal>
    <af:objectSpacer width="50" height="1"/>
    <af:commandButton id="lo_loginButton" text="Login"/>
    </af:panelHorizontal>
    </af:panelGroup>
    <af:objectSpacer width="50" height="1"/>
    <af:panelGroup layout="vertical">
    <af:outputLabel value="Please use your windows account username"/>
    <af:outputLabel value="and password to logon to the system"/>
    <af:objectSpacer width="1" height="50"/>
    </af:panelGroup>
    </af:panelHorizontal>
    </af:panelPage>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

    The problem was the <jsp:root> tag. Removed this tag and modified <af:document> to the following so that namespaces are declared :
    <af:document xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:ui="http://java.sun.com/jsf/facelets">
    Page now renders properly using facelets.
    Message was edited by:
    mjc

  • Printing a web  page from the browser using JSP

    Hi sir,
    I want to know how to print a webpage that contains some
    report data where the web page contains a button as well when i click the button only the webpage contents(report data) should be send to the printer and should be printed.Here i should not use any javascript.By using pure java code in Jsp i need to do this.Pls.provide the code for this so that i will be grateful to u.Where it is very Urgent.I will be waiting for ur reply.
    Thanx,
    m.ananthu

    If you are reasonable sure that the user will be using a newer browser you could use the <LINK> tag to set an alternative print page. When the user clicks on the print button it calls a javascript funtion that does a window.print function call. The browser will then request the alternative print page and print this page instead of what is in teh browser.
    This will require two JSP pages but with proper use of includes you can reuse the code.
    Sorry I don't have any examples handy so you'll have to search the web but I know it works because I've done it for an intranet site.

  • What is an easy web-page creation program for use with MacBook Pro?

    Can anyone suggest an easy web-page creation program for use with MacBook Pro?  I have used FrontPage with my PC, but am changing to a MacBook Pro.

    It largely depends on your skill level. Do you want to write web page code, or do you want to just design something and have it turn into a web page automatically?
    If you are more of a designer, try these:
    RapidWeaver
    Freeway Pro
    Muse
    If you want to write web page code, try these:
    Coda
    BBEdit
    Dreamweaver
    If you really don't want to write the code and want the best experience for your viewers, and you want to spend the least amount of time on it, my recommendation is:
    No program at all.
    Instead, sign up with a web site company like:
    WordPress.com (hosted by them) or WordPress.org (hosted on your server)
    Squarespace
    Wix
    The reason is that these companies have fully operational, nicely designed web site templates that you just fill in with your words and pictures, and they are ready to go. They also give you these benefits:
    Already designed to the latest web standards
    Already designed to resist hackers
    Already designed to work on all browsers
    Already designed to automatically adjust the page for readability on desktop, laptop, tablet, and smartphone screen sizes
    Already designed for accessibility
    Already designed for Search Engine Optimization so that your page will be found on Google
    Already designed with social media links built in if you want
    It is not like the old days where you build a site in Front Page and you assume it will only be seen on a desktop computer. If you build it yourself with a web page program, do you have the knowledge to make a site that works on all of the different web browsers and mobile devices, and is friendly to search engines and social media? If you don't have those skills, working with a website company can be a lot better, faster, and more reliable than trying to hammer all of that out yourself using code in some app.

  • Grouping and Page Break in ALV using Function Modules

    Hi all,
    I am trying to develop an ALV Report that will be grouped by vendor, some vendor information to be displayed on header. And, after each vendor;s records there should be a page break.
    It should be something like this:
    Vendor Number: 00012345454
    Vendor Name: ABC Technologies, Inc
    Vendor Country: USA
    Item....Price...... Descriptopm
    123....100,00......this is description
    124....120.00......this is another description
    PAGE BREAK
    Vendor Number: 000123456545
    Vendor Name: My Bank
    Vendor Country: USA
    Item....Price..... Descriptopm
    223....32,00......this is my description
    224....120.00......this is another description
    Can anybody give some sample code for it ? I have tried a few codes from web, but they are not working.
    Thanks.

    Hi,
    Try the following:
    1. Build your sorting criteria. Pass this to ALV FM.
      gs_sort-fieldname = 'VENDOR'.
      gs_sort-group = '*'. "new page
      gs_sort-up = 'X'.
      APPEND gs_sort TO gt_sort.
    2. Add event group level change. Pass this to ALV FM
      gs_event-name = 'GROUPLEVEL_CHANGE'.
      gs_event-form = 'GROUPLEVEL_CHANGE'.
      APPEND gs_event TO gt_event.
    Inside the form, retrieve your vendor details.
    FORM grouplevel_change USING gs_lineinfo
                                 gs_groups TYPE kkblo_grouplevels.
      DATA: l_index     TYPE i.
      IF gs_groups-level = 1.
        l_index = gs_groups-index_to + 1.
        READ TABLE gt_display INDEX l_index  INTO gw_display.   
      ENDIF.
    3. In the event top-of-page, display vendor details using write statements. For the first record, your structure (gw_display) will be blank, read from your data table first
    FORM top_of_page.
      IF gw_display IS INITIAL.
        READ TABLE gt_display INDEX 1 INTO l_display.
        IF sy-subrc = 0.
          WRITE: / l_display-vendor
        ENDIF.
      ELSE.
        WRITE: / gw_display-vendor.
        CLEAR: gw_display.
      ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_callback_pf_status_set = 'SET_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          is_layout                = gs_layout
          it_fieldcat              = gt_fcat[]
          it_sort                  = gt_sort[]
          i_save                   = 'A'
          it_events                = gt_event
        TABLES
          t_outtab                 = gt_display[]
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    Hope this helps.

  • How to generate localized chars using code point in Solaris 10?

    Hi All,
    Do enybody know how to generate localized chars (for example Japanese) using code points in Solaris 10?
    Like in the following web page:
    http://www.isthisthingon.org/unicode/index.phtml
    Unicode, shift-jis
    U+4e2f 87a3 �N
    U+4e3b 8ee5 ��
    U+4e3c 98a5 �S
    U+4f5c 8dec ��
    Thanks,
    Daniel

    I have found a "Code Point Input Method" tool in the following page:
    http://java.sun.com/products/jfc/tsc/articles/InputMethod/inputmethod.html
    Using this tool user can enter hexadecimal code point and the output is some char.
    But this tool doesn't work. I run this in the follwoing way:
    # java -jar CodePointIM.jar
    After this error message appers:
    Failed to load Main-Class manifest attribute from
    codepointim.jar
    If anybody could help I will be appreciate.
    Regards,
    Daniel

  • Printing assigned pages

    If I use my laptop to print to the printer and assign pages for example 12-15 it prints what ever example 8-11 or if I try printing 1-15 it only prints 1-11. The printer is hook up to my desktop with Windows Xp3 my laptop is using Windows 7 Home Premium 

    Hi,
    Which printer are your using and do you have the printer drivers installed for your laptop?
    You can dowload the relevant drivers from www.hp.com > Support & Drivers.  Follow the steps there. Good luck!
    Although I am an HP employee, I am speaking for myself and not for HP

  • How to create tab pages in Human task Using Wizard

    hi,
    how to create tab pages in Human task Using Wizard.i need to display the personal details and the offical details in the same page with different tabs for each.it is possible to do lika this.if yes,how can we do this.
    Regards

    Stuart,
    Within a SAP Portal Tabs are not used like you want them to
    By default Tabs are used inside an iView and not to "tab" between iViews on a page...
    The most straightforward solution would be creating a custom PageLayout that you can assign to your page.
    I would sugest to implement this custom PageLayout with DIV layers and trigger "tabbing" via JavaScript eventing.
    For more infor on how to create a custom PageLayout take a look at here:
    [http://help.sap.com/saphelp_nw70/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm]
    Good Luck,
    Benjamin Houttuin

Maybe you are looking for