This content has been marked as final. Show 2 replies
It is generally not advisable to get children by IDs. Doing so requires determination of information that is not known without querying the CZ schema, and that is rarely necessary, as you typically at least know the name of the node to which you're trying to navigate. You can use the following to get the Component:
IRuntimeNode compo = rootNode.getChildByName("SLSCNX1000");
I don't know exactly what you mean by "loop through"; I assume you intend to iterate through that Component's "Sales Options", which I take to be Option Features. To get a List of all of the Component's Option Features, you'd use:
Hope this helps.
Thanks it helped me i implemented it this way.
IRuntimeNode compo = irn.getChildByName(componentname);
List czItemNode =compo.getChildrenByType(IRuntimeNode.OPTION_FEATURE);
ListIterator Oclist = czItemNode.listIterator();
IRuntimeNode nodeTemp = (IRuntimeNode) Oclist.next();
// Added for gettings tokens
String country = getModelOptions(irn);
InformationalMessage iMsg3 = new InformationalMessage((new StringBuilder("getCountrySelected---->")).append(country).toString(), irn);
StringTokenizer st = new StringTokenizer(country, ".");
Thanks a Lot :)