hi guys, I am trying to show supplier a button in a list view of requests, based on the fact whether he/she has sent offer(s) to this request. What i do now is calculating for each listitem whether a helper object should be made by checking in MF whether the supplier has sent offers to this request. I think this is unnecessarily cpu heavy process and I am wondering whether you can advice a smarter, less cpu consuming solution. Domain model (edit many to many relation from supplier to request): List view:
Hi Rapido, the best thing here you can do here is to place a boolean attribute in request and each time a change regarding the request or offer is made, you can set the boolean to the correct value. Then you not need an helper object, the logic is only triggered once and therefor the performance will be higher and less cpu consuming.