Zakaroonikov
05-27-2007, 06:22 PM
Just a couple of comments/questions. Everything in there looks great. I have looked at a previous incarnation of the code DWT and added a couple of features. I am not sure if these ideas would be useful in your code.
1. the UIView class I split up so it could also be used to get a Ext.View representation of a ReadViewEntries (an option in the init routine to create a grid or view). That way I could use Ext's builtin View.Template merging to format notes views in a non-grid format.
To create a grid I broke it down into 3 steps (1. Setup domino view (your init2), 2. Get View Data Store (first 20 lines of your createGrid), 3. create Grid (the last bit of your createGrid)).
To perform the View.Template merge I use steps 1 & 2 like the grid but then call a new Ext.View() on the newly created datastore with a some stored HTML.
2. Adapt the layout to use a ReaderLayout instead of the borderLayout so that you could instead use a preview pane like a normal Notes application. When you single click on an item in the grid it appears in the preview pane. When you double click it opens in a new tab (like this alpha does now).
1. the UIView class I split up so it could also be used to get a Ext.View representation of a ReadViewEntries (an option in the init routine to create a grid or view). That way I could use Ext's builtin View.Template merging to format notes views in a non-grid format.
To create a grid I broke it down into 3 steps (1. Setup domino view (your init2), 2. Get View Data Store (first 20 lines of your createGrid), 3. create Grid (the last bit of your createGrid)).
To perform the View.Template merge I use steps 1 & 2 like the grid but then call a new Ext.View() on the newly created datastore with a some stored HTML.
2. Adapt the layout to use a ReaderLayout instead of the borderLayout so that you could instead use a preview pane like a normal Notes application. When you single click on an item in the grid it appears in the preview pane. When you double click it opens in a new tab (like this alpha does now).