This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WaterObjects.NET How to get fieldcollection / List of fields for a domain element?

Dear Yashodhan & Jesse,

    I am trying to get list of field names for a specific domain element e.g. Junction , in WaterObjects.NET. But I am unable to get correct results. In the following code, dset.FieldManager loop 

    is not fetching any results.

Dim dset As IdahoDomainDataSet = adataSource.DomainDataSetManager.DomainDataSet(1)

For Each dataSetType As IDomainDataSetType In adataSource.SupportedDataSetTypes()

   For Each domainElementType As IDomainElementType In dataSetType.DomainElementTypes()
      MessageBox.Show(domainElementType.Name)
      For Each field As IField In dset.FieldManager.DomainElementFields(domainElementType.Id) 'Not fetching any results
            MessageBox.Show(field.Name)
      Next

   Next
Next

    I also tried using SupportedFields and SupportedResultFields on DomainElementManager. Though it is fetching field names, the list is not complete. Like for Junction, it is not showing HGL.

Regards,

Devashri