I haven't used the relation tree for a while, I've been using the Multi
Child Relation tree template recently.
It has a few faults but it's been working well.
Using that theres a NewSelection routine that you can put code into.
The relation tree might be similar, since I think the MCR is built from
the relationTree
Sean H
On 19/3/19 11:43 pm,
[email protected] wrote:
I am still struggling with tree views in Clarion.
I have two files I would like to combine. The primary file is a list of vessels (sea) and the secondary file is a list of voyages for each vessel. This is an ordinary one to many relationships.
I would like to have the vessels and the related voyages in the treeview control.
In addition I would like to have the voyages in a related browse box.
I have made a local variable containing the id for a vessel as well.
The idea is that when a vessel or a voyage is selected in the tree, the local variable will be updated with the id of the vessel. The browsebox would be set up so that any changes in the local variable would reset the browsebox.
The problem is that there seems to only an eventhandler that files when the nodes are opened or closed. Nothing happens when a node is selected.
I have tried using an embed for copying the vesselid to the local variable using the selected embed point, but nothing happens.
Any ideas?
--------------------
Another matter with regard to the two treeview controls in Clarion 11. The standard treecontrol displays the fields for the primary and secondary controls just fine.
But because of extra functionality I decided to try the SVMultiChildRelationTree control template. This has the availability of hotfields etc, which I think can help with what I am trying to do.
But I cannot figure out the control. I have selected the vessel file for the primary file and the voyages file. For the vessel field to display I use clip(Shi:Name) and for the child file I use clip(VOYAGE:Voyage_No) vessel for the field description.
It seems the nodes in the tree works find, with primary nodes and child nodes the the right number. But the strange result is that nothing of the field content is shown. For instance no vessel names and no voyagenumbers. This works fine in the standard
template, but with this template what is will display is clip(Shi:Name) for each vessel node, and clip?(VOYAGE:Voyage_No) for each voyage node.
Have any other had the same results, or is it something I am missing with this template?
Thanks in advance for your response.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)