I have 2 entities, customer and tracking.
tracking has one customer.
when editing a customer, I want to show all its related tracking (trackingEntity.customer).
doing this with a grid is simple, but I want to reuse the tracking browse screen that was already created.
Inside customer edit, I added a panel with the view
But I can’t configure its data source. what is the proper way to reuse a view, but tweak the data source
You should not use screens as frames. If you want to share some layout and logic between two screens, create a separate frame and use it in the both screens. The frame may not contain own datasources, it’s components can use datasources of the host screen (see the docs).
@knstvk thank you. But unfortunatly I can’t really get from this example how would you reuse a screen with different datasource. Don’t forget that these are my first steps in the framework. trying to understand how to migrate current project.
Do you have another example where I can reuse screens with different datasource.
GroupTable requires a GroupDatasource, so try to change the XML tag of trackingEntitiesDs in customer-entity-edit.xml to groupDatasource (and remove it from the frame).