I think this is related to another post http://community.k2.com/t5/K2-blackpearl/Loading-K2-Smart-Forms-Views-runtime-Dynamically/m-p/72900#M20917 but there didn't seem to be much detail about the solution.
I have a library with 17 content types (contracts) in it and I have been asked to create a SmartForm where the user can select the contract content type from a drop down control and then fill in the metadata, create a contract document and start a process.
I have seen that I can either create a single SmartObject via the SmartObject Service Tester or I can let SharePoint generate a SmartObject for each content type. That seemed okay so I created views from the SmartObjects. In the form I do not want to add every view and then try to manage the visibilty based on the dropdown if I don't have to.
What I would really like to do is lookup which view belongs to which Content type and then dynamically load the view as a subview perhaps. I would rather not have to have an If condition for every entry in th dropdown.
Is there a way of dynamically loading a view based on a value? Or is there an approach that you would recommend to achieve the requirement?
Thanks
Jeremy