|Correct use EModelService.findElements? [message #734179]
||Thu, 06 October 2011 23:43
| Missing name Missing name
Registered: September 2011
I must be misunderstanding something basic about how to properly use EModelService.|
I'm trying to find a menu in my model from within a handler. I can find it by traversing the model down from the application, but findElements says the menu doesn't exist. Here's my code:
assert "view" == ((MTrimmedWindow)application.getChildren().get(0)).getChildren().get(1).getElementId();
assert modelService.findElements(application, "view", null, null).isEmpty();
The first method works. My model has a trimmed window with a main menu with two menus. I'm trying to get the second one with id "view".
The second method fails. I've also tried searching by class.
Obviously I'm doing something wrong but I can't see what.
Powered by FUDForum
. Page generated in 0.01964 seconds