Aras V12 Relationship View

In Innovator v11 my relationship view was:

Name: World
Start Page: ../Solutions/PLM/scripts/ReverseItemsGrid.html
Parameter: 'ITName='+itemTypeName+'&itemID='+itemID+'&reverseITName=MIN_Fielded_PR&reversePropertyName=system'

When I tried to duplicate the same thing in V12 its doesn't display any data. Has the location or format of ReverseItemsGrid.html changed in version 12?

Parents Reply Children
  • 0 オフライン in reply to AngelaIp

    Hi Angela, I couldn't get it to work. The relationship tab displays with all tab headers and field labels, but no data. Do you know if there's something similar to ReverseItemsGrid.html in v12 . ReverseItemsGrid.html was generic that I could use on all my reverse relationships.

  • Other option would be using a tree-grid-view. But I also would be happy about a ReverseItemsGrid.html variant in Innovator 12. It has a few pros and cons but it´s often easier to use and faster.

    From my POV most of the original code should still work in I12. I would ask Aras if they still can offer a I12 version for this one.

    As alternative you can use the browser debugger to step through the code and look for the outdated code. Right now I would add the following line for the QueryItem function to work:

    <script type="text/javascript" src="../../../javascript/QueryString.js"></script>

    (Not tested, I just had to use it in my own variant)

  • 0 オフライン in reply to AngelaIp

    Still not working. Anyone have any suggestions for me so that I don't have to replace all my ReverseItemsGrids with new TGVs

  • The functions contained in the html file probably are not available in Innovator 12. But I am not sure which one. QueryItem definitely still works. I am not sure why there is a dojo.js reference.

    You can set a "debugger" statement in the file and then step through it to see where it fails. 

    I right now don´t have the time to try it by myself, but I am also interested in reusing ReverseItemsGrid. 

  • I tried it by myself and can confirm your described behavior. Toolbar is shown and also the column headers. But not the grid content itself.

    I did a little debugging and the result is a bit confusing. The complete ReverseItemsGrid.html works, especially when analyzing what happend on this two lines at the end of the script:

    var grid_xml = aras.uiGenerateItemsGridXML(resDom, visiblePropNds, reversItemTypeID);
    grid.InitXML(grid_xml);

    The grid_xml contains all necessary data for rendering the grid (headers AND table content). When looking at grid_xml content via browser debugger, in my case all the related item data was contained. 

    So the getting the information about the reversed items still works with this script.
    But in the end, only the header columns are rendered and not the grid content. 

    Not sure what can cause this one. I noticed one difference between Innovator 11 and 12. In Innovator 11, we still see a visible lock column. Innovator 12, this column is missing. Innovator 12 replaced look/unlock with claim/unclaim. The script still can deal with this one. Rendering is pretty the same, just icons are replaced.

    But something in Innovator 12 prevents the grid content from appearing.

  • 0 オフライン in reply to AngelaIp

    Angela,

    Thanks for all the effort you put into this. If you discover anything new please post. It would be great to have this available in V12. I know for us, it would save us a lot of time in not creating TGVs.