P
Paulo
Hello All,
I'm trying to create an easy form that would display questions and would
allow the user to enter the answers. Questions are grouped into sections. The
Questions/Sections themselves should be retrieved from an XML file that would
be a ressource file to the form.
I cannot manage to do this in a clean manner.I manage to create all
questions Sections and answers textboxes/rich text boxes to hold all the data
but this is unmanagable when I want to add a new question...
1) I put the data in an xml file and created the form based on the xml file.
I get the option to take the data present in the file as the default one.
This seems to be ok but I cannot easily add a new question. I would need to
add it in the file but I found no way to make the form "re-read" its default
values to create the additional question and/or section. I need to add it in
the default values, but this would necessitate that I walk through all the
default vaues (in the infopath interface / not in the xml file) and then add
it at the right place....
2) I cannot use a secondary data connection since this only allows me to
populate dropdown lists...
3) I cannot use a Access DB since it won't accept chaning the fields in
Richtext format (which I need...)... is this possible?
- So, is there a way to refresh the default data?
- Is there maybe an easier way to do this?
- Do I need to write some code that will actually query a DB and construct
the form dynamically? In this case could one point me the functions to
dynamically add controls to a form ?
I hops this wasn't too long
Happy new year
Paulo
I'm trying to create an easy form that would display questions and would
allow the user to enter the answers. Questions are grouped into sections. The
Questions/Sections themselves should be retrieved from an XML file that would
be a ressource file to the form.
I cannot manage to do this in a clean manner.I manage to create all
questions Sections and answers textboxes/rich text boxes to hold all the data
but this is unmanagable when I want to add a new question...
1) I put the data in an xml file and created the form based on the xml file.
I get the option to take the data present in the file as the default one.
This seems to be ok but I cannot easily add a new question. I would need to
add it in the file but I found no way to make the form "re-read" its default
values to create the additional question and/or section. I need to add it in
the default values, but this would necessitate that I walk through all the
default vaues (in the infopath interface / not in the xml file) and then add
it at the right place....
2) I cannot use a secondary data connection since this only allows me to
populate dropdown lists...
3) I cannot use a Access DB since it won't accept chaning the fields in
Richtext format (which I need...)... is this possible?
- So, is there a way to refresh the default data?
- Is there maybe an easier way to do this?
- Do I need to write some code that will actually query a DB and construct
the form dynamically? In this case could one point me the functions to
dynamically add controls to a form ?
I hops this wasn't too long
Happy new year
Paulo