Page Creation using pageservice API in Webcenter Spaces(11.1.1.8)

Hi,
I am trying to create portal pages using pageserviceimpl api in webcenter spaces(11.1.1.8) by using the taskflow but i am getting the exception as below while creating the page
Caused By: oracle.webcenter.page.model.PageServiceRuntimeException: oracle.webcenter.page.model.PageServiceRuntimeException
        at com.cvs.mylife.portal.pagecreate.bean.CreatePageMBean.createPage(CreatePageMBean.java:196)
        at com.cvs.mylife.portal.pagecreate.bean.CreatePageMBean.onDialogEvent(CreatePageMBean.java:347)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused By: oracle.webcenter.page.model.PageServiceRuntimeException
        at oracle.webcenter.page.internal.model.PageServiceImpl.throwNoPrivException(PageServiceImpl.java:12539)
        at oracle.webcenter.page.internal.model.PageServiceImpl.createHierarchyPage(PageServiceImpl.java:4045)
        at com.cvs.mylife.portal.pagecreate.bean.CreatePageMBean.createPage(CreatePageMBean.java:175)
        at com.cvs.mylife.portal.pagecreate.bean.CreatePageMBean.onDialogEvent(CreatePageMBean.java:347)
Can anyone please tel the value needs to be feed to create the page using the below method
            page =
    pageService.createHierarchyPage(parentPagePath, pageNameFormat, pageTitle,
                                pageStyle, pageTemplate, createAfterPagePath);
parentPagePath=?
pageNameFormat=?
pageTitle=?
pageStyle=?
pageTemplate=?
createAfterPagePath=?
This is very much need for one of our customer requirement.
Regards,
Santhosh

Kingsley,
I used the same ateam code for creating the page  in portal framework, it works fine there, but if i use the same code in webcenter spaces 11.1.1.8 it is not working and in that ateam code they are passing null to the parent page path and i tried all these entries for the parent page path in webcenter spaces but nothing worked.
parentPagePath="/oracle/webcenter/page/scopedMD/s1df097cd_2859_4e32_bee4_16f81f5b09f3/";
parentPagePath="/oracle/webcenter/page/scopedMD/s573026b5_4f17_45e0_bdae_986017c24427/pages.xml";
parentPagePath="/oracle/webcenter/page/scopedMD/s573026b5_4f17_45e0_bdae_986017c24427/Page11.jspx"
Regards,
Santhosh

Similar Messages

  • How to use resource of in Webcenter Space into one of its Child Spaces

    I have a requirement for using the Spaces resources(Navigation Model,Skin ) that are created at the Sub Space level to be used in the Child Sub Spaces.
    For eg.,
    Consider the example where i have a sub Space "A". This space has the Resources like navigation N1, Skin S1 and Page template P1 created at the scope of the Space. Also this Space has 3 Sub Spaces, A1,A2,A3.
    My requirement is to use the Navigation model "N1" ,Skin "S1" and Page template "P1" of the Parent Space "A" at the Sub Space level with the Spaces "A1","A2","A3"
    Regards,
    Hardik

    For some resources this is possible like the navigation model. When you edit a navigation model, you can add the navigation model of a different space to the current navigation model. Just select navigation model reference when editing a navigation model and you should be able to select whatever space you want.
    Resources like resource catalog, page templates and skins can not be selected from the parent.
    There is, however a workaround for this and that is creating your resource at the highest level possible in spaces. This is done in the resource section in the administration section of webcenter spaces. Not the admin of a specific space, the admiinistration section of the environment. From there you shoiuld be able to create navigation models, skins, resource catalogs and so on that can be used in every space.

  • Need Sample Code for Vendor creation using JAVA API

    Hi,
    I have a scenario like Vendor creation using <b>Java API</b>.
    1.I have Vendors (Main) Table.
    2.I have <b>look up</b> tables like Account Group.
    3.Also <b>Qualifier table</b>(Phone numbers) too.
    Could you please give me the sample code which helps me to create Vendor records using Java API?
    <b>I need Code samples which should cover all of the above scenario.</b>
    <b>Marks will be given for the relevent answers.</b>
    Best Regards
    PK Devaraj

    Hi Devraj,
    I hope the below code might solve all your problem:-
    //Adding Qualified field
    //Creating empty record in Qualifed table 
    //Adding No Qualifiers
    Record qualified_record = RecordFactory.createEmptyRecord(new TableId(<TableId>));
    try {
    qualified_record.setFieldValue(new FieldId(<fieldId of NoQualifier), new StringValue(<StringValue>));//Adding No Qualifier
    catch (IllegalArgumentException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    catch (MdmValueTypeException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    //Creating Record in Qualified table
    CreateRecordCommand create_command = new CreateRecordCommand(connections);
    create_command.setSession(sessionId);
    create_command.setRecord(qualified_record);
    try
    create_command.execute();
    catch(Exception e)
    System.out.println(e.toString());
    RecordId record_id = create_command.getRecord().getId();
    //Adding the new record to Qualifed Lookup value and setting the Yes Qualifiers
    QualifiedLookupValue lookup_value = new QualifiedLookupValue();
    int link = lookup_value.createQualifiedLink(new QualifiedLinkValue(record_id));
    //Adding Yes Qualifiers
    lookup_value.setQualifierFieldValue(0 , new FieldId(<FieldID of Yes Qualifier>) , new StringValue(<StringValue>));
    //Now adding LookUP values
    //Fetch the RecordID of the value selected by user using the following function
    public RecordId getRecordID(ConnectionPool connections , String sessionID , String value , String Fieldid , String tableid)
    ResultDefinition rsd = new ResultDefinition(new TableId(tableid));
    rsd.addSelectField(new FieldId(Fieldid));
    StringValue [] val = new StringValue[1];
    val[0] = new StringValue(value);
    RetrieveRecordsByValueCommand val_command = new RetrieveRecordsByValueCommand(connections);
    val_command.setSession(sessionID);
    val_command.setResultDefinition(rsd);
    val_command.setFieldId(new FieldId(Fieldid));
    val_command.setFieldValues(val);
    try
         val_command.execute();
    catch(Exception e)
    RecordResultSet result_set = val_command.getRecords();
    RecordId id = null;
    if(result_set.getCount()>0)
         for(int i = 0 ; i < result_set.getCount() ; i++)
         id = result_set.getRecord(i).getId();     
    return id;
    //Finally creating the record in Main table
    com.sap.mdm.data.Record empty_record = RecordFactory.createEmptyRecord(new TableId("T1"));
    try {
         empty_record.setFieldValue(new FieldId(<FieldId of text field in Main table>),new StringValue(<StringValue>));
         empty_record.setFieldValue(new FieldId(<FieldId of lookup field in Main table>), new LookupValue(<RecordID of the value retrieved using the above getRecordID function>));
    empty_record.setFieldValue(new FieldId(<FieldId of Qualified field in Main table>), new QualifiedLookupValue(<lookup_value>));//QualifiedLookUp  value Retrieved above
    } catch (IllegalArgumentException e1) {
    // TODO Auto-generated catch block
         e1.printStackTrace();
    } catch (MdmValueTypeException e1) {
         // TODO Auto-generated catch block
         e1.printStackTrace();
    //Actually creating the record in Main table
    CreateRecordCommand create_main_command = new CreateRecordCommand(connections);
    create_main_command.setSession(sessionId);
    create_main_command.setRecord(empty_record);
    try
         create_main_command.execute();
    catch(Exception e)
         System.out.println(e.toString());
    Thanks
    Namrata

  • Log file creation using km api

    Hi,
    how to create log file using km api . please provide me if any sample code available.
    Thanks and Regards,
    Nari.

    Thanks for your quick reply but one more requirement is... here i can able create text file in km and adding content to created text file on the same line but i want to update new content in next line(newline).Please see below code and correct it.
         Date dt = new Date(Calendar.getInstance().getTimeInMillis());
                                  com.sapportals.portal.security.usermanagement.IUser iuser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
                                  IResourceContext irCtx = new ResourceContext(iuser);
                                  RID docsResource = RID.getRID(filepath);
                                  IContent initCont = new Content(new ByteArrayInputStream("".getBytes()),"text/plain",-1,null);
                                  if(ResourceFactory.getInstance().getResource(RID.getRID(filepath+"/"+filename), irCtx) == null)
                                       ICollection docsColl = (ICollection)com.sapportals.wcm.repository.ResourceFactory.getInstance().getResource(docsResource,irCtx);
                                       docsColl.createResource(filename,null,initCont);
                              String InputData = Exception;
                              RID sugg_html = RID.getRID(filepath+"/"+filename);
                              IResource resource = com.sapportals.wcm.repository.ResourceFactory.getInstance().getResource(sugg_html,irCtx);
                              String existingComments;
                              IContent cont = resource.getContent();
                              BufferedReader buf_in = new BufferedReader(new InputStreamReader(cont.getInputStream()));
                              existingComments = buf_in.readLine();
                              existingComments = existingComments+"   "+"\n"+dt+InputData;
                              ByteArrayInputStream inputStream = new ByteArrayInputStream(existingComments.getBytes());
                              cont = new Content(inputStream,"text/plain",-1,null);
                              resource.updateContent(cont);
                              cont.close();

  • Tax Creation using  DI API

    hi kings,
    how to create tax types using DI API
    Thanks & regards
    B.Lakshmi Narayanan

    hi shafi,
    thanks for your valuable reply. First i need to create the Tax Types
    i trying to following code but its show the Error "Enter valid code  [OSTT.NfTaxId]"
    Dim oAutCode As SAPbobsCOM.SalesTaxAuthoritiesTypes
            oAutCode = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oSalesTaxAuthoritiesTypes)
            oAutCode.Name = "DUTY"
            oAutCode.VAT = SAPbobsCOM.BoYesNoEnum.tNO
    Tax types have Name,Category,Parameter
    i passed only Name and vat type i search remaining two attribute  but its not available.
    and also i trying to url code its also show the error
    Dim oCode As SAPbobsCOM.SalesTaxCodes
                Set oCode = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oSalesTaxAuthoritiesTypes)
                oCode.Code = "VAT5"
                oCode.Name = "VAT5"
                oCode.Lines.STACode = "VAT"
                oCode.Lines.STAType = "1"
                oReturn = oCode.Add
                If oReturn  0 Then
                    oCompany.GetLastError oError, errMsg
                    MsgBox (errMsg)
                Else
                    MsgBox ("Sales Tax Code Added")
                End If
    thanks & regards
    B.Lakshmi Narayanan

  • Webcenter Spaces/Portal integration with UCM and use of FrameworkFolders

    Hi All,
    We are looking at the possibility of using Desktop Integration Suite organisation wide.. We are also in the process of an organisation wide roll out of Webcenter spaces.
    The preference is to use FrameworkFolders because its replacing the folders_g component and address the limitations posed by folders_g (for example can have a max of only 1000 content within a folder, time to load the pages when a folder has large no of content items).
    Since only folders_g can be used for integrating with Webcenter Spaces/Portal we are not sure of what our strategy should be. Is there plan to use framework folders with Webenter in the future?
    Thanks,
    Manjunath
    Edited by: 890922 on 14-Aug-2012 18:20

    Since only folders_g can be used for integrating with Webcenter Spaces/Portal we are not sure of what our strategy should be. Is there plan to use framework folders with Webenter in the future?Certainly there are. Unfortunately, no exact date/release has been communicated so far. If you need a quick implementation (following few next months) I'm afraid you will have to go with folder_g

  • Certain Lists Display and All Lists Display in Webcenter Space

    Hi All Experts,
    I am trying to find a way to display certain lists from Lists Service as well as all lists from Lists Service. The reason being is we are going to have a lot of projects to be tracked by using Lists Service in Webcenter space, then we want to display different set of lists (projects items) in separate tables for different initiatives and then ultimately one table to display all lists (all projects items) for all initiatives.
    If there is a tag function for each list, then we can group all the related lists by using tags. However, I don't think we are able to tag a list so this is not possible. Now, I am not sure how can I display group lists accordingly. Also, I am not sure how can I display all lists in one table easily (ie. List Name, Assigned to Person, Open/Closed).
    I tried to think of a scalable way to handle a lot of projects by using Lists Service. However, if you have any other solution, please feel free to recommend me.
    Thanks and best regards,
    user12626393

    Hi,
    Lists are not designed to be used with API(s), because it's a WebCenter Spaces only feature, but you can ofcourse put them under each other by surrounding them all with a movable box, but if you want something more customizable, and more business oriented, I'd suggest building your own custom lists using taskflows

  • Multiple-node WebCenter Spaces config with default file-based policy

    hi,
    My customer will use web center 11g on multiple linux server, I noticed there is a comment in wc doc like this:
    =========================================
    The default file-based policy store can only be used for single-node WebCenter Spaces configurations. For multi-node configurations, you must reassociate the policy and credential store with an external LDAP-based store (such as Oracle Internet Directory) as described in Section 23.4, "Configuring the Policy and Credential Store."
    The policy store can be configured to use Oracle Internet Directory 11gR1 and 10.1.4.3, and OVD 11gR1 with the Local Store Adapter (LSA).
    The identity store can be configured to use the following LDAP servers:
    Oracle Internet Directory (OID) 11gR1 and 10.1.4.3
    Oracle Virtual Directory (OVD) 11gR1 and 10.1.4
    Sun iPlanet version 4.1.3
    Active Directory shipped as part of Windows 2000
    Open LDAP version 2.0.7
    Novell NDS version 8.5.1
    ========================================
    My customer only has AD, they don't have budget to buy oid at this time, according to the statement "The policy store can be configured to use Oracle Internet Directory 11gR1 and 10.1.4.3, and OVD 11gR1 with the Local Store Adapter (LSA).", does that mean the wc policy store can not use other ldap such as ad in multiple-node wc configuration?
    If performance is not an issue, can I use default file-based policy store in this case?
    If it's impossible for the customer to buy oid at this time, what's the possible solution?
    Thanks a lot!
    Regards

    You can configure directly with AD.
    Basically your WebLogic server needs to be configured to talk to AD. You can configure an Identity provider in Weblogic server which uses AD as LDAP.
    This should work in multi-node environment.
    Also, i do not see any reason why file based jazn-data should not work.
    Best solution from my perspective if Weblogic AD configuration does not work:
    Create and manage your users and roles in Weblogic embedded LDAP. All you have to change in your application is the realm to the name of weblogic realm(default is myrealm) and while deploying make sure you uncheck the create users and roles.
    Regards,
    Venkat

  • WebCenter Spaces People Search

    Hi !
    I want exact name of API in webcenter spaces which provudes name of all people who are registered in spaces.
    when we want to invite people we clicks tab for search in spaces and it gives list of all the names.
    we also have taskflow/API for profile search in webcneter but as developer i want to know what are those api and where do I find them.
    what all function can be performend for search of people in spaces

    Hi,
    I have been playing around with user information lately as well and user information is not completely stored within a Spaces but through Oracle Identity Store. It will depend on you specific environment configuration but youcould query against your LDAP.
    Here you have a link that was helpful for me:
    From Oracle® Fusion Middleware Installation Guide for Oracle WebCenter:
    4.8 Configuring an External LDAP-Based Identity Store
    http://download.oracle.com/docs/cd/E15523_01/install.1111/e12001/webcenterservice_install.htm#BABIDAFG
    from there browse to the Identity Store configuration and I think you'll find the information you need.

  • How to responce back HTML format to MVC using asembler API

    Hi,
    Now we are trying to build integration between MVC Web Application on Seesar2 framework(http://www.seasar.org/en/) and endeca commerce 3.1.1.
    In order to responce back the HTML page from endeca based on the query executed by MVC side, assembler API should return the format of HTML, however, it seems that Assembler API actually returns the contentItem data with which cartridge should be used, so assembler API responce as is cannot be used as HTML page output.
    Is there any way to generate the HTML page format using assembler API ?
    Also I've found following forum saying that Assembler API can be called by Spring MVC, but is it also applicable for other framework than spring ?
    https://qa.endecacommunity.com/questions/149/creating-endeca-dispatcher-using-spring-mvc-instead-of-assemblerjsp-in-endeca-310
    Re: How to use Spring MVC instead of assembler.jsp in endeca 3.1.0
    Thanks,
    Yuki

    Instead of writing HTML directly why not write an XML representation of your data and then use XSLT to create an HTML view and a PDF view. PDF can be generated from XML using FOP (http://xml.apache.org/fop/index.html).

  • Using WebCenter Spaces Web Service API through JDeveloper's Data Control

    Hi,
    I'm trying to access WebCenter Spaces Web Service API (located at http://host:port/webcenter/SpacesWebService)
    using JDeveloper's Web Center Data Control.
    I created a data control in my portal project using JDeveloper's Web Service Data Control wizard.
    I also created and configured key stores (jps-config.xml) at both sides (spaces server and my portal client).
    How I created a data control:
    * First I entered the name and the URL (http://host:port/webcenter/SpacesWebService?WSDL)
    * Then I entered HTTP basic authentication details (user name and password)
    * After that I drag-and-drop the getGroupSpaces() method from the data control to a .jspx page as a ADF read-only table.
    * Then ran my portal project and navigated to this .jspx page and it worked. List of group spaces appeared well on that page.
    The problem is that I got only public group spaces and group spaces created by the user I entered on HTTP basic authentication details.
    I makes no sense to enter some static user details in a web service client (or a data control).
    So the question is; can I use identity propagation to get only group spaces created by the same user which I logged in my portal?
    Edited by: 832886 on Feb 18, 2011 3:09 AM

    Hi,
    You generally get NameError when you are executing the createCred/updateCred from a incorrect location. Are you using the wlst from oracle_common\common\bin?
    Also, In your steps I don't see what you did to populate the walllet at JDeveloper end after your updateCred failed. This is a required step. Use the wlst from the location emntioned above and you should be able to proceed.
    Thanks,
    Vishal

  • How to use a form into a Webcenter Space´s page?

    I'm trying to put a HTML page (that contains a form element) into a Webcenter Space´s page. But, when it run I see the HTML source and my form tag isnt there. So, if I cant to insert a form tag into that page, how to proceed then?
    Thank you!

    Hi,
    you can use CTAS method or you can export & import the tables..
    create table b.table1 as select * from a.table1;
    create table c.table1 as select * from a.table1;
    you can export import whole schema or schema objects also
    expdp system/***** dumpfile=tables.dmp logfile=tab.log directory=data_pump_dir schemas=a
    and then
    impdp system/**** dumpfile=tables.dmp logfile=imp.log directory=data_pump_dir remap_schemas=(a:b)
    or you can individually import the tables also..

  • How to set the title of pages created in Webcenter Spaces?

    Hi
    I need to set the title of the pages created in webcenter spaces. How can i do that? By default when i create the page in webcenter spaces the page name with which i created the page is coming up on the browser tab. But i want the browser title to be different from the page name. Is there a way to do this? I tried with using javascript and setting "document.title" but it works only partially. That is when the page is loading it shows the text that i have set using javascript but it doesnot remain persistent. As soon as the page loads it again resets back to the name of the page :(
    I also tried adding html markup on to the page in edit mode and tried giving in the <title> tag but it is not getting applied, as soon as i click on apply it just refreshes the page and my changes are gone.
    Please i need some help around this asap as it is critical.
    Thanks

    Thanks for the reply Jaap.
    It was really helpful. But i need further help on this.
    I need to change the browser title based on the tab selected. And here the tabs on spaces page is actually coming from a custom task flow. Any idea how can i achieve this? And there is no page refresh involved.
    Some help on this please.
    Thanks

  • How to display applications in tabs on a single page in webcenter spaces

    Hi,
    I am working on a project in Webcenter spaces where we have a welcome page with few hyperlinks on a bar in the top section .Each hyperlink is associated with an application url. The requirement is when a user clicks on any link, it should populate a tab in the page displaying the application.
    For ex, if we have the links on the top as "google", "yahoo", "bing", etc, clicking on each one of them, should open tabs below displaying the respective home page. It should not open the application in a new browser but a tab in the same page. Also, the tabs are just page fragments (.jsff). As user clicks more links, more tabs are opened ( if that application is already not open).
    In short, we are replacing opening of a new browser to opening a tab in the same browser ( when clicking an application link).
    The issue is - how do I get the content of a website (or an application) into a tab in webcenter spaces dynamically. We tried using Pagelet producer but they need to be predefined. Also, each application url need to contain the session cookie, so user need not login to the application again.
    Any alternate strategy to acheive the same result is also welcome.

    Not 100%. Although, I did find out that I can use an Inline Frame layout component which can take a url as one of its property. Thus, I can dynamically pass this property and make the layout render the application. Beyond this, the control will be transferred to application and I hope it will work. We are still in the process of playing with the components.

  • Webcenter page service add content api

    WebCenter has native page service api to create or modify page by programming. But I can not find the adding page content api.
    this url "http://docs.oracle.com/cd/E14571_01/webcenter.1111/e10149/pages_content.htm" is about page content, but there aren't api about page content.
    how to use page content api by programming?
    Thanks a lot.

    I am unclear on the usecase to programatically use an API to create a page this way.
    Can you explain why you cannot interact with the UI to develop pages?

Maybe you are looking for

  • How to capture carriage return in SAP Business One?

    Hi guys, I am using C# for developing a plug-in for SAP business one 2005, I tried to use '\n' to capture carriage return in some fields that are stored in SQL server 2005, but it didn't work. I tried the same code in a C# windows application and it

  • Sys password problem

    Hi, I am trying to login as a sys user.... but icouldn't, i am getting an error ORA-01017... but i have entered correct username and password.... still i am not able to login into the system........ now, should i create new password by deleting the o

  • A bridge between the page and the EO using the action listener

    hi i have a requirement that when pressing a button i want some action to be performed and this action is related to some field in the database. i have the problem that i don't know how to reach the EO from the action on the screen answer by John Ste

  • Need commpress-html-template with in weblogic.xml using Weblogic 10.0 MP1

    Hi All, Is there any way to use compress-html-template with weblogic.xml with in Weblogic 10.0 MP1. I added this as current xsd reference for weblogic 10.0 MP1 but throws me error that it could unable to identify the library reference. Here is the fo

  • Can I use DSD (quality) audio in Premiere?

    I have DSD (quality) audio available for a video project. But before the client sends over a very large DSD file, I would like to know if I can import this file into Premiere Pro CC and use it's full capacity. Otherwise which file format can I use to