Forum Discussion

Aaba's avatar
Aaba
Ideator III
7 years ago
Solved

How to set 'Simple Search' as default search mode in relationship grid instead of 'Hide Search Criteria'?

Hey Experts,

 

I want to set the search mode as 'Simple Search' by default in the Relationship Grid. 

Normally when i open any item having relationship, i am getting default search mode as 'Hide Search Criteria'. Is there any way to configure this in the Aras?

  • Hi Aaba,

    the only way I have come across to change this is to change the relationshipsGrid.html in

         <Path to Innovator Installation>\Innovator\Client\scripts:

    Somewhere it will say

         RelationshipGridSearchContainer.prototype.defaultSearchMode = "NoUI";

    You can change the "NoUI" to "Simple", which should do the trick. Remember to increase the filesRevision in Innovator/Client/web.config at the very bottom for your changes to the client code tree to be grabbed immediately.

    However, this changes this behaviour for all ItemTypes. If you want it for a particular ItemType/Relationship only, you'd probably have to use some client side method to implement this (unless there is some way to configure this that I simply haven't seen yet).

    Hope this helps,

    C

6 Replies

  • Hi Aaba,

    the only way I have come across to change this is to change the relationshipsGrid.html in

         <Path to Innovator Installation>\Innovator\Client\scripts:

    Somewhere it will say

         RelationshipGridSearchContainer.prototype.defaultSearchMode = "NoUI";

    You can change the "NoUI" to "Simple", which should do the trick. Remember to increase the filesRevision in Innovator/Client/web.config at the very bottom for your changes to the client code tree to be grabbed immediately.

    However, this changes this behaviour for all ItemTypes. If you want it for a particular ItemType/Relationship only, you'd probably have to use some client side method to implement this (unless there is some way to configure this that I simply haven't seen yet).

    Hope this helps,

    C

    • Aaba's avatar
      Aaba
      Ideator III

      Thank you cogres...it is working.

    • Arif's avatar
      Arif
      Creator I

      Whats the equivalent of this solution for ARAS Innovator R35? There is no more relationshipsGrid.html in R35.

      • KevinF's avatar
        KevinF
        Ideator III

        Grep you Innovator code tree for NoUI.  You will find a couple .ts files that contain it.  Innovator\Client\javascript\relationshipsInfernoGridGlobalFunctions.ts is one it has this line 

        container.RelationshipGridSearchContainer.prototype.defaultSearchMode =
        'NoUI'; 
        Change NoUI to Simple and your Grids will default to simple from what I have seen.  I didn't play with it much as it was a global setting so all grids and I really only wanted certain grids to default to Simple as you get the standard blank line to type your filter in and we decide for grids they have seen for 7 years they would get more confused than less.