Stuart,
Depending on the version and build of R:BASE you are using, you could
easily achieve your goal by using the following PROPERTY/GETPROPERTY
commands in R:BASE X Enterprise (Version 10):
FindNextNode
Call FindNextNode after FindNode. So the sequence is FindNode ->
FindNextNode -> FindNextNode -> FindNextNode -> FindNextNode...
FindNextNode is like pressing F3 after FindNode
-- Example:
PROPERTY DBTreeView FindNextNode ' '
RETURN
To re-build the DB Tree:
-- Example:
SET VAR vID TEXT = NULL
-- Get the current selected node
GETPROPERTY DBTreeView SelectedID '.vID'
-- Refresh the Tree
PROPERTY DBTreeView REBUILDTREE ' '
-- Set the selection to the previously saved ID
PROPERTY DBTreeView SelectedID '.vID'
RETURN
Here's a comprehensive list of DB Tree View PROPERTY/GETPROPERTY commands ...
. FindNode (PROPERTY)
. FindNextNode (PROPERTY)
. FindPathNode (PROPERTY)
. SelectedID (PROPERTY/GETPROPERTY)
. SelectedText (GETPROPERTY)
. SelectedLevel (GETPROPERTY)
. ParentIDOfSelected (GETPROPERTY)
. RebuildTree (PROPERTY)
. RootID (GETPROPERTY)
. ExpandAllItems (PROPERTY)
. CollapseAllItems (PROPERTY)
Have fun!
Very Best R:egards,
Razzak
At 05:45 PM 2/3/2017, Stuart Hellman wrote:
I've been racking my brain over this one for a while. Would
appreciate any and all help.
Using a DB TreeView control, I am trying to highlight/position a
specific node within the tree. I know my logic is good that gets me
the node ID that I want. However when I refresh the table/control,
the incorrect text is highlighted.
Here's what is happening:
Level click here
Level 2
Level 3
Level 2
Level 3 highlight here (know the node ID)
I select "Level 1" in the control. I determine the node ID of Level
3 and want that node to be highlighted. I've used the FINDNODE
property, but due redundant text, the first occurrence of the text
is highlighted. The other idea attempted is to use the FINDPATHNODE
property. The path name passed to the property is correct, but the
last item that I selected (in this case "Level 1") is highlighted
not the "level 3" node.
Probably missing something, just don't know what.
Thanks in advance for your advice.
--
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.