Appendix B. Sample code 545
{
window.open("/II4CProject/ViewObject.jsp?PID="+fpid,"_blank","toolbar=0,scrollb
ars=0,location=0,statusbar=1,menubar=0,resizable=1,width=500,height=670");
return false;
}
</Script>
</HEAD>
<BODY>
<P>Retrieving and Viewing items of type plots.</P>
<!-- BEGINNING OF CODE -->
<%
DKDatastoreICM dsICM = new DKDatastoreICM();
// Create new datastore object.
dsICM.connect("LSDB","LSADMIN","lspasswd","");
// Connect to the datastore.
%>
retrieving plots
<br>
Connected to datastore <%=dsICM.datastoreName()%> UserName
<%=dsICM.userName()%><br>
<%
String query = "( /BP_PLOT )";
System.out.println(" Query: "+query);
// Specify Search / Query Options
DKNVPair options[] = new DKNVPair[3];
options[0] = new DKNVPair(DKConstant.DK_CM_PARM_MAX_RES ...