store a list temporarily and display it on a page.

0
I have a situation where I have a list of objects from different entities on a page which contains “ContactNumber” as a common attribute in each entity. What I want to achieve is to get the list of all the contact numbers from different list items whichever are checked(they can be from any entity which is present on a page as a list).   What can be an efficient solution to achieve this?
asked
1 answers
1

It depends on the amount of data you have. Two solutions would be:

- Create a non-persistable entity. Retrieve all contract numbers that you want, and create objects for each of those contract numbers. And show that list on the page.

- Other option would be to make each entity an inheritance from a contract entity. In the contract entity you would have the contract number as an attribute and the isChecked as an attribute so that is inherited to all other entities. Now you can simply show the Contract entity. with the isChecked flag switched on.

answered