Display Notes content embedded in any SWT control in the Notes Client


//NotesSashControl is located in plugin com.ibm.notes.client
import com.ibm.workplace.noteswc.swt.NotesSashControl;

//Notes url for the data to be displayed (e.g. a document, view, form or database):
String notesUrl="notes:///names.nsf";

//parentComposite is the parent element in the SWT layout where the Notes control should be inserted
NotesSashControl ctrl = new NotesSashControl(parentComposite, 0, notesUrl, 999, new Hashtable());

//use this code later to close the Notes content and dispose allocated resources:
ctrl.closeControl();
ctrl.dispose();
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...