RunTime Creation of Views and Controls

J

Jo

I have a requirement wherein there are a set of categories, subcategories
and form data associated with these categories stored in the database. I
wanted to display categories and subcategories in the Task Pane. I have
achieved this using ASPX pages. Data Elements of the InfoPath is supposed to
change when Category A is clicked and when Category B is clicked the Form
Structure is again supposed to be reloaded from the database. I used
webservices for loading and submitting the data. For the default view it
works fine.

1. I was hoping that we would be able to programatically create some
views so that when different Categories are clicked I could load different
views dynamically. These views cannot be created at design time because the
number of views (categories/subcategories of our requirement) required are
not available at design time. I understand that Views cannot be
programmatically created with InfoPath Object Model. Is that correct? To
achieve the functionality I want, what should be done?

2. I also want to show different Controls(like TextBox, ListBox, CheckBox
etc) in InfoPath form dynamically at run time based on some database values.
Is this also possible? At design time, we will not be knowing what controls
could be loading in the form.

Thanks,

Johncey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top