I had following business logic. In this Op1 and Op2 represents some operation. And param1,param2,... represents parameters required for executing these operations
Op1=param1, param2 Op2=param1, param2, param3
Now in UI I had a drop down list containing "Op1" and "Op2". Following should happen based on my business logic 1) If I select operation as "Op1" there should be 2 text fields enabled on UI corresponding to param1 and param2. Similarly for "Op2" there should be 3 text fields
Now once user enters data I need to persist the data hence in my DB 1) Corresponding to "Op1" I should store value of param1 and param2 2) Corresponding to "Op2" I should store values of param1, param2 and param3
Please guide me how can I achieve this?