Thank you Mark!
I actually came close. I was working on it yesterday and got it to work using the code below:-
var viewPanel:com.ibm.xsp.component.xp.XspViewPanel = getComponent('viewPanel1');
var dominoView:com.ibm.xsp.model.domino.DominoViewData = viewPanel.getData();
dominoView.setSearch(viewScope.searchCustomerNo);
var searchView:notesView = dominoView.getView();
var vc:notesViewEntryCollection = searchView.getAllEntries();
vc.FTSearch(viewScope.searchCustomerNo,0);
if (vc.getCount() == 1){
var vDoc:NotesViewEntry = vc.getFirstEntry();
if (vDoc != null){
var firstDoc:notesDocument = vDoc.getDocument();
<put code here for the firstDoc>
}
}
Thanks again!