3 Replies Latest reply: Dec 6, 2012 11:40 AM by rtreto RSS

    Creating panel stack and panel in CSC

    rtreto
      Hello,

      I'm trying to create a panel stack and a panel in CSC 10.0.3 through the following XMLs that are executed in the repositories */atg/svc/ui/framework/ServiceFrameworkRepository_read/* and */atg/svc/ui/framework/ServiceFrameworkRepository_production/*:

      The panel XML is as follows:
      <add-item item-descriptor="PanelDefinition" id="cmcAbandonedOrdersP">
           <set-property name="appId" value="workspace"/>
           <set-property name="panelId" value="cmcAbandonedOrdersP"/>
           <set-property name="titleKey" value="cmcAbandonedOrdersP"/>
           <set-property name="resourceBundle" value="atg.commerce.csr.FrameworkResources"/>
           <set-property name="contentUrl" value="/panels/abandonedOrders/abandonedOrders.jsp"/>
           <set-property name="otherContext" value="taQi"/>
           <set-property name="templateIds" value="panelTemplate=panelTemplate"/>
           <set-property name="tabHolderYn" value="false"/>
           <set-property name="allowContentToggleYn" value="false"/>
           <set-property name="allowTabbingYn" value="false"/>
           <set-property name="accessRight" value="cmcAbandonedOrders"/>
      </add-item>
      and the panel stack XML:
      <add-item item-descriptor="PanelStackDefinition" id="cmcAbandonedOrdersPS">
           <set-property name="appId" value="workspace"/>
           <set-property name="panelStackId" value="cmcAbandonedOrdersPS"/>
           <set-property name="errorPanelId" value="errorPanel"/>
           <set-property name="header" value="contentHeader"/>
           <set-property name="titleKey" value="cmcAbandonedOrdersPS"/>
           <set-property name="resourceBundle" value="atg.commerce.csr.FrameworkResources"/>
           <set-property name="panelIds" value="errorPanel,cmcAbandonedOrdersP"/>
      </add-item>
      Besides, another XML is executed to add a tabDefinition:
      <update-item item-descriptor="TabDefinition" id="WsCommerceTabDefinition">
           <set-property name="panelStackAssignments" value="cmcAbandonedOrdersPS=contentColumn" add="true" />
           <set-property name="panelStackOrder" value="cmcAbandonedOrdersPS" add="true" />
      </update-item>
      Though, when trying to open CSC, after these changes have been executed, the following error happens:
      **** Error     Qui Dez 06 09:17:03 BRST 2012     1354792623226     /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-87/atg/svc/framework/Framework     Error finding panel stack instances     CONTAINER:atg.svc.repository.service.exception.ObjectNotFoundException: Error finding framework object. id=null, item-desciptor=null; SOURCE:javax.ejb.ObjectNotFoundException
      **** Error     Qui Dez 06 09:17:03 BRST 2012     1354792623226     /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-87/atg/svc/framework/Framework          at atg.svc.repository.service.UIService.getNewConfig(UIService.java:1898)
      Anyone has any idea of what is causing this? or is anything missing?

      The creation of the panel and panel stack were made refering to topic 7 of this link:
      http://docs.oracle.com/cd/E22630_01/Service.1002/pdf/CSCInstallProgGuide.pdf

      Thanks,
      Renã Treto
        • 1. Re: Creating panel stack and panel in CSC
          Barcellos
          Hi rtreto,

          Try to create the same items in the respective versioned repository and create cmcAbandonedOrders access right in the /atg/userprofiling/InternalProfileRepository.

          This worked for me.

          Any other doubt, be free to ask.

          Good luck!

          Barcellos
          • 2. Re: Creating panel stack and panel in CSC
            Onhate
            Hello rtreto!

            Like Barcellos said, you will need to add the panel stack on versioned repository too.

            To do this, you will need to execute something linke this on /atg/svc/ui/framework/ServiceFrameworkRepository-ver/

            Important, look ':1' on id, it is because versioned repository has composite key.
            <add-item item-descriptor="PanelDefinition" id="cmcAbandonedOrdersP:1">
                   <set-property name="panelId" value="cmcAbandonedOrdersP"/>
                   <set-property name="Id" value="cmcAbandonedOrdersP"/>
                   <set-property name="resourceBundle" value="br.com.compasso.atg.commerce.csr.FrameworkResources"/>
                   <set-property name="contentUrl" value="/panels/abandonedOrders/abandonedOrders.jsp"/>
                   <set-property name="otherContext" value="taQi"/>
                   <set-property name="version_deleted" value="false"/>
                   <set-property name="titleKey" value="cmcAbandonedOrdersP"/>
                   <set-property name="branch_id" value="10100"/>
                   <set-property name="checkin_date" value="12/6/2012 13:30:00"/>
                   <set-property name="objectType" value="PanelDefinition"/>
                   <set-property name="asset_version" value="1"/>
                   <set-property name="appId" value="workspace"/>
                   <set-property name="accessRight" value="cmcAbandonedOrders"/>
                   <set-property name="workspace_id" value="10400"/>
                   <set-property name="templateIds" value="panelTemplate=panelTemplate"/>
                   <set-property name="historyIdProperty" value="cmcAbandonedOrdersP"/>
                   <set-property name="version_editable" value="false"/>
                   <set-property name="is_head" value="true"/>
                   <set-property name="tabHolderYn" value="false"/>
                   <set-property name="allowContentToggleYn" value="false"/>
                   <set-property name="allowTabbingYn" value="false"/>
            </add-item>
            
            <add-item item-descriptor="PanelStackDefinition" id="cmcAbandonedOrdersPS:1">
                   <set-property name="resourceBundle" value="br.com.compasso.atg.commerce.csr.FrameworkResources"/>
                   <set-property name="panelStackId" value="cmcAbandonedOrdersPS"/>
                   <set-property name="version_deleted" value="false"/>
                   <set-property name="titleKey" value="cmcAbandonedOrdersPS"/>
                   <set-property name="branch_id" value="10100"/>
                   <set-property name="checkin_date" value="12/6/2012 13:30:00"/>
                   <set-property name="panelIds" value="errorPanel,cmcAbandonedOrdersP"/>
                   <set-property name="objectType" value="PanelStackDefinition"/>
                   <set-property name="asset_version" value="1"/>
                   <set-property name="errorPanelId" value="errorPanel"/>
                   <set-property name="appId" value="workspace"/>
                   <set-property name="header" value="contentHeader"/>
                   <set-property name="Id" value="cmcAbandonedOrdersPS"/>
                   <set-property name="workspace_id" value="10400"/>
                   <set-property name="historyIdProperty" value="cmcAbandonedOrdersPS"/>
                   <set-property name="version_editable" value="false"/>
                   <set-property name="is_head" value="true"/>
            </add-item>
            
            <add-item item-descriptor="accessRight" id="cmcAbandonedOrders">
             <set-property name="type">generic</set-property>
             <set-property name="name"><![CDATA[cmcAbandonedOrders]]></set-property>
             <set-property name="description"><![CDATA[Allowed to access the Abandoned Orders tab]]></set-property>
             <set-property name="scope">organization</set-property>
            </add-item>
            
            <update-item  item-descriptor="role" id="csrManager">
                   <set-property name="accessRights" add="true" value="cmcAbandonedOrders"/>
            </update-item>
            • 3. Re: Creating panel stack and panel in CSC
              rtreto
              Thank you Onhate and Barcellos, that was right.

              I had to add the panel and panel stack in the versioned repository.

              Renã Treto