1. Standard method replacing replicaid in form using dxl.
2. Advanced method using forms, frameset and embedded editor.
You have 2 databases, form1 (db1) and view1 (db2) which should be displayed. How to make it without composite applications and DXL tools?
Simply:
1. Create frameset1 in db1 with 2 frames, Top and Bottom. Make top frame 1 Pixel height.
2. Create empty form in db1, let's call it Form1Embed, set it to open in frameset1 Top frame.
3. Create form or page in db2, let's call it Form2Embed. Add embedded view1 to this form. Then add simple code in postopen:
dim ws as new notesuiworkspace
dim uidoc as notesuidocument
set uidoc=ws.currentdocument
'// fill some field with universal id of uidoc.document, then set single category from this field for view1
What this code do? the uidoc we get is parent document (form1).
3. Embed Form1Embed in form1 through embedded editor.
4. In frameset1 Bottom frame compute db2 path and our created element Form2Embed (that Form2Embed could be opened)
Now what happeps when you open form1?
1. form1 is loaded
2. Embedded editor loaded for form1embed, lotus opens this form in frameset1 top frame, which is not visible. Then computes Bottom frame with our form2embed from db2, which on load gets form1 document and uses it unid as single category key.
Showing posts with label lotus. Show all posts
Showing posts with label lotus. Show all posts
Saturday, 10 April 2010
Tuesday, 17 November 2009
Lotus Notes Outline tricks
Here are some tricks switching selected outline entry in embedded outlines:
1. We need for outline entries to define aliases, that could be used for referencing
2. For embedded outline should be defined name attribute (ex. "MyOutline").
3. To select required outline entry programmaticly it is required to set field "$MyOutline" ($ should be used as prefix for fields - full syntax "$"+OurDefinedOutlineName) value in opened document (to which embedded outline belongs) to outlineentry alias name (ex. "myDocs") and then doc should be refreshed, to apply entry selection.
P.S. @now there are problems to select outline entry just after form load, only using timer.
1. We need for outline entries to define aliases, that could be used for referencing
2. For embedded outline should be defined name attribute (ex. "MyOutline").
3. To select required outline entry programmaticly it is required to set field "$MyOutline" ($ should be used as prefix for fields - full syntax "$"+OurDefinedOutlineName) value in opened document (to which embedded outline belongs) to outlineentry alias name (ex. "myDocs") and then doc should be refreshed, to apply entry selection.
P.S. @now there are problems to select outline entry just after form load, only using timer.
Friday, 16 October 2009
How to add computed custom control to XPAGE at runtime
Very simple technique:
You need to know, that "include page" control could include not only page elements, but also custom control elements, but you should write then by Your hands.
So @1st create a repeater on page.
Then add include page control in repeater.
As repeater values set array of controls to add ex. ["ccontrol1.xsp", "ccontrol2.xsp",...]
use those values to compute page.
You need to know, that "include page" control could include not only page elements, but also custom control elements, but you should write then by Your hands.
So @1st create a repeater on page.
Then add include page control in repeater.
As repeater values set array of controls to add ex. ["ccontrol1.xsp", "ccontrol2.xsp",...]
use those values to compute page.
Subscribe to:
Posts (Atom)