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 KalleAnka, many thanks for that! This seems to work really well, here are a few of my test results: Actions & Reports from the original Part ItemType can be reused, but must be linked manually in the new ItemType again. I do not think it´s possible to link the original Part Actions and Reports automatically. The only thing that makes some trouble is locking an item in the new ItemType. 1. Go to the new ItemType 2. Choose a Part 3. Click "Lock" -> Error message: Aras.Server.Core.ItemNotFoundException The error message points to the new ItemType and not to the original Part 4. Open a part and close it again 5. Now "Lock" works and references to Part So in my case "lock" works, but you have to open one Part first. The behavior stays that way until you log out. All other options like search bar and page controls work fine.
Reply
  • Hi KalleAnka, many thanks for that! This seems to work really well, here are a few of my test results: Actions & Reports from the original Part ItemType can be reused, but must be linked manually in the new ItemType again. I do not think it´s possible to link the original Part Actions and Reports automatically. The only thing that makes some trouble is locking an item in the new ItemType. 1. Go to the new ItemType 2. Choose a Part 3. Click "Lock" -> Error message: Aras.Server.Core.ItemNotFoundException The error message points to the new ItemType and not to the original Part 4. Open a part and close it again 5. Now "Lock" works and references to Part So in my case "lock" works, but you have to open one Part first. The behavior stays that way until you log out. All other options like search bar and page controls work fine.
Children
No Data