Navigating between components
I have created two WD components. In the "main" component I can produce a list of certain items in a table. Then the user can select a row and click one of the provided buttons. When a button is clicked, the other "detail" component/application should be launched. (I think that this is a typical create/change/display case.)
What is the best way to achieve this?
1) Should I just launch the "detail" application with the needed parameters, or
2) Should I somehow create a new view to the "main" component, and into this view I should then somehow embed the "detail" component? (Then of course navigating between the views is straightforward.)
3) Another alternative?
One important point is that I probably want to be able to return from the detail component to the main component, and then in the main component I should still have the same data in the table as before accessing the detail view (and preferably the same selected row in the table).