I am using Adobe LiveCycle Designer 7.1 and I need help about dynamic creation of objects (text fields and drop-down lists) or chaging object type during runtime and binding them to the appropriate data source node in XML Data Source.
I found one article which might be realted to this requirement, but it does not give complete details:
http://avokahhh.wordpress.com/2008/06/19/best-practise-for-pre-populating-a-drop-down-with-data/
I have a project which uses a PDF Form for capturing the Laboratory Results of a Lab Test request. This form has a repeating subform of several fields, including Free Text Fields or Dynamic Drop-Down List Fields to capture Laboratory Results.
So, if the result value is selected from a predefined list of entries, the Field must be Drop-Down, and it must be bound to the list of valid values from XML Data Source, and only one of the selected values should be allowed.
And, if the type of the result is numeric, only numeric data should be allowed for data entry, and there could be validation for min and max values.
For example, the value for CBC Test can be: Normal, Boarder Line, and Abnormal.
Or, another test result could be: Positive or Negative.
In other cases, the result is just a number value, with Min/Max values, or a free text entry.
I can write an ASP.NET Program to Generate the XML to describe the type of field and what are the possible values, and inject this XML to a PDF using XDP Format and render the result to the Browser on the client side (response.write(...)).
But, I am not sure how to do the dynamic binding and change the field type between a Text Field and Drop-Down during/after rendering the form to the client.
The XML Data which describe the Result Field Types, and Valid Entries could look like the following:
CBC Test
DropDown
Normal
Boarder Line
Abnormal
Stool
Number
5
15
Urine Color
FreeText
....other data elements...
Please help me to implement this, or give me some hints.
Thank you so much in advance for your help.
Tarek.
Also, I promis that when I find a solution, I will post complete details.
Your help is always appreciated.
Tarek.