Forum Discussion

ShrutiS's avatar
ShrutiS
Creator I
7 years ago

PE_GetSelectedItems

I am newbie in Aras so maybe I am missing something here. I am using the PE_GetSelectedItems  method to call an action one time on multi select of my grid items. I am able to acheive this on my main grid . However I am facing an error when it come to the relation ship grid. The action method gets called again and again for each Item selected. Please help. Note : I am facing this issue only in chrome. It is working fine in IE.

6 Replies

  • Hello, I looked in our internal tracking system and was able to find this issue you're reporting. There was a fix attached to the issue that you can try to apply in your environment to resolve this issue in Chrome. Please add the following section of code around line 48 of the PE_GetSelectedItems method.
    else if ((isRelationship) && parent && parent.frames["relationships"] && (parent.frames.length > 0))
    {
    for (var i = 0; i < parent.frames.length; i++) {
    var relshipsFrame = parent.frames;
    if (relshipsFrame) {
    grid = relshipsFrame.grid;
    if (grid && grid.getSelectedItemIds(",") && grid.getSelectedItemIds(",").length > 0) {
    idArray = grid.getSelectedItemIds(",").split(",");
    }
    }
    }
    }
    Chris
    Christopher Gillis Aras Labs Software Engineer
    • zetispfa's avatar
      zetispfa
      Ideator I

      I feel like I'm learning more about the world and the problems that concern us all every time I read an article from this publication.    2048 cupcakes

  • The author's writing style is captivating and engaging. I found myself completely immersed in the article from the very beginning.