


Views
Replies
Total Likes
Views
Replies
Total Likes
@ Edgar_van_Waardenburg:
"You actually create a new form-field, which automatically inherits its type and properties from the related data type AT THAT MOMENT"
As quoted above from your reply, do you mean that what type of control is generated for a xml element is defined as type in the schema?
When i make a dataconnection using a schema file(.xsd), all my elements are shown as TextField. While I need some radio buttons and checkboxes etc...
Can i know how to specify the type in schema so that different types of controls can be generated? Below is my schemal defination.
<?
xml version="1.0" encoding="utf-8"?>
<
xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<
xs:element name="form1">
<
xs:complexType>
<
xs:sequence>
<
xs:element maxOccurs="unbounded" name="sub">
<
xs:complexType>
<
xs:sequence>
<
xs:element minOccurs="0" name="GroupTitle" type="xs:string" />
<
xs:element ref="QuestionInfo" minOccurs="0" maxOccurs="unbounded" />
<
xs:element ref="sub" minOccurs="0" maxOccurs="unbounded" />
</
xs:sequence>
</
xs:complexType>
</
xs:element>
</
xs:sequence>
</
xs:complexType>
</
xs:element>
<
xs:element name="sub">
<
xs:complexType>
<
xs:sequence>
<
xs:element minOccurs="0" name="GroupTitle" type="xs:string" />
<
xs:element ref="QuestionInfo" minOccurs="0" maxOccurs="unbounded" />
<
xs:element ref="sub" minOccurs="0" maxOccurs="unbounded" />
</
xs:sequence>
</
xs:complexType>
</
xs:element>
<
xs:element name="QuestionInfo">
<
xs:complexType>
<
xs:sequence>
<
xs:element minOccurs="0" name="SubTYPE" type="xs:string" />
<
xs:element minOccurs="0" name="Question" type="xs:string" />
<
xs:element minOccurs="0" maxOccurs="unbounded" name="item">
<
xs:complexType>
<
xs:attribute name="token" type="xs:string" use="required" />
<
xs:attribute name="uiname" type="xs:string" use="required" />
</
xs:complexType>
</
xs:element>
</
xs:sequence>
</
xs:complexType>
</
xs:element>
</
xs:schema>
Thanx
Views
Replies
Total Likes
Views
Replies
Total Likes