hsuzuki

How can I write parent-child elements with the AF SDK

Discussion created by hsuzuki on Aug 31, 2010
Latest reply on Aug 31, 2010 by andreas

I can use the one AF elements and attributes like below (i.e. I define the element and attribute like "CB001 -> ADICT01"). Now I would like to use parent-child elements. How can I write parent-child elements with AF SDK, if I define the elements and attribute like "AA001 -> CB001 -> ADICT01"?

' Search the Elements Collection
Dim MaxCount AsInteger = 100
Try
    Dim afAttributeList As AFAttributeList = AFAttribute.FindElementAttributes(myDB, Nothing, "CB*", Nothing, Nothing, Nothing, "*DICT*", Nothing, Nothing, True, AFSortField.Name, AFSortOrder.Descending, MaxCount)
    Dim myAttribute As AFAttribute
    ForEach myAttribute In afAttributeList
        Debug.Print("AFAttribute.Name[" & myAttribute.Name & "]")
        Debug.Print("Element.Name[" & myAttribute.Element.Name & "]")
    Next
Catch ex As Exception
    Debug.Print(ex.ToString)
    MessageBox.Show(ex.ToString)
EndTry

 

 

 

Hiroyuki Suzuki

 

 

Outcomes