What do I need to import to get the handle on the ViewGrid in java?
I'm trying to do the following :
import org.openntf.xsp.viewgrid
public String[] getViewGridSelectedIds(String
IdOfViewPanel) {
try {
org.openntf.xsp.viewgrid
MyViewGrid = null;
// set the ID for later reference if needed
this.ViewPanelId = IdOfViewPanel;
if (!Utils.isStringEmpty(IdOfViewPanel))
{
// try to get from the current page?
MyViewGrid =
(org.openntf.xsp.viewgrid)
Utils.findComponent(IdOfViewPanel);
}
if (MyViewGrid
!= null)
{
return MyViewGrid.getSelection(true);
} else {
return null;
}
} catch (Exception ex) {
Utils.WriteToConsole("Unable
to get the selected Note Ids from the DynamicViewPanel
(com.jacobs.JPI.PageObject.PageControls.getViewPanelSelectedIds)",
ex);
return null;
}
}