Clarity

  • 1.  Project properties view xog not appropriate

    Posted May 30, 2018 07:11 AM

    Hi,

     

    I am trying to read project properties view and I am using property_view_read xml as below:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <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 contentType="view" name="order_by_1" value="code"/>
       
      </Header>
      <ViewQuery>
        <Filter name="code" criteria="EQUALS">projectGeneral</Filter>
        <Filter name="object_code" criteria="EQUALS">project</Filter>
      </ViewQuery>
    </NikuDataBus>

     

     

    But, read file is fetching every view and not just the project properties view and is making very huge file.

    I only need to read project properties view.

     

    I have also tried cview_read and object_read, but getting similar results.

     

    This is happening in v 15.3



  • 2.  Re: Project properties view xog not appropriate

    Posted May 30, 2018 07:38 AM

    Try adding


    <args name="singleContentType" value="object" />

    <args name=“include_dependencies” value=“false”/>

     

    <args name="exclude_parent" value="true"/>



  • 3.  Re: Project properties view xog not appropriate

    Posted May 31, 2018 10:43 AM

    Thanks, this reduces the file size, but, I can still see attributes of all other projects as well.

     

    Not sure, if this correct.

     

    Further, if I change the object ID from project to some other object like resource etc,. it xog out the same file.\

     

     

    Below is the xml I am using -----

     

    <?xml version="1.0" encoding="UTF-8"?>
    <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 contentType="view" name="order_by_1" value="code"/>
        <args name="singleContentType" value="object" />
        <args name="include_dependencies" value="false"/>
        <args name="exclude_parent" value="true"/>

      </Header>
      <ViewQuery>
        <Filter name="code" criteria="EQUALS">property</Filter>
        <Filter name="object_code" criteria="EQUALS">resource</Filter>
      </ViewQuery>
    </NikuDataBus>



  • 4.  Re: Project properties view xog not appropriate
    Best Answer

    Posted May 31, 2018 11:03 AM

    Try <args name="no_dependencies" value="true" /> 

    (I think it works that way around rather than include_dependencies)

     

    When I read a view I only specify that ^ and the code (being the view id) and the object_code - so similar to your initial XML.



  • 5.  Re: Project properties view xog not appropriate

    Posted Jun 01, 2018 03:01 AM

    Thanks Dave, this really worked



  • 6.  Re: Project properties view xog not appropriate

    Broadcom Employee
    Posted Jun 01, 2018 12:09 AM

    Hi Piyush_Agrawal,

     

    Did you try to use ADMINISTRATION->Content Packages?

    You will be able to add project views which you want as below.

     

     

     

    Regards,

    Shoichi