Pattern 5: Re-used Search Facility |
In this design pattern, a Search facility for a parent table is inserted into a page that shows parent-child results. This Search facility exists in an existing page class, which is embedded in another page. The data sources in both pages need to be synchronized. To embed a page in another page, and synchronize the data sources:
In the design pattern, this is the page that offers the Search facility.
In the design pattern, you can for example remove all functionality that has nothing to do with searching, like the ResultGroup.
A new page object appears in the object tree, let's say PageToBeEmbedded1.
../<MAINTABLE> where MAINTABLE is the data source name of the table in the "target" page, for example: ../TOUR Now, the data sources in both pages are synchronized.
In this picture, a SearchTours page is embedded in a MyTours page, and both TOUR data sources are synchronized.
|