Forum Discussion

Morgan's avatar
Morgan
Ideator I
5 years ago
Solved

Adding Columns to the Impact Matrix

Hi all,

Aside from adding the relevant lines to the  Express ECO ImpactMatrixGrid, is there something else I need to edit to add the columns? My new column is appearing as undefined.

  • So for anyone wondering how to do this, I decided to write up everything I found that needs to be changed. Hope this helps the community out~

    Adding and Removing Columns from the Aras Impact Matrix

    Ensure that the relevant properties are present on the Change Controlled Item Item Type. This may entail updating all item types that are poly sources to the Change Controlled Item.

    Once, that is done we will be editing two methods -

    Express ECO ImpactMatrixGrid

    Express ECO GetDataSource

    We will start with the Express ECO GetDataSource method.

    The highlighted lines in the code below, which starts at line 128, is the AML that determines which properties are pulled into the tables that are referenced in the Express ECO ImpactMatrixGrid method. We will need to add our properties here.

    We will also need to add our property in one more place, where highlighted, beginning at line 266.



    Now, we can update the Express ECO ImpactMatrixGrid to add our columns. Add a new line to the grid initialization to define the new property as seen below. Per the notes here, I added Changes Pending and Classification. 

    To remove an existing column, remove it from the initialization definition. Some columns drive additional functionality, and as such cannot be commented out such as EDR and Grouping without causing the matrix some issues.




    Next, beginning at line 1655, you will see functions that define the data being pulled into the grid. From here, add a function to setup your properties. Once complete, the new columns and relevant data should be displayed on the Impact Matrix. In the example below are the functions for Part Number and Name along with the added function for the new Changes Pending:




11 Replies

  • So for anyone wondering how to do this, I decided to write up everything I found that needs to be changed. Hope this helps the community out~

    Adding and Removing Columns from the Aras Impact Matrix

    Ensure that the relevant properties are present on the Change Controlled Item Item Type. This may entail updating all item types that are poly sources to the Change Controlled Item.

    Once, that is done we will be editing two methods -

    Express ECO ImpactMatrixGrid

    Express ECO GetDataSource

    We will start with the Express ECO GetDataSource method.

    The highlighted lines in the code below, which starts at line 128, is the AML that determines which properties are pulled into the tables that are referenced in the Express ECO ImpactMatrixGrid method. We will need to add our properties here.

    We will also need to add our property in one more place, where highlighted, beginning at line 266.



    Now, we can update the Express ECO ImpactMatrixGrid to add our columns. Add a new line to the grid initialization to define the new property as seen below. Per the notes here, I added Changes Pending and Classification. 

    To remove an existing column, remove it from the initialization definition. Some columns drive additional functionality, and as such cannot be commented out such as EDR and Grouping without causing the matrix some issues.




    Next, beginning at line 1655, you will see functions that define the data being pulled into the grid. From here, add a function to setup your properties. Once complete, the new columns and relevant data should be displayed on the Impact Matrix. In the example below are the functions for Part Number and Name along with the added function for the new Changes Pending:




    • AngelaIp's avatar
      AngelaIp
      Ideator I

      Thanks for the cool overview! I forgot to mention the GetDataSource method. Happy that you were able to discover this one on your own!

      @Aras: A "highlights from the forums" section would really be helpful! 

      • Morgan's avatar
        Morgan
        Ideator I

        Thanks Angela, learning a lot during this implementation from the community so I am trying to give back where I can!

  • Hi,

    you mainly have to customize the Method 'Express ECO ImpactMatrixGrid' .

    For addition columns you have to add your properties in block "ImpactMatrixGrid.prototype.initializeGridStructur". 
    You need to specify your own "Cell Classes" as seen in available code.

    You may have also to customize one ui_resources(ex?).xml file in the codetree. DonĀ“t remember which one. Either the one directly in the Client folder, or the one in the PE application folder.

    • Morgan's avatar
      Morgan
      Ideator I

      Success, however now for some reason there is some odd behavior. My columns are there but values are only populating for Part...

      And when adding a sub-assembly, it only populates for the the item I add, and it's parent...

      When I set an action on an item these populate as well.... unless the item in question is a CAD Document

      • Morgan's avatar
        Morgan
        Ideator I

        Got this resolved too. Had to edit 'Express ECO GetDataSource' again -

        At line 266, add properties here as well:

        [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:b8ccce9b-e0bf-4940-b7cc-cf566c4fcfd1:type=text&text=String%20notRequestedItemsAmlTempalte%20%3D%0D%0A%22%3CAML%3E%22%20%2B%0D%0A%22%20%20%3CItem%20type%3D%27%7B0%7D%27%20action%3D%27get%27%20select%3D%27id%2C%20name%2C%20item_number%2C%20major_rev%2C%20state%2C%20keyed_name%7B2%7D%2C%20has_change_pending%2C%20classification%27%20levels%3D%270%27%20%3E%22%20%2B%0D%0A%22%20%20%20%20%3Cid%20condition%3D%27in%27%3E%7B1%7D%3C%2Fid%3E%22%20%2B%20%0D%0A%22%20%20%3C%2FItem%3E%22%20%2B%0D%0A%22%3C%2FAML%3E%22%3B]

        Hope this helps someone else [emoticon:c4563cd7d5574777a71c318021cbbcc8]

    • Morgan's avatar
      Morgan
      Ideator I

      Thanks Angela, I've got it configured with these items and I can now view the column and the name however it is not populating the value.

      I am looking to add the has_change_pending property, which I have added to Change Controlled Item for the purpose of populating the impact matrix (this missing on the item type was causing the undefined). 

      Currently, it is always showing blank so that is the next thing I am trying to solve. I am assuming I need to setup my cell class to show a specific value if true so will do that and report back.