|
RelateOne |
|
package Selection;
import j4d.open.*;
class Examplet {
/* doRelateOne make a selection on the target table
/ in this sample, first, we search in the table 1 and field 5 the record(s) where
/ the value is equal to 3.
/ Then, we activate the link onto the table 2
*/
public void doRelateOne(opProcess process) throws opException {
opSelection mSelection = new opSelection();
try{
opSearchArray mSearch = new opSearchArray(1);
opData mData = new opData(INTEGER,3);
mSearch.mSearchArray[0] = new opSearch(NONE, 1, 5, EQUAL, mData);
mSelection = process.Search(mSearch);
process.RelateOne(new opTable(1), new opTable(2));
}
catch (opException er){throw er;}
}
}
|
RelateOne |
|