Hi,
how can i get the parent of a node element at a TreeGrid (with getSelectedPaths() i only get a formated field with the ids i cannot split (Pattern errors), with a other function i only get al List Grid Record Object (getSelectedRecord()). Thank you for your help,
greets RBS2002
Edit:
OK, i - found it out ;) - but i must say it is much to tricky for such important function :p
how can i get the parent of a node element at a TreeGrid (with getSelectedPaths() i only get a formated field with the ids i cannot split (Pattern errors), with a other function i only get al List Grid Record Object (getSelectedRecord()). Thank you for your help,
greets RBS2002
Edit:
OK, i - found it out ;) - but i must say it is much to tricky for such important function :p
Code:
TreeNode node = (TreeNode) faqbaum.getSelectedRecord(); if (!node.getAttribute("ReportsTo").equals("1")) { String kategorie = faqbaum.getData().getParent(node) .getAttributeAsString("Name"); String title = faqbaum.getSelectedRecord() .getAttributeAsString("Name");