I have bottom top tree with N nodes. What can I do to insert with the correct hierarchy? There is some exceptions when you manipulate the elements without be in a collection. There is someway to allow the elements to be changed without a collection?
I'm not completely sure what you mean for a bottom top tree. Could you provide a little more detail? Maybe an image of your desired structure would help. When building an AF structure, we recommend first using AF templates to build the framework of elements and the relationships between them. You can learn more about AF templates from this video: http://www.youtube.com/watch?v=VYWXctstVg0
Let me know if that helps!
I'm using AFSDK(C#) to build the AFDatabase hierarchy. Bottom-top tree is the way that I use to insert the Elements in the database as if were the nodes of the tree. Each element in the tree, has many or none childelements. However I don't know if I'm using correctly, because everytime I've tried to insert an element in the database occurs many exceptions when the element is manipulated, like the 'Element has to be in a Collection'. What is the best way to manipulate this elements without this issues?
Sample code would definitely help us understand what is going wrong. I posted two lines using a top down approach that creates a new element at the root of the database, and then a child element called "Child Element". Note, the AFElements.Add method has many overloads.
If possible, create element templates and then build your AF structure using these templates. Our Vcampus community might be a great place to post this question as there are many posts on using the AF SDK and it is the best place to post coding questions.
Thanks for the answer the question. I'll ask in VCampus forum too, but I'll try to build the structure using templates. Thanks again!
Retrieving data ...