I have created a type that inherits from cm: object to save a list of fruits, I create a node of this type (for example an apple) and I add it as a son of CompanyHome
nodeService.createNode (CompanyHome, "banana", "my: fruit")
According to the documentation CompanyHome is the primary father then:
- How could your primary parent change to a node?
- Is it ok to add the node to companyHome? since the type "my: fruit" is used for a combobox and logically it should not have a parent node since it is for the whole system but the createNode method requires a parent.
- How can I make a transaction within a WebScript function without using <transaction> required </ transaction>
Thank you very much in advance