Can you please let me know how to get the child node which is defined as a Component in my model structure. I could able to get the top node of the Model structure, but facing difficulty in getting the Component node. This CX i am launching it from front end.
I tried with the below, but no luck.
IRuntimeNode compo = rootNode.getChildByID(modelId);
and also with
IRuntimeNode compo = rootNode.getChildByPersistentID(15420);
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:
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:
// Added for gettings tokens
String country = getModelOptions(irn);
InformationalMessage iMsg3 = new InformationalMessage((new StringBuilder("getCountrySelected---->")).append(country).toString(), irn);
StringTokenizer st = new StringTokenizer(country, ".");