Share Percentages

0
Hi all,  In my app there is an option of Shared Ownership for a property. If the companies ownership is not 100% then we need to state which other parties own what share.  Does anyone know of a way to do this with some kind of validation that makes sure the ownership is equal to 100%.  In my head I can see something that appears of the companies share is not 100%.  It will have a name and their percentage, boxes will keep appearing until 100% is reached, and not allow the user the process unless the total ownership is at 100%.  If anyone has any ideas that would be much appreciated! Many thanks,  Garion  
asked
3 answers
1

I think you would like to do an action after checking the percentage. I would suggest you create a validation sub microflow in that action, which retrieve, maybe on base of a xpath logic to improve the performance, the related properties and built the logic to check the percentage of ownership of the property.

answered
1

Hello Garion,

A domain model like this could work for your business case. The PropertyOwnership entity serves as a middle table to show what percentage of each the property is owned by each company. Your vision of a dynamic page can be achieved by putting a list view in your Property data view that retrieves the list of PropertyOwnership over the association. You will need to create logic that checks if the Property has 100% ownership. If not, create a new object of PropertyOwnership, associate to the Property, and refresh the object in the client.

answered
0

I would show the total percentage on the page. In red for instance when it's not equal to 100 en in green when it adds up to 100. This makes it easy for the user to see if he can submit his input.

answered