Welcome! Log In Create A New Profile

Advanced

[WD16] Select / Unselect the underlayingTreeview-Nodes with the checkmark of the parent node

Posted by Michael Drechsel 
Hi,

this is a recursiv function to select/unselect a node and his children with the checkmark feature of the wd16 treeview.

Call the function in the treeview "whenever modified" event with the full path of the current node. I think that must be a built in function in future releases of WD.

---------------------------------------------------------------------------------------------------------------



PROCEDURE Treeview_click_auswerten(sNode is string="")

bStatus is boolean=TREE_Gesamtstruktur[sNode]..Checked
sChild, sChildPath is string

sChild=TreeGiveChild(TREE_Gesamtstruktur,sNode,tvFirst)

IF sChild="" THEN
RESULT ""
ELSE
sChildPath=sNode+TAB+sChild
TREE_Gesamtstruktur[sChildPath]..Checked=bStatus
Treeview_click_auswerten(sChildPath)
END

WHILE sChild<>""
sChild=TreeGiveChild(TREE_Gesamtstruktur,sNode,tvNext)
IF sChild="" THEN
Treeview_click_auswerten(sChildPath)
ELSE
sChildPath=sNode+TAB+sChild
TREE_Gesamtstruktur[sChildPath]..Checked=bStatus
Treeview_click_auswerten(sChildPath)
END

END
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: