Authors : Name, List Books, Age, Salary.
Books : Name, ManyToOne Author, Published Date.
Author Details Screen will be on the Left and Book Details Screen on the Right.
When the screen load, 1st author from Author collection is loaded on the left (Author Details Screen). On the right, 1st Book published by that author is display on the Book Details Screen . Using next or previous button, I need to load the different Books belonging to the Author on the left.
I also need to display different author using next and previous button, the changes (1st book of the loaded author) needs to be updated on the right automatically.
I can also create or delete an author or book belonging to the author. When we create an author, the new author should be displayed on screen. I should be able to create Books for the newly created author on the right. On deleting the current author, the author as well as the books belonging to the author needs to be deleted and the 1st author in collection or the previously displayed author needs to be loaded.
Is there any sample implementation or any idea on how to proceed?
Here’s the simple implementation that illustrates the base idea. The table’s datasource ItemChangeListener is used to update another collectionDatasource. Next and Previous buttons invoke methods that iterate through this collectionDatasource using prevItemId() and nextItemId() methods of the CollectionDatasource.Ordered interface.
Everything beyond this you can implement yourself. If not, please post a new specific question following the forum guidelines.