Showing results for 
Search instead for 
Do you mean 

Select root with 'Selection Manager'

Hey guys,


i need help with the selectionManager. Currently the code does only support selecting children but not the root / assembly.

E.g we have a simple structure like this:

  |- child
  |- child 1

The user can only click on child and child 1, if he clicks on root nothing happens.

Maybe someone can help me ? Smiley Happy


Here the code - written in Java:

final Selection selectionManager = ui.selectionManager();
    final SelectTaggedObjectData selectObject = selectionManager.selectTaggedObject("",
                                                                                    true, false);

    final Response response = selectObject.response;
    if ((response.equals(Response.OBJECT_SELECTED)) || (response.equals(Response.OBJECT_SELECTED_BY_NAME)))
      return (NXObject) selectObject.object;

    return null;