Clarity

Expand all | Collapse all

XOG out General tab - Overview page

  • 1.  XOG out General tab - Overview page

    Posted 03-06-2018 07:26 AM

    Hi All,

     

    I was not able to XOG out General tab from Overview portlet page. We used this XOG for read portlet page, which was successful, however any definition of General tab (with it's content, layout, etc.) is missing.

     

    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
      <Header version="8.0" action="read" objectType="contentPack" externalSource="NIKU">
        <args name="singleContentType" value="page" />  
        <args name="no_dependencies" value="false" />
      </Header>
      <PageQuery>
        <Filter name="code" criteria="OR">niku.overviewFrame</Filter>
      </PageQuery>
    </NikuDataBus>

     

     

    Do you know how can we XOG out General tab with it's settings?

     

    Thanks,

    Matej



  • 2.  Re: XOG out General tab - Overview page

    Posted 03-06-2018 08:14 AM

    Instead of xogging, try to create a Content Package - make sure to select - Add > Item and descendants, when adding the contents of the Overview page

     

    NJ



  • 3.  Re: XOG out General tab - Overview page

    Posted 03-06-2018 08:23 AM

    Hi navzjoshi,

     

    I've tried that already. Nothing more than I Xogged out through Xog was there...so no Tabs.

     

    Matej



  • 4.  Re: XOG out General tab - Overview page

    Posted 03-06-2018 08:43 AM

    You may try this

     

    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
    <Header version="8.0" action="read" objectType="contentPack" externalSource="NIKU">
    <args name="no_dependencies" value="true"/>
    </Header>
    <PageQuery>
    <Filter name="code" criteria="EQUALS">niku.overviewFrame</Filter>
    </PageQuery>
    </NikuDataBus>



  • 5.  Re: XOG out General tab - Overview page

    Posted 03-06-2018 08:46 AM

    Result is the same, try it in your environment



  • 6.  Re: XOG out General tab - Overview page

    Posted 03-06-2018 09:03 AM

    The above XML does return the General tab, portlet IDs that are part of , layout etc. Are you expecting anything else?



  • 7.  Re: XOG out General tab - Overview page

    Posted 03-07-2018 06:04 AM

    Sorry, my fault, the content of General tab is there in <portlet code> tags (I had to be blind ), or maybe I expected some <content> tag....

     

    So second thing I'd like to ask is how can we overwrite target General tab with this new one. If I let this XOG write as it is, target General tabs contains more portlets in content, then after this XOG runs they will remain. Our aim is of course to have the same General tabs in all environments. Just an example.

     

    I just known that it exists some complete="true" option which overwrites original(target) object with the new one XOGed in. However I was not able to run this XOG with that option (tried to add it after all update="true" tags....)

    Is there any possibility how to achieve this? Thanks

     

    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_contentPack.xsd">
      <Header action="write" externalSource="NIKU" objectType="contentPack" version="15.3.0.200"/>
      <contentPack update="true">
        <pages update="true">
          <tabbedPage active="true" code="niku.overviewFrame" customizable="true" hidden="false" isSystem="true" layout="two-column-layout-50-50"
            linkable="false" objectType="SYSTEM" personalizable="true" source="niku.com" space="npt.overview" template="application" update="true">

            <nls>Other nls language descriptions</nls>
            <nls description="Landing PPM Overview Page" languageCode="en" name="Overview"/>
             <nls>Other nls language descriptions</nls>
           
            <tab active="true" code="npt.overview" customizable="true" hidden="false" isSystem="true" layout="row-layout" linkable="false"
              objectType="SYSTEM" personalizable="true" shared="false" source="niku.com" space="npt.overview" update="true">

              <nls>Other nls language descriptions</nls>
              <nls description="Niku 6 General tab" languageCode="en" name="General"/>
              <nls>Other nls language descriptions</nls>
                       
              <portlet code="hen_news" col="0" required="false" row="0" source="customer"/>
              <portlet code="projmgr.homeHotList" col="0" required="false" row="1" source="niku.com"/>
              <portlet code="calendar.myActionItems" col="1" required="false" row="0" source="niku.com"/>
              <OBSAssocs complete="false"/>
              <Security>
                <GroupSecurity groupCode="hen_project_manager" rightCode="dashboardEdit"/>
                <GroupSecurity groupCode="hen_project_manager" rightCode="PageDefinitionEditor"/>
                <GroupSecurity groupCode="hen_project_manager" rightCode="PageDefinitionViewer"/>
                <GroupSecurity groupCode="hen_project_manager" rightCode="PageViewInstanceRight"/>
              </Security>
            </tab>
            <tab>Other tab1</tab>
            <tab>Other tab2</tab>
            <tab>Other tab3</tab>
            <Security/>
          </tabbedPage>
        </pages>
      </contentPack>
    </NikuDataBus>


  • 8.  Re: XOG out General tab - Overview page

    Posted 11-26-2018 04:02 AM

    Hello,

     

    At this time, there is no way to do this with XOG (it is a shame by the way). You can see every available attribute on page / tabpage in file xsd/nikuxog_pageTypes.xsd. Personnaly, I remove portlets manually (once in a while, it does not bother much).

     

    You can also try to delete from table cmn_page_portlets but as usual, it is not supported.

     

    Regards,

    David