on 12-21-2007 10:27 AM
Hello,
have the following Context Node:
IncidentHeader
--descript
--event
--type
Collection Cardinality of IncidentHeader is 1..1. How can I create in the Outline-View a tree exacly like the Context Node. I tried it like this:
Tree (dataSource: IncidentHeader)
--TreeNode (dataSource: IncidentHeader)
--TreeItem1(dataSource: IncidentHeader, text: IncidentHeader.descript)
--TreeItem2(dataSource: IncidentHeader, text: IncidentHeader.event)
--TreeItem3(dataSource: IncidentHeader, text: IncidentHeader.type)
But it shows only one node with the text of the TreeItem3.
Regards,
Armin
Hi,
Change the cardinality of node IncidentHeader to 0..n
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you really need a tree for this?
You could use a recursive context structure like
TreeNode (node, 0:N)
- text (string)
- Children (recursion node -> TreeNode)
with 4 node elements v0, v0.Children.0, v0.Children.1, v0.Children.2
v0.text = "IncidentHeader"
v0.Children.0.text = <description>
v0.Children.1.text = <event>
v0.Children.2.text = <type>
and data binding
Tree.dataSource = TreeNode
TreeNodeType.dataSource = TreeNode
TreeNodeType.text = TreeNode.text
But I doubt that's what you want
Armin
If the cardinality is 1:1 there exists only one element in that node. Then what should the tree display?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.