How can I have some Object ID hyperlink action of some component (say comp1) directly navigates to Overview page belonging to another component (say comp2)? These two components already belong to the same business role and for comp2 when selected I would still like to show the user with a search page. The navigation to Overview page should happen only from the hyperlink action.
And because of a lot of custom code in comp2 search and result views, I don't want to create another component, copy all the custom changes and make Overview page as default in Repository.xml. Using the selected Object ID, I can fill this value in one of the key search attribute and run the query service to fill the corresponding context nodes. Since this Object ID is key attribute there will be only one search Result.
The idea what I am thinking is to follow the regular navigation flow (i.e., Search->Result->Overview for Comp2), but manually trigger the event handlers and outbound plug for result view based on some custom attribute that will hold Object ID. But I am on confused on if this would be the right approach or if there is something better? And if this is the right approach then, which methods for Search and Result should I modify to navigate to Overview page?
Thanks and Regards,
your problem description is a little bit weired. Had to read it three times now and I still do not exactly know what you want.
My guess: You are in View1 of Component1 and want to navigate to View2 in Component2. Additionally when someone clicks on the link on the workcenter page you want to navigate to a View3 in Component2 that is the search mask. From View3 you can naviagte to view2.
This has been solved several times by SAP in the WebClient. Just have a look at all the business partner links. For example in the opprotunity you can have a prospect linked. Clicking on this link will bring you directly to BP_HEAD components overview page. Additionally you can go to Account Workcenter then click there on the Search -> Accounts and go to the BP_HEAD component via the search result list.
You might want to take a look at generic OP mapping as this is the key.