How to create a new Part TOC menu item that does a custom search?

Hi, On the ACE 2017 Europe conference, a technique that utilized Federated Data to add a TOC menu item that did a custom search was showcased. In my case, I want to add a new TOC menu item, besides the Part menu item, that searches among Released Parts. I.e., the menu item should be called "Parts Released", clicking it and then clicking the "Run Search" button should return a list of parts that are released. On the conference, they said that I should create a new dummy ItemType, and redirect its requests to the real Part by modifying the onBeforeGet to server event. Apparently this is related to data federation according to the presenter. However, I do not remember the exact steps to implement this. I got the impression that there should example code demonstrating this on Aras' GitHub page. However, I have browsed through several pages of Aras' repositories on GitHub, and I cannot find any project that sounds to be what I am looking or. Does anybody know how to achieve what I am asking for? Or where sample code can be found? Please tell me if you want me to clarify anything in my description. Thanks,
Parents
  • Hi Kalle, Reading your use case, it seems like this could be accomplished more easily with a SavedSearch. You can choose to display this SavedSearch from the TOC and share it with any number of users. You can do this by following the steps below.
    1. Login as admin
    2. Navigate to the Parts in the TOC
    3. In the State column, type "Released"
    4. In the toolbar at the top, select Search > Save Search
      • Enter a label for this search, e.g. "Released Parts"
      • Enter the Identity to display this search for, e.g. "All Employees"
      • Check the "Show On TOC" box
      • Click the Save button
    5. Verify that the "Released Parts" saved search is displayed under the Parts ItemType
    If this doesn't fulfill your requirements, could you please let me know who gave this presentation at ACE? I can try to check in with them to see if I can get a copy of the code for this example. Chris ________________________________________ Christopher Gillis Aras Labs Software Engineer
Reply
  • Hi Kalle, Reading your use case, it seems like this could be accomplished more easily with a SavedSearch. You can choose to display this SavedSearch from the TOC and share it with any number of users. You can do this by following the steps below.
    1. Login as admin
    2. Navigate to the Parts in the TOC
    3. In the State column, type "Released"
    4. In the toolbar at the top, select Search > Save Search
      • Enter a label for this search, e.g. "Released Parts"
      • Enter the Identity to display this search for, e.g. "All Employees"
      • Check the "Show On TOC" box
      • Click the Save button
    5. Verify that the "Released Parts" saved search is displayed under the Parts ItemType
    If this doesn't fulfill your requirements, could you please let me know who gave this presentation at ACE? I can try to check in with them to see if I can get a copy of the code for this example. Chris ________________________________________ Christopher Gillis Aras Labs Software Engineer
Children
No Data