I have simple requirement : My application contain 2 MParts. One MPart contains list of IDs displayed in TreeView from Database. By clicking on any ID, another MPart should populate/display data related to slected ID (from DB) in TableView.
I written, 1st MPart and it is displaying IDs in TreeView. On click capturing user selected ID and retrieved data related to that ID from DB. Using EPartService, i got reference of 2nd MPart. But not able to modify its TableView. (initially, i populated this TableView with empty rows. default). Basically I am trying to modify 2nd Mpart from 1st Mpart.
I am beginner, tried all related posts available in the net. Please point me right direction
When you have the
MPartfor the table view you can callgetObject()to get your view class:where
MyTableViewis the class you defined for the view part in the Application.e4xmi.Note: If the part has not yet been shown the object will be null. Use
EPartService.showPartto show the part and create the object.