I have a custom control that the orchard author will place on a page that has some basic settings; then when the page is rendered; my "Driver" is called and the control renders with those basic settings within a form.
When the user changes an option - there is a post that is performed that then calls my "Controller" with parameters based on some of the form values.
How do I access the other values that are tied to the configuration of that control from within the "Controller" post handler?
If I follow some of the other examples for returning from this function - I see that a new view is created based on the current Shape.ViewModel() - is this really the correct proceadure? it almost seems like it's duplicating my "Driver" display
function - which builds a model and returns.
Also I've noticed that even if I return from this function - just hardcoding the values from the configuration since I don't yet know how to access the existing values (not the postback paramters; but the settings of the control as to how it was configured
- (e.g. the parts) - I'll get a "View" not found exception because it's ignoring any alternates and is looking in the root of my module views for the view - which this particular view is located in "/Views/Parts".
Should I toss this and just go completely AJAX for doing the update? - I could; but am curious as to how I could make this work for now and then go back and convert to AJAX later and just return a Jason array on the form post.