I have an XML file that looks like this:
<extensionG>
<Tables>
<Table TName="__MigrationHistory" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="MigrationId" DataType="nvarchar" DataTypeMaxLength="300" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="ContextKey" DataType="nvarchar" DataTypeMaxLength="600" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="Model" DataType="varbinary" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="ProductVersion" DataType="nvarchar" DataTypeMaxLength="64" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
</Table>
<Table TName="CoatingCost" Schema="dbo">
<Columns>
<Column CName="CoatingCostId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="CoatingId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="LabId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="Cost" DataType="money" DataTypeMaxLength="8" DataTypePrecision="19" DataTypeScale="4" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Price" DataType="money" DataTypeMaxLength="8" DataTypePrecision="19" DataTypeScale="4" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
</Table>
<Table TName="ContactLens" Schema="dbo">
<Columns>
<Column CName="ProductId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
</Table>
</Tables>
</extensionG>
I shred the xml file using this query and put it into a temporary table:
INSERT INTO #TargetDBObjects
SELECT DBTables.Name.value('#TName', 'varchar(100)') AS TableName, DBTables.Name.value('#Schema', 'varchar(20)') AS SchemaName, DBTables.Name.value('#TextImageOnFileGroup', 'varchar(20)') AS TextImageFileGroup,
Cols.C.value('#CName', 'varchar(100)') AS ColName, Cols.C.value('#DataType', 'varchar(20)') AS DataType, Cols.C.value('#DataTypeMaxLength', 'varchar(5)') AS DataTypeMaxLength,
Cols.C.value('#DataTypePrecision', 'varchar(5)') AS DataTypePrecision, Cols.C.value('#DataTypeScale', 'varchar(5)') AS DataTypeScale,
Cols.C.value('#IsIdentityColumn', 'varchar(1)') AS IsIdentityColumn, Cols.C.value('#IdentitySeedValue', 'varchar(5)') AS IdentitySeedValue, Cols.C.value('#IdentityIncrementValue', 'varchar(5)') AS IdentityIncrementValue,
Cols.C.value('#IsColumnNullable', 'varchar(1)') AS IsColumnNullable, Cols.C.value('#PrimaryKey', 'varchar(1)') AS PrimaryKey
FROM #XmlTargetDB.nodes('//Tables/Table') AS DBTables(Name)
CROSS APPLY DBTables.Name.nodes('Columns/Column') AS Cols(C)
When I do a SELECT on the table, the __MigrationHistory and CoatingCost table data is present but not the ContactLens data
Can anybody see anything wrong with the XML file or the query that shreds the xml?
UPDATE
This is a more complete example of the xml file and the entire query that shreds the document:
'<extensionG>
<Tables>
<Table TName="__MigrationHistory" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="MigrationId" DataType="nvarchar" DataTypeMaxLength="300" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="ContextKey" DataType="nvarchar" DataTypeMaxLength="600" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="Model" DataType="varbinary" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="ProductVersion" DataType="nvarchar" DataTypeMaxLength="64" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
<Indexes>
<Index IndexName="PK_dbo.__MigrationHistory" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="MigrationId" IsDescendingSort="0" OrdinalPosition="1" />
<IndexColumn ICName="ContextKey" IsDescendingSort="0" OrdinalPosition="2" />
</Index>
</Indexes>
</Table>
<Table TName="Activity" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="ActivityId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="ApplicationId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Name" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Description" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Code" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
<ForeignKeys>
<ForeignKey FK_Name="FK_dbo.Activity_dbo.Application_ApplicationId" ParentColumn="ApplicationId" ReferenceTable="Application" ReferenceColumn="ApplicationId" IsDisabled="0" HasUpdateRefAction="0" HasDeleteRefAction="1" />
</ForeignKeys>
<Indexes>
<Index IndexName="PK_dbo.Activity" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="ActivityId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
<Index IndexName="IX_ApplicationId" PrimaryKeyIndex="0" IndexDescription="NONCLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="ApplicationId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
</Table>
<Table TName="AdHocContacts" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="AdHocContactId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="PatientProfileId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Name" DataType="varchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Fax" DataType="varchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="Email" DataType="varchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
</Columns>
</Table>
<Table TName="AdjustmentType" Schema="dbo">
<Columns>
<Column CName="AdjustmentId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="AdjustmentName" DataType="nvarchar" DataTypeMaxLength="100" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
<Indexes>
<Index IndexName="PK_AdjustmentType" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="AdjustmentId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
</Table>
<Table TName="Application" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="ApplicationId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="Code" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Name" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
<Indexes>
<Index IndexName="PK_dbo.Application" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="ApplicationId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
</Table>
<Table TName="ApplicationCategory" Schema="dbo">
<Columns>
<Column CName="ApplicationId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="CategoryId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
</Columns>
<ForeignKeys>
<ForeignKey FK_Name="FK_ApplicationCategory_Application" ParentColumn="ApplicationId" ReferenceTable="Application" ReferenceColumn="ApplicationId" IsDisabled="0" HasUpdateRefAction="0" HasDeleteRefAction="0" />
<ForeignKey FK_Name="FK_ApplicationCategory_Category" ParentColumn="CategoryId" ReferenceTable="Category" ReferenceColumn="CategoryId" IsDisabled="0" HasUpdateRefAction="0" HasDeleteRefAction="0" />
</ForeignKeys>
<Indexes>
<Index IndexName="PK_ApplicationCategory" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="ApplicationId" IsDescendingSort="0" OrdinalPosition="1" />
<IndexColumn ICName="CategoryId" IsDescendingSort="0" OrdinalPosition="2" />
</Index>
</Indexes>
</Table>
<Table TName="ApplicationSetting" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="SettingId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="ApplicationId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="SettingKey" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="Value" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
</Columns>
</Table>
<Table TName="Bookmark" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="BookmarkId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="UserName" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Url" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="Name" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
</Columns>
</Table>
<Table TName="Bundle" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="BundleId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="Name" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
<Indexes>
<Index IndexName="PK_dbo.Bundle" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="BundleId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
</Table>
<Table TName="BundleProduct" Schema="dbo">
<Columns>
<Column CName="BundleId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="ProductId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
</Columns>
<ForeignKeys>
<ForeignKey FK_Name="FK_dbo.BundleProduct_dbo.Bundle_BundleId" ParentColumn="BundleId" ReferenceTable="Bundle" ReferenceColumn="BundleId" IsDisabled="0" HasUpdateRefAction="0" HasDeleteRefAction="1" />
<ForeignKey FK_Name="FK_dbo.BundleProduct_dbo.Product_ProductId" ParentColumn="ProductId" ReferenceTable="Product" ReferenceColumn="ProductId" IsDisabled="0" HasUpdateRefAction="0" HasDeleteRefAction="1" />
</ForeignKeys>
<Indexes>
<Index IndexName="PK_dbo.BundleProduct" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="BundleId" IsDescendingSort="0" OrdinalPosition="1" />
<IndexColumn ICName="ProductId" IsDescendingSort="0" OrdinalPosition="2" />
</Index>
<Index IndexName="IX_BundleId" PrimaryKeyIndex="0" IndexDescription="NONCLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="BundleId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
<Index IndexName="IX_ProductId" PrimaryKeyIndex="0" IndexDescription="NONCLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="ProductId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
<Triggers>
<Trigger TriggerName="TestTrigger2" TrigDefinition="-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE TRIGGER TestTrigger2
ON BundleProduct
AFTER DELETE,UPDATE
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for trigger here
select * from Edging;
END
" IsUpdateTrig="1" IsDeleteTrig="1" IsInsertTrig="0" IsAfterTrig="1" IsInsteadOfTrig="0" IsDisabled="0" />
</Triggers>
</Table>
<Table TName="Category" Schema="dbo">
<Columns>
<Column CName="CategoryId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="Name" DataType="varchar" DataTypeMaxLength="50" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
</Columns>
<Indexes>
<Index IndexName="PK_Category" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="CategoryId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
</Table>
<Table TName="Coating" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="CoatingId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="Name" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Inactive" DataType="bit" DataTypeMaxLength="1" DataTypePrecision="1" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="ProcedureCode" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
</Columns>
<Indexes>
<Index IndexName="PK_Coatings" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="CoatingId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
</Table>
<Table TName="CoatingCost" Schema="dbo">
<Columns>
<Column CName="CoatingCostId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="1" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="1" />
<Column CName="CoatingId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="LabId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="Cost" DataType="money" DataTypeMaxLength="8" DataTypePrecision="19" DataTypeScale="4" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
<Column CName="Price" DataType="money" DataTypeMaxLength="8" DataTypePrecision="19" DataTypeScale="4" IsIdentityColumn="0" IdentitySeedValue="1" IdentityIncrementValue="1" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
<ForeignKeys>
<ForeignKey FK_Name="FK_CoatingCost_Coating" ParentColumn="CoatingId" ReferenceTable="Coating" ReferenceColumn="CoatingId" IsDisabled="0" HasUpdateRefAction="0" HasDeleteRefAction="0" />
<ForeignKey FK_Name="FK_CoatingCost_Lab" ParentColumn="LabId" ReferenceTable="Lab" ReferenceColumn="LabId" IsDisabled="0" HasUpdateRefAction="0" HasDeleteRefAction="0" />
</ForeignKeys>
<Indexes>
<Index IndexName="PK_CoatingCost" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="CoatingCostId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
</Table>
<Table TName="ContactLens" Schema="dbo">
<Columns>
<Column CName="ProductId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="0" />
</Columns>
</Table>
<Table TName="Contacts" Schema="dbo" TextImageOnFileGroup="PRIMARY">
<Columns>
<Column CName="BaseCurve" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="Cylinder" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="Diameter" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="Power" DataType="nvarchar" DataTypeMaxLength="-1" DataTypePrecision="0" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="1" PrimaryKey="0" />
<Column CName="ProductId" DataType="int" DataTypeMaxLength="4" DataTypePrecision="10" DataTypeScale="0" IsIdentityColumn="0" IsColumnNullable="0" PrimaryKey="1" />
</Columns>
<ForeignKeys>
<ForeignKey FK_Name="FK_Contacts_Product" ParentColumn="ProductId" ReferenceTable="Product" ReferenceColumn="ProductId" IsDisabled="0" HasUpdateRefAction="0" HasDeleteRefAction="0" />
</ForeignKeys>
<Indexes>
<Index IndexName="PK_Contacts" PrimaryKeyIndex="1" IndexDescription="CLUSTERED" PadIndex="0" Statistics_NoRecompute="0" IgnoreDupKey="0" AllowRowLocks="1" AllowPageLocks="1">
<IndexColumn ICName="ProductId" IsDescendingSort="0" OrdinalPosition="1" />
</Index>
</Indexes>
</Table>
</Tables>
</extensionG>';
This is the query:
SELECT DBTables.Name.value('#TName', 'varchar(100)') AS TableName, DBTables.Name.value('#Schema', 'varchar(20)') AS SchemaName, DBTables.Name.value('#TextImageOnFileGroup', 'varchar(20)') AS TextImageFileGroup,
Cols.C.value('#CName', 'varchar(100)') AS ColName, Cols.C.value('#DataType', 'varchar(20)') AS DataType, Cols.C.value('#DataTypeMaxLength', 'varchar(5)') AS DataTypeMaxLength,
Cols.C.value('#DataTypePrecision', 'varchar(5)') AS DataTypePrecision, Cols.C.value('#DataTypeScale', 'varchar(5)') AS DataTypeScale,
Cols.C.value('#IsIdentityColumn', 'varchar(1)') AS IsIdentityColumn, Cols.C.value('#IdentitySeedValue', 'varchar(5)') AS IdentitySeedValue, Cols.C.value('#IdentityIncrementValue', 'varchar(5)') AS IdentityIncrementValue,
Cols.C.value('#IsColumnNullable', 'varchar(1)') AS IsColumnNullable, Cols.C.value('#PrimaryKey', 'varchar(1)') AS PrimaryKey,
[Indexes].I.value('#IndexName', 'varchar(100)') AS IndexName, [Indexes].I.value('#PrimaryKeyIndex', 'varchar(1)') AS PrimaryKeyIndex, [Indexes].I.value('#IsUnique', 'varchar(1)') AS IsUnique,
[Indexes].I.value('#IndexDescription', 'varchar(120)') AS IndexDescription,
[Indexes].I.value('#PadIndex', 'varchar(1)') AS PadIndex, [Indexes].I.value('#Statistics_NoRecompute', 'varchar(1)') AS StatisticsNoRecompute, [Indexes].I.value('#IgnoreDupKey', 'varchar(1)') AS IgnoreDupKey,
[Indexes].I.value('#AllowRowLocks', 'varchar(1)') AS AllowRowLocks, [Indexes].I.value('#AllowPageLocks', 'varchar(1)') AS AllowPageLocks,
[IndexColumn].IC.value('#ICName', 'varchar(100)') AS IndexColumnName, [IndexColumn].IC.value('#IsDescendingSort', 'varchar(1)') AS IsDescendingSort,
[IndexColumn].IC.value('#OrdinalPosition', 'varchar(2)') AS OrdinalPosition,
ForeignKey.FK.value('#FK_Name', 'varchar(100)') AS ForeignKeyName,
ForeignKey.FK.value('#ParentColumn', 'varchar(50)') AS ParentColumn,
ForeignKey.FK.value('#ReferenceTable', 'varchar(100)') AS ReferenceTable, ForeignKey.FK.value('#ReferenceColumn', 'varchar(50)') AS ReferenceColumn,
ForeignKey.FK.value('#IsDisabled', 'varchar(1)') AS IsDisabled, ForeignKey.FK.value('#HasUpdateRefAction', 'varchar(1)') AS HasUpdateRefAction, ForeignKey.FK.value('#HasDeleteRefAction', 'varchar(1)') AS HasDeleteRefAction,
Defaults.D.value('#DefName', 'varchar(100)') AS DefaultName, Defaults.D.value('#DefValue', 'varchar(100)') AS DefaultValue, Defaults.D.value('#DefColumnName', 'varchar(100)') AS DefColumnName,
Checks.C.value('#CkName', 'varchar(100)') AS CheckName, Checks.C.value('#CkDefinition', 'varchar(500)') AS CkDefinition, Checks.C.value('#IsCkDisabled', 'varchar(1)') AS IsCkDisabled,
[Triggers].T.value('#TriggerName', 'varchar(100)') AS TriggerName, [Triggers].T.value('#TrigDefinition', 'varchar(max)') AS TrigDefinition,
[Triggers].T.value('#IsUpdateTrig', 'varchar(1)') AS IsUpdateTrigger, [Triggers].T.value('#IsDeleteTrig', 'varchar(1)') AS IsDeleteTrigger, [Triggers].T.value('#IsInsertTrig', 'varchar(1)') AS IsInsertTrigger,
[Triggers].T.value('#IsAfterTrig', 'varchar(1)') AS IsAfterTrigger, [Triggers].T.value('#IsInsteadOfTrig', 'varchar(1)') AS IsInsteadOfTrigger, [Triggers].T.value('#IsDisabled', 'varchar(1)') AS IsDisabledTrigger
FROM #XmlTargetDB.nodes('//Tables/Table') AS DBTables(Name)
CROSS APPLY DBTables.Name.nodes('Columns/Column') AS Cols(C)
OUTER APPLY DBTables.Name.nodes('Indexes/Index') AS [Indexes](I)
CROSS APPLY I.nodes('IndexColumn') AS [IndexColumn](IC)
OUTER APPLY DBTables.Name.nodes('ForeignKeys/ForeignKey') AS ForeignKey(FK)
OUTER APPLY DBTables.Name.nodes('DefaultConstraints/Default') AS Defaults(D)
OUTER APPLY DBTables.Name.nodes('CheckConstraints/Check') AS Checks(C)
OUTER APPLY DBTables.Name.nodes('Triggers/Trigger') AS [Triggers](T)
When I change the one CROSS APPLY you have there to an OUTER APPLY the missing table is there.
Your table "ContactLens" does not have a sub-tree <indexes> ...
SELECT DBTables.Name.value('#TName', 'varchar(100)') AS TableName, DBTables.Name.value('#Schema', 'varchar(20)') AS SchemaName, DBTables.Name.value('#TextImageOnFileGroup', 'varchar(20)') AS TextImageFileGroup,
Cols.C.value('#CName', 'varchar(100)') AS ColName, Cols.C.value('#DataType', 'varchar(20)') AS DataType, Cols.C.value('#DataTypeMaxLength', 'varchar(5)') AS DataTypeMaxLength,
Cols.C.value('#DataTypePrecision', 'varchar(5)') AS DataTypePrecision, Cols.C.value('#DataTypeScale', 'varchar(5)') AS DataTypeScale,
Cols.C.value('#IsIdentityColumn', 'varchar(1)') AS IsIdentityColumn, Cols.C.value('#IdentitySeedValue', 'varchar(5)') AS IdentitySeedValue, Cols.C.value('#IdentityIncrementValue', 'varchar(5)') AS IdentityIncrementValue,
Cols.C.value('#IsColumnNullable', 'varchar(1)') AS IsColumnNullable, Cols.C.value('#PrimaryKey', 'varchar(1)') AS PrimaryKey,
[Indexes].I.value('#IndexName', 'varchar(100)') AS IndexName, [Indexes].I.value('#PrimaryKeyIndex', 'varchar(1)') AS PrimaryKeyIndex, [Indexes].I.value('#IsUnique', 'varchar(1)') AS IsUnique,
[Indexes].I.value('#IndexDescription', 'varchar(120)') AS IndexDescription,
[Indexes].I.value('#PadIndex', 'varchar(1)') AS PadIndex, [Indexes].I.value('#Statistics_NoRecompute', 'varchar(1)') AS StatisticsNoRecompute, [Indexes].I.value('#IgnoreDupKey', 'varchar(1)') AS IgnoreDupKey,
[Indexes].I.value('#AllowRowLocks', 'varchar(1)') AS AllowRowLocks, [Indexes].I.value('#AllowPageLocks', 'varchar(1)') AS AllowPageLocks,
[IndexColumn].IC.value('#ICName', 'varchar(100)') AS IndexColumnName, [IndexColumn].IC.value('#IsDescendingSort', 'varchar(1)') AS IsDescendingSort,
[IndexColumn].IC.value('#OrdinalPosition', 'varchar(2)') AS OrdinalPosition,
ForeignKey.FK.value('#FK_Name', 'varchar(100)') AS ForeignKeyName,
ForeignKey.FK.value('#ParentColumn', 'varchar(50)') AS ParentColumn,
ForeignKey.FK.value('#ReferenceTable', 'varchar(100)') AS ReferenceTable, ForeignKey.FK.value('#ReferenceColumn', 'varchar(50)') AS ReferenceColumn,
ForeignKey.FK.value('#IsDisabled', 'varchar(1)') AS IsDisabled, ForeignKey.FK.value('#HasUpdateRefAction', 'varchar(1)') AS HasUpdateRefAction, ForeignKey.FK.value('#HasDeleteRefAction', 'varchar(1)') AS HasDeleteRefAction,
Defaults.D.value('#DefName', 'varchar(100)') AS DefaultName, Defaults.D.value('#DefValue', 'varchar(100)') AS DefaultValue, Defaults.D.value('#DefColumnName', 'varchar(100)') AS DefColumnName,
Checks.C.value('#CkName', 'varchar(100)') AS CheckName, Checks.C.value('#CkDefinition', 'varchar(500)') AS CkDefinition, Checks.C.value('#IsCkDisabled', 'varchar(1)') AS IsCkDisabled,
[Triggers].T.value('#TriggerName', 'varchar(100)') AS TriggerName, [Triggers].T.value('#TrigDefinition', 'varchar(max)') AS TrigDefinition,
[Triggers].T.value('#IsUpdateTrig', 'varchar(1)') AS IsUpdateTrigger, [Triggers].T.value('#IsDeleteTrig', 'varchar(1)') AS IsDeleteTrigger, [Triggers].T.value('#IsInsertTrig', 'varchar(1)') AS IsInsertTrigger,
[Triggers].T.value('#IsAfterTrig', 'varchar(1)') AS IsAfterTrigger, [Triggers].T.value('#IsInsteadOfTrig', 'varchar(1)') AS IsInsteadOfTrigger, [Triggers].T.value('#IsDisabled', 'varchar(1)') AS IsDisabledTrigger
FROM #XmlTargetDB.nodes('//Tables/Table') AS DBTables(Name)
CROSS APPLY DBTables.Name.nodes('Columns/Column') AS Cols(C)
OUTER APPLY DBTables.Name.nodes('Indexes/Index') AS [Indexes](I)
OUTER APPLY I.nodes('IndexColumn') AS [IndexColumn](IC)
OUTER APPLY DBTables.Name.nodes('ForeignKeys/ForeignKey') AS ForeignKey(FK)
OUTER APPLY DBTables.Name.nodes('DefaultConstraints/Default') AS Defaults(D)
OUTER APPLY DBTables.Name.nodes('CheckConstraints/Check') AS Checks(C)
OUTER APPLY DBTables.Name.nodes('Triggers/Trigger') AS [Triggers](T)
I am working in Jdeveloper 11.1.7 and i have created a form.
And there is a link for add and remove.
On click of add, i am duplicating the form using for each tag and on click of remove i am reducing the number of form.
After duplicating the form, i have to save all the data to the database.
I am unable to fetch the value from all the fields.
I can not bind the fields as they are added at the runtime.
Here goes the page source code:
<af:panelFormLayout id="Mediclassic_Policy_Individual"
inlineStyle="width:1029px;">
<af:outputText value="Mediclassic Policy Individual====>#{sessionScope.prodId==1}"
id="ot12"
inlineStyle="font-weight:bold; color:black; font-size:20.0px;"
rendered="false"/>
<af:spacer width="10" height="10" id="s4"/>
<af:separator id="separator1"
inlineStyle="color:black; font-weight:bold;"/>
<af:outputText value="Plan Details" id="outputText1"
inlineStyle="color:rgb(8, 160, 205); font-weight:bold; font-size:14px;"/>
<af:separator id="separator2" inlineStyle="color:black;"/>
<af:panelGroupLayout id="pgl3" layout="vertical"
inlineStyle="width:366px;">
<af:outputText value="Plan Details & Premium Calculation "
id="outputText2"
inlineStyle="font-weight:bold; color:black;"/>
<af:spacer width="10" height="10" id="s3"/>
<af:outputText value="This section contains policy specific details "
id="ot3" inlineStyle="color:black;"/>
</af:panelGroupLayout>
<af:panelBox id="panelBox2"
inlineStyle="width:315px; height:163px; border-color:#c4f2fc; border-style:solid; border-width:thin;"
text=" " showHeader="never">
<af:panelGroupLayout id="pgl15"
inlineStyle="height:149px; background:#c4f2fc none repeat scroll 0% 0%; width:301px;"
layout="vertical" valign="middle">
<af:spacer width="10" height="10" id="s57"/>
<af:panelGroupLayout id="pgl33" layout="horizontal"
inlineStyle="width:269px;">
<af:spacer width="26" height="10" id="spacer208"/>
<af:outputText value="Policy Period" id="outputText230"
inlineStyle="font-size:12px; font-weight:bold; color:black;"/>
<af:selectOneChoice label="Policy Period(Years)" id="soc4"
contentStyle="width:130px;height:20px;"
value="1" autoSubmit="true" simple="true">
<af:selectItem label="1" value="1" id="si12"/>
<af:selectItem label="2" value="2" id="si11"/>
</af:selectOneChoice>
</af:panelGroupLayout>
<af:spacer width="10" height="10" id="s58"/>
<af:panelGroupLayout id="pgl13" layout="horizontal"
inlineStyle="width:280px;">
<af:spacer width="40" height="10" id="s56"/>
<af:outputText value="Start Date" id="ot13"
inlineStyle="font-size:12px; font-weight:bold; color:black;"/>
<af:inputDate label="Start Date "
id="inputText8"
contentStyle="width:120px;height:20px;"
minValue="2014-01-06" autoSubmit="true"
simple="true"/>
</af:panelGroupLayout>
<af:spacer width="10" height="10" id="spacer209"/>
<af:panelGroupLayout id="pgl14" layout="horizontal">
<af:spacer width="50" height="10" id="spacer207"/>
<af:outputText value="End Date" id="outputText229"
inlineStyle="font-size:12px; font-weight:bold; color:black;"/>
<af:spacer width="10" height="10" id="spacer210"/>
<af:inputDate label="End Date "
id="inputText12"
contentStyle="width:120px;height:20px;"
disabled="true" simple="true"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</af:panelBox>
<af:spacer width="10" height="10" id="s20"/>
<af:separator id="separator7" inlineStyle="color:black;"/>
<af:panelGroupLayout id="pgl11" layout="horizontal"
inlineStyle="width:913px;">
<af:outputText value="Insured Details" id="outputText18"
inlineStyle="color:rgb(8, 160, 205); font-weight:bold; font-size:14px;"/>
<af:spacer width="586" height="10" id="s21"/>
<af:commandLink id="commandLink1">
<af:image source="/images/addinsured.jpg"
shortDesc="Add Insured Details" id="image1"/>
</af:commandLink>
<af:commandLink id="cl1">
<af:image source="/images/delete.jpg" shortDesc="Delete Insured"
id="i1"/>
</af:commandLink>
</af:panelGroupLayout>
<af:separator id="separator8" inlineStyle="color:black;"/>
<af:forEach begin="1" end="2">
<af:panelGroupLayout id="pgl9" layout="horizontal"
inlineStyle="width:953px; height:539px; border-color:#c4f2fc; border-style:solid; border-width:thin;">
<af:spacer width="11" height="10" id="s11"/>
<af:panelGridLayout id="pgl4"
inlineStyle="background-color:#c4f2fc; width:500px; border-color:white; border-style:solid; border-width:2px;">
<af:gridRow marginTop="5px" height="20px" id="gr1">
<af:gridCell marginStart="1px" width="150px" id="gc4"
halign="center">
<af:outputText value="Name" id="ot4"
inlineStyle="color:black; font-weight:bold;"/>
</af:gridCell>
<af:gridCell marginStart="1px" width="70px" id="gc16"
halign="center">
<af:outputText value="Gender" id="outputText3"
inlineStyle="color:black; font-weight:bold;"/>
</af:gridCell>
<af:gridCell marginStart="1px" width="100px" id="gc9"
halign="center">
<af:panelGroupLayout id="pgl8" layout="vertical">
<af:outputText value="Relationship to" id="outputText4"
noWrap="true"
inlineStyle="color:black; font-weight:bold;"/>
<af:outputText value="Proposer" id="outputText16"
noWrap="true"
inlineStyle="color:black; font-weight:bold;"/>
</af:panelGroupLayout>
</af:gridCell>
<af:gridCell marginStart="1px" width="90px" id="gc7"
halign="center">
<af:outputText value="Date of Birth" id="outputText5"
inlineStyle="color:black; font-weight:bold;"/>
</af:gridCell>
<af:gridCell marginStart="1px" width="80px" id="gc14"
halign="center">
<af:outputText value="Occupation" id="outputText6"
inlineStyle="color:black; font-weight:bold;"/>
</af:gridCell>
<af:gridCell marginStart="1px" width="170px" id="gc11"
halign="center">
<af:outputText value="Pre existing illness"
id="outputText7"
inlineStyle="color:black; font-weight:bold;"/>
</af:gridCell>
<af:gridCell marginStart="1px" width="140px" id="gc13"
halign="center">
<af:outputText value="Sum Insured" id="outputText8"
inlineStyle="color:black; font-weight:bold;"/>
</af:gridCell>
<af:gridCell marginStart="1px" marginEnd="1px" width="40px"
id="gc15">
<af:outputText value="Hospital Cash" id="outputText9"
inlineStyle="color:black; font-weight:bold;"/>
</af:gridCell>
</af:gridRow>
<af:gridRow marginTop="2px" marginBottom="2px" height="500px"
id="gr2">
<af:gridCell marginStart="1px" width="100px" id="gc6">
<af:spacer width="10" height="130" id="spacer2"/>
<af:inputText id="it3" contentStyle="width:90px;"
label=" "/>
</af:gridCell>
<af:gridCell marginStart="1px" width="70px" id="gc1"
halign="center">
<af:spacer width="10" height="130" id="s5"/>
<af:selectOneChoice id="soc2" label=" ">
<af:selectItem label="Male" value="m" id="si3"/>
<af:selectItem label="Female" value="f" id="si2"/>
</af:selectOneChoice>
</af:gridCell>
<af:gridCell marginStart="1px" width="90px" id="gc2">
<af:spacer width="10" height="130" id="spacer1"/>
<af:selectOneChoice id="selectOneChoice2" label=" "
contentStyle="width:80px;">
<f:selectItems id="selectItems5"/>
</af:selectOneChoice>
</af:gridCell>
<af:gridCell marginStart="1px" width="130px" id="gc10">
<af:spacer width="10" height="130" id="spacer3"/>
<af:inputDate id="id1" contentStyle="width:90px;"
label=" "/>
</af:gridCell>
<af:gridCell marginStart="1px" width="120px" id="gc8"
halign="start">
<af:spacer width="10" height="130" id="spacer4"/>
<af:selectOneChoice id="soc3" contentStyle="width:100px;"
label=" ">
<f:selectItems id="si6"/>
</af:selectOneChoice>
</af:gridCell>
<af:gridCell marginStart="1px" width="140px" id="gc3"
halign="center">
<af:panelGroupLayout id="pgl5" layout="vertical"
inlineStyle="width:144px;"
halign="center">
<af:inputText label="Label 4" id="it4" simple="true"
columns="15"/>
<af:spacer width="10" height="30" id="s7"/>
<af:panelGroupLayout id="pgl6"
inlineStyle="width:133px; background-color:white;"
layout="vertical">
<af:panelGroupLayout id="pgl7" layout="horizontal">
<af:spacer width="10" height="10" id="s6"/>
<af:outputText value="Specific Illness" id="ot5"
inlineStyle="font-weight:bold; color:#c4f2fc;"/>
</af:panelGroupLayout>
<af:outputText value="Cancer :" id="ot6"
inlineStyle="color:black; font-weight:bold;"/>
<af:spacer width="10" height="05" id="s16"/>
<af:selectOneRadio id="sor1" layout="horizontal"
contentStyle="font-weight:bold"
label=" ">
<af:selectItem label="Yes" value="1" id="si4"/>
<af:selectItem label="No" value="0" id="si5"/>
</af:selectOneRadio>
<af:separator id="s8" inlineStyle="color:black;"/>
<af:outputText value="Chronic Kidney"
id="outputText17"
inlineStyle="color:black; font-weight:bold;"/>
<af:outputText value="Dieseases :" id="ot7"
inlineStyle="color:black; font-weight:bold;"/>
<af:spacer width="10" height="05" id="s15"/>
<af:selectOneRadio id="selectOneRadio1"
layout="horizontal"
contentStyle="font-weight:bold"
label=" ">
<af:selectItem label="Yes" value="1"
id="selectItem10"/>
<af:selectItem label="No" value="0"
id="selectItem11"/>
</af:selectOneRadio>
<af:separator id="separator3"
inlineStyle="color:black;"/>
<af:spacer width="10" height="10" id="s9"/>
<af:outputText value="Heart Dieseases :" id="ot8"
inlineStyle="color:black; font-weight:bold;"/>
<af:spacer width="10" height="05" id="s14"/>
<af:selectOneRadio id="selectOneRadio2"
layout="horizontal"
contentStyle="font-weight:bold"
label=" ">
<af:selectItem label="Yes" value="1"
id="selectItem12"/>
<af:selectItem label="No" value="0"
id="selectItem13"/>
</af:selectOneRadio>
<af:separator id="separator4"
inlineStyle="color:black;"/>
<af:spacer width="10" height="10" id="s10"/>
<af:outputText value="Phychiatric Disorders :"
id="ot9"
inlineStyle="color:black; font-weight:bold;"/>
<af:spacer width="10" height="05" id="s13"/>
<af:selectOneRadio id="selectOneRadio3"
layout="horizontal"
contentStyle="font-weight:bold"
label=" ">
<af:selectItem label="Yes" value="1"
id="selectItem14"/>
<af:selectItem label="No" value="0"
id="selectItem15"/>
</af:selectOneRadio>
<af:separator id="separator5"
inlineStyle="color:black;"/>
<af:spacer width="10" height="10" id="s12"/>
<af:outputText value="Have you been taking" id="ot10"
noWrap="true"
inlineStyle="color:black; font-weight:bold;"
truncateAt="20"/>
<af:outputText value="drugs/Medicines "
id="outputText10" noWrap="true"
inlineStyle="color:black; font-weight:bold;"
truncateAt="20"/>
<af:outputText value="regularly during the"
id="outputText11" noWrap="true"
inlineStyle="color:black; font-weight:bold;"
truncateAt="20"/>
<af:outputText value="last 1 year for any"
id="outputText12" noWrap="true"
inlineStyle="color:black; font-weight:bold;"
truncateAt="20"/>
<af:outputText value="disease/illness (other "
id="outputText13" noWrap="true"
inlineStyle="color:black; font-weight:bold;"
truncateAt="20"/>
<af:outputText value="than Hypertension / "
id="outputText14" noWrap="true"
inlineStyle="color:black; font-weight:bold;"
truncateAt="20"/>
<af:outputText value="Diabetes/Hypothyroidism) :"
id="outputText15" noWrap="true"
inlineStyle="color:black; font-weight:bold;"
truncateAt="20"/>
<af:spacer width="10" height="05" id="s17"/>
<af:selectOneRadio id="selectOneRadio4"
layout="horizontal"
contentStyle="font-weight:bold"
label=" ">
<af:selectItem label="Yes" value="1"
id="selectItem16"/>
<af:selectItem label="No" value="0"
id="selectItem17"/>
</af:selectOneRadio>
<af:separator id="separator6"
inlineStyle="color:black;"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</af:gridCell>
<af:gridCell marginStart="1px" width="1px" id="gc5"
halign="center">
<af:spacer width="10" height="130" id="spacer5"/>
<af:selectOneChoice id="selectOneChoice37"
contentStyle="width:100px;"
label=" ">
<f:selectItems id="selectItems4"/>
</af:selectOneChoice>
</af:gridCell>
<af:gridCell marginStart="1px" marginEnd="1px" width="40px"
id="gc12">
<af:spacer width="10" height="130" id="spacer6"/>
<af:selectBooleanCheckbox id="sbc1" label=" "/>
</af:gridCell>
</af:gridRow>
</af:panelGridLayout>
</af:panelGroupLayout>
</af:forEach>
<af:spacer width="10" height="10" id="s23"/>
<af:separator id="s22" inlineStyle="height:0.5px; color:gray;"/>
<af:panelGroupLayout id="panelGroupLayout45"
inlineStyle="width:929px; background-color:#c4f2fc;"
rendered="false">
<af:panelGroupLayout id="panelGroupLayout46" layout="horizontal">
<af:outputText value="Social Status :" id="outputText62"
inlineStyle="font-weight:bold; color:black;"/>
<af:selectOneRadio id="selectOneRadio25" layout="horizontal"
contentStyle="font-weight:bold" value="N"
autoSubmit="true" label=" ">
<af:selectItem label="Yes" value="Y" id="selectItem69"/>
<af:selectItem label="No" value="N" id="selectItem70"/>
</af:selectOneRadio>
<af:popup id="popup2">
<af:dialog id="dialog2" type="none" title=" ">
<af:panelGroupLayout id="panelGroupLayout47"
layout="horizontal"
inlineStyle="width:321px; height:31px;">
<af:outputText value="For more details on how to categorize the policy, Please click"
id="outputText63"/>
<af:goLink text="here" id="goLink2" targetFrame="_blank"
destination="http://retail.starhealth.in/assets/pdf/SocailStatusExplanation.xls"/>
</af:panelGroupLayout>
</af:dialog>
</af:popup>
</af:panelGroupLayout>
<af:outputText value='Please choose "Yes" in case of BPL families, Disabled Persons etc, Persons working in UnOrganized/Informal Sectors ( '
id="outputText64"
inlineStyle="font-weight:bold; color:black;"/>
<af:outputText value="? )" id="outputText65"
inlineStyle="font-weight:bold;">
<af:showPopupBehavior popupId="popup2" triggerType="mouseOver"
align="beforeEnd"/>
</af:outputText>
<af:panelList id="panelList2" partialTriggers="selectOneRadio25">
<af:panelGroupLayout id="panelGroupLayout48"
layout="horizontal">
<af:outputText value='Please choose "Yes", if you are working in UnOrganized Sector'
id="outputText66"
inlineStyle="font-weight:bold;"/>
<af:selectOneRadio id="selectOneRadio26" layout="horizontal"
contentStyle="font-weight:bold" value="N"
label=" ">
<af:selectItem label="Yes" value="Y" id="selectItem109"/>
<af:selectItem label="No" value="N" id="selectItem110"/>
</af:selectOneRadio>
</af:panelGroupLayout>
<af:panelGroupLayout id="panelGroupLayout49"
layout="horizontal">
<af:outputText value='Please choose "Yes", if you live below the poverty line (BPL) '
id="outputText67"
inlineStyle="font-weight:bold;"/>
<af:selectOneRadio id="selectOneRadio27" layout="horizontal"
contentStyle="font-weight:bold" value="N"
label=" ">
<af:selectItem label="Yes" value="Y" id="selectItem111"/>
<af:selectItem label="No" value="N" id="selectItem112"/>
</af:selectOneRadio>
</af:panelGroupLayout>
<af:panelGroupLayout id="panelGroupLayout50"
layout="horizontal">
<af:outputText value='Please choose "Yes", if you are Physically Handicaped/Disabled '
id="outputText68"
inlineStyle="font-weight:bold;"/>
<af:selectOneRadio id="selectOneRadio28" layout="horizontal"
contentStyle="font-weight:bold" value="N"
label=" ">
<af:selectItem label="Yes" value="Y" id="selectItem113"/>
<af:selectItem label="No" value="N" id="selectItem114"/>
</af:selectOneRadio>
</af:panelGroupLayout>
<af:panelGroupLayout id="panelGroupLayout51"
layout="horizontal">
<af:outputText value='Please choose "Yes", if you are working in Informal Sector'
id="outputText69"
inlineStyle="font-weight:bold;"/>
<af:selectOneRadio id="selectOneRadio29" layout="horizontal"
contentStyle="font-weight:bold" value="N"
label=" ">
<af:selectItem label="Yes" value="Y" id="selectItem115"/>
<af:selectItem label="No" value="N" id="selectItem116"/>
</af:selectOneRadio>
</af:panelGroupLayout>
</af:panelList>
</af:panelGroupLayout>
<af:separator id="s24" inlineStyle="color:Gray;" rendered="false"/>
<af:spacer width="10" height="10" id="s25" rendered="false"/>
<af:separator id="separator9"
inlineStyle="height:0.5px; color:gray;"
rendered="false"/>
</af:panelFormLayout>
if you drag and drop create insert operation from data control for add image link u just change it to normal image link and create a method in the backing bean like
vo.createrow();
vo.insertrow();
vo.executequery();
enter code here
then u will get a empty record and enter the details and save.
I am getting the following exception for a client that is accessing data from service that is hosting a wcf in windows service.
Event Log at Client:
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 1026
Date: 10/18/2011
Time: 3:32:20 PM
User: N/A
Computer: PAVAN-A259DD4E8
Description:
Application: WorkMateWPF.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ServiceModel.Security.SecurityNegotiationException
Stack:
Server stack trace:
at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty& remoteSecurity)
at System.ServiceModel.Channels.StreamSecurityUpgradeInitiatorBase.InitiateUpgrade(Stream stream)
at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection& connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)
at WorkMateWPF.ServiceLogins.IWCFLogin.Authentication(WorkMateLib.LoginsDLL.Login)
at WorkMateWPF.ServiceLogins.WCFLoginClient.Authentication(WorkMateLib.LoginsDLL.Login)
at WorkMateWPF.Login.LoginButton1_Click(System.Object, System.Windows.RoutedEventArgs)
at WorkMateWPF.Login.Grid1_KeyDown(System.Object, System.Windows.Input.KeyEventArgs)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawKeyboardActions, Int32, Boolean, Boolean, Int32)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(System.Windows.Interop.MSG ByRef, Boolean ByRef)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(System.Windows.Interop.MSG ByRef, System.Windows.Input.ModifierKeys)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority, System.Delegate, System.Object)
at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(System.Windows.Interop.MSG ByRef, Boolean ByRef)
at System.Windows.Interop.HwndSource+WeakEventPreprocessMessage.OnPreprocessMessage(System.Windows.Interop.MSG ByRef, Boolean ByRef)
at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at System.Windows.Application.Run()
at WorkMateWPF.Application.Main()
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Following is the app file for windows service:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="WorkMateWCF.My.MySettings.workmateConnectionString"
connectionString="Data Source=pavan-pc1;Initial Catalog=WorkMate;Persist Security Info=True;User ID=SA;Password=surpavan"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service name="WorkMateWCF.WCFLogin">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="WorkMateWCF.IWCFLogin">
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://10.1.1.1:8732/WCFLogin" />
</baseAddresses>
</host>
</service>
<service name="WorkMateWCF.WCFCourses">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="WorkMateWCF.IWCFCourses">
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://10.1.1.1:8732/WCFCourses" />
</baseAddresses>
</host>
</service>
<service name="WorkMateWCF.WCFStudent">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="WorkMateWCF.IWCFStudent">
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://10.1.1.1:8732/WCFStudents" />
</baseAddresses>
</host>
</service>
<service name="WorkMateWCF.WCFBatchImport">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="WorkMateWCF.IWCFBatchImport">
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://10.1.1.1:8732/WCFBatchImports" />
</baseAddresses>
</host>
</service>
<service name="WorkMateWCF.WCFFaculty">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="WorkMateWCF.IWCFFaculty">
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://10.1.1.1:8732/WCFFaculty" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Following is the app file for the client:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="WorkMateWPF.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_IWCFBatchImport" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
<binding name="NetTcpBinding_IWCFCourses" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
<binding name="NetTcpBinding_IWCFFaculty" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
<binding name="NetTcpBinding_IWCFLogin" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10000"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
<binding name="NetTcpBinding_IWCFStudent" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://10.1.1.1:8732/WCFBatchImports"
binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IWCFBatchImport"
contract="ServiceBatchImports.IWCFBatchImport" name="NetTcpBinding_IWCFBatchImport">
</endpoint>
<endpoint address="net.tcp://10.1.1.1:8732/WCFCourses" binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_IWCFCourses" contract="ServiceCourses.IWCFCourses"
name="NetTcpBinding_IWCFCourses">
</endpoint>
<endpoint address="net.tcp://10.1.1.1:8732/WCFFaculty" binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_IWCFFaculty" contract="ServiceFaculty.IWCFFaculty"
name="NetTcpBinding_IWCFFaculty">
</endpoint>
<endpoint address="net.tcp://10.1.1.1:8732/WCFLogin" binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_IWCFLogin" contract="ServiceLogins.IWCFLogin"
name="NetTcpBinding_IWCFLogin">
</endpoint>
<endpoint address="net.tcp://10.1.1.1:8732/WCFStudents" binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_IWCFStudent" contract="ServiceStudents.IWCFStudent"
name="NetTcpBinding_IWCFStudent">
</endpoint>
</client>
</system.serviceModel>
<userSettings>
<WorkMateWPF.MySettings>
<setting name="Test" serializeAs="String">
<value />
</setting>
</WorkMateWPF.MySettings>
</userSettings>
</configuration>
Looking forward for you help. Thank you.