Transformation menu availability in child nodes
1.I have created a language for School. It has two concepts.
- School (Root concept)
- Student
2.School will have Students as its children.
3.I have created an intention("Show School Name") for the school concept, which will show the name of the school in JOptionPane (available in child nodes: true).
4.I have created a context action tool for the same "Show School Name" using Transformation menu.
5.We are able to access the intention from both School node and Student node.
6.But unlike intentions, transformations menus are not available in the child nodes(Student node in our case).
7.Is there any way to make the transformation menu options available in children nodes??
Please sign in to leave a comment.
Dear Nandha1712,
First of all, you don't need to specify exact menu in this case, just leave it "default menu"
Secondly, you can get ancestor of student except getting parent.
Finally, to prevent the node cast exception, you can create group to check, whether there is the ancestor of concept school.
Please take a look at the attach
We can try including School's transformation menu inside the default transformation menu of the student.
But when i create another root concept called 'ClassRoom' (containing Student as its children), again a problem will arise (NodeCastException). Intentions handle this situation very easily with its "available in child nodes" option. Is there any way to do the same in transformation menu?
Hi Semen Alperovich,
Thank you. This solved my problem :)