Clarity

  • 1.  Can we - Delete InvestmentAssociations Hierarchies via XOG

    Posted Mar 25, 2013 04:21 AM
    Hi,

    Can we - Delete InvestmentAssociations Hierarchies via XOG


    I have tried below options, but no luck.

    ============
    <ChildInvestment InvestmentID="DB_APP5" InvestmentType="application" remove="true" >
    <CustomInformation/>
    </ChildInvestment>
    ============
    <ChildInvestment InvestmentID="DB_APP5" InvestmentType="application" delete="true" >
    <CustomInformation/>
    </ChildInvestment>
    ================
    <ChildInvestment InvestmentID="DB_APP5" InvestmentType="application" completed="true" >
    <CustomInformation/>
    </ChildInvestment>
    ================


    Need your inputs over this.

    Regards,
    Deepak


  • 2.  RE: Can we - Delete InvestmentAssociations Hierarchies via XOG

    Posted Mar 25, 2013 04:30 AM
    Have you tried this ?

    <ChildInvestment InvestmentID="DB_APP5" InvestmentType="application" [color=#ff0000]complete[color]="true" >
    <CustomInformation/>
    </ChildInvestment>

    Shouldn't the InvestmentType be project ?

    NJ


  • 3.  RE: Can we - Delete InvestmentAssociations Hierarchies via XOG

    Posted Mar 25, 2013 05:36 AM
    I should try it the same way as elsewhere:

    The list of child object should only contain those items which are there to stay.

    <?xml version="1.0" encoding="UTF-8"?>
    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_project.xsd">
    <Header action="write" externalSource="NIKU" objectType="project" version="12.1.1.1208"/>
    <Projects>
    <Project name="zparent" projectID="zparent" >
    <Subprojects>

    </Subprojects>
    <Allocations/>
    <scenarioDependencies/>
    <InvestmentAssociations>
    <Allocations/>
    <Hierarchies>

    </Hierarchies>
    </InvestmentAssociations>
    <General addedBy="kinnunenad" addedDate="2013-03-25"/>
    <OBSAssocs completed="false"/>
    <BurdeningAssocs>
    <BurdeningAssoc transactionType="Labor"/>
    <BurdeningAssoc transactionType="Material"/>
    <BurdeningAssoc transactionType="Expenses"/>
    <BurdeningAssoc transactionType="Equipment"/>
    </BurdeningAssocs>
    </Project>
    </Projects>

    </NikuDataBus>

    complete/completed should not be at the level of the child items but higher

    <Subprojects complete="true"> or <Hierarchies complete="true">

    However, in my test neither complete or completed is accepted at those places and leaving the input as above without them does not change the existing hierarchy.

    It appears to me that removing child objects or hierarchy is one of those things you cannot do with XOG.

    Martti K.


  • 4.  RE: Can we - Delete InvestmentAssociations Hierarchies via XOG

    Posted Mar 25, 2013 06:09 AM
    Guess that we would need to dig in a bit deeper than we think, although your statement seems correct - "It appears to me that removing child objects or hierarchy is one of those things you cannot do with XOG."

    NJ


  • 5.  RE: Can we - Delete InvestmentAssociations Hierarchies via XOG

    Posted Apr 05, 2013 04:30 AM
    Got it !!!

    Yes, we can do !!!

    Check this post -

    99645325

    <?xml version="1.0" encoding="UTF-8"?>
    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_project.xsd">
    <Header action="write" externalSource="NIKU" objectType="project" version="12.1.1.1208"/>
    <Projects>
    <Project name="<project name>" projectID="<project code>" >
    <Subprojects>
    </Subprojects>
    <Allocations/>
    <scenarioDependencies/>
    <InvestmentAssociations [color=#0800ff]isComplete=”true”[color]>
    <Allocations/>
    <Hierarchies>
    </Hierarchies>
    </InvestmentAssociations>
    <General addedBy="josna03" addedDate="2013-03-25"/>
    </Project>
    </Projects>
    </NikuDataBus>



    Change is "isComplete="true""

    NJ


  • 6.  RE: Can we - Delete InvestmentAssociations Hierarchies via XOG

    Posted Apr 05, 2013 04:32 AM
    The isComplete="true" flag is an indicator to say 'ignore what is in the DB and replace it with all that I am providing now', so if that investment was already associated, with this file and attribute you've reinforced it.

    You should, when using that flag, exclude any investments that you no longer want to have associated. So to remove them all, you would use the empty example like mine that has no associations at all, but does have that flag.

    By example:

    If you have an investment with associations to other investments that we'll call A, B, and C.

    If you then XOG in with isComplete="true" and associations to investments B and D, these actions will take place.

    - Investment associations A, B, and C will be removed from the investment.
    - Investment associations B and D will be added to the investment.

    Without the isComplete="true" this would happen instead:

    - All existing investment associations will be left intact
    - It would be seen that B already exists and would be ignored/skipped.
    - Investment association D would be added to the investment.


    NJ


  • 7.  RE: Can we - Delete InvestmentAssociations Hierarchies via XOG

    Posted Apr 05, 2013 05:09 AM
    So the answer was "SEARCH THE FORUM"

    Martti K.


  • 8.  RE: Can we - Delete InvestmentAssociations Hierarchies via XOG

    Posted Apr 05, 2013 05:24 AM
    Correct !!! :wacko:

    NJ