Documents created with this form are meant to store template files.
Ordinarily, views containing documents like this are hidden. However, we exposed this view so you could see how we accessed each template file. (You hide a view by inclosing its name in parentheses.)
When you create a Customer document, the file attached below is detached (to a path) and then embedded in the customer document. After the file is embedded, it is deleted from the path. This insures that any time a Customer document is created, the most current file is embedded.
Open the Customer form and examine the Postopen event and
DetachTemplateWorksheet sub to see how this works.
123temp.123
123temp.123
O=Lotus
O=Lotus
PURSAFO
O=Lotus
OU=CAM/O=Lotus
PURSAFO
OU=CAM/O=Lotus
CN=David Folk/OU=CAM/O=Lotus
PURSAFO
ODe;o
123temp.123
l machine.
ssion
Dim D
As NotesView
Started running agent 'Print Letters' on 03/06/96 11:04:46 AM
Running on selected documents: 1 total
Found 1 document(s) that match search criteria
ERROR: LotusScript did not run to completion.
Ran LotusScript code
Done running agent 'Print Letters' on 03/06/96 11:08:44 AM
Set TemplateDocument = view.GetNextDocument(TemplateDocument)
Wend
End If
End Sub
'++LotusScript Development Environment:2:2:Initialize:1:10
Sub Initialize
End Sub
'++LotusScript Development Environment:2:2:Queryopen:1:12
Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
End Sub
#-l #}
0S0E
Subject:
Subject
Body:
0S0E
Documents created with this form are meant to store template files.
Ordinarily, views containing documents like this are hidden. However, we exposed this view so you could see how we accessed each template file. (You hide a view by inclosing its name in parentheses.)
MillCorp.MWP
MillCorp.MWP
Notes Product Development
)I^-.
PURSAF
Lotus Development Inc
0wmS(
PURSAF
O=Lotus
O=Lotus
PURSAFO
O=Lotus
OU=CAM/O=Lotus
PURSAFO
OU=CAM/O=Lotus
CN=David Folk/OU=CAM/O=Lotus
PURSAFO
!Oj,U
,9IZ8
MillCorp.MWP"
David
"Arial
Total:
"Arial
Lotus 1-2-3 97 Workbook
123Native97
Lotus123.Workbook.97
David Folk
David Folk/CAM/Lotus
Lotus Chart
STG48267
STG27094
STG52451
STG15421
STG38262
STG30303
STG51720
STG02609
"MS Sans Serif
Total:
"MS Sans Serif
Lotus 1-2-3 97 Workbook
123Native97
Lotus123.Workbook.97
David Folk
David Folk/CAM/Lotus
Lotus Chart
Cancel
PORTVALUE
Chart 4
Chart 2
#,I|j
I?h&[
,Z.Sr
=J$5"
I?h&[
Vr$=
5~yBF
jm]{m
LaE8vz
r$A\3
Arial
>".Z+
]eYd9
z2223Y
OFFFFk
Arial
PORTVALUE
'Total:
CellValueChange
CellContentsChange
5Courier New
Sell stock dialog'++LotusScript Development Environment:2:5:(Options):0:66
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Sub Postopen(Source As Notesuidocument)
Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
'++LotusScript Development Environment:2:5:(Declarations):0:2
'++LotusScript Development Environment:2:2:BindEvents:1:129
Private Sub BindEvents(Byval Objectname_ As String)
Static Source As NOTESUIDOCUMENT
Set Source = Bind(Objectname_)
On Event Postopen From Source Call Postopen
On Event Queryclose From Source Call Queryclose
End Sub
'++LotusScript Development Environment:2:2:Postopen:1:12
Sub Postopen(Source As Notesuidocument)
Call Source.FieldSetText( "NumberShares", "" )
End Sub
'++LotusScript Development Environment:2:2:Queryclose:1:12
Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Documents created with this form are meant to store template files.
Ordinarily, views containing documents like this are hidden. However, we exposed this view so you could see how we accessed each template file. (You hide a view by inclosing its name in parentheses.)
Temp.lwp
Temp.lwp
Notes Product Development
)I^-.
PURSAF
Lotus Development Inc
0wmS(
PURSAF
O=Lotus
O=Lotus
PURSAFO
O=Lotus
OU=CAM/O=Lotus
PURSAFO
OU=CAM/O=Lotus
CN=David Folk/OU=CAM/O=Lotus
PURSAFO
!Oj,U
Temp.lwp"
eiZ])4
JM&s6Wj
oz Fu
W4Eo5
rQo5.K
&EnL%O
?F+tB
/V+rXS
n+Rp~
K].hY
LL,bdV
ei!`R
W8+X!9
_z_z^
z6 U=
Q/TK^
#G4l@
0y,wEyz
:6 U=
wLyz+
Q.}0]&
6+azX
\wK?:$
/~On3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
f[;NeD
~:'EI
_@4?G
b>bC&+
Ui:W*>_
b>k">
',yy'gj8
%_hv?
rJgmH
h$rG$qkm
! =`;
cEU)]
PORTVALUE
B:C8..B:C100
B:F8..B:F100
B:F8..B:F9
Cancel
PORTVALUE
Chart 4
Chart 2
David Folk#############
David Folk#############
David Folk#############
David Folk#############
David Folk#############
David Folk#############
David Folk#############
David Folk#############
David Folk#############
David Folk#############
David Folk#############
David Folk#############
ox=G)r
David Folk#############
@=fBx
David Folk#############
David Folk#############
[_jwI
David Folk#############
David Folk#############
David Folk#############
David Folk#############
"Arial
Total:
"Arial
Lotus 1-2-3 97 Workbook
123Native97
Lotus123.Workbook.97
David Folk
David Folk/CAM/Lotus
Lotus Chart
"MS Sans Serif
Total:
"MS Sans Serif
EXT56076
Lotus 1-2-3 97 Workbook
123Native97
Lotus123.Workbook.97
David Folk
David Folk/CAM/Lotus
Lotus Chart
Arial
Arial
PORTVALUE
'Total:
'BJICA
'2/3/97 11:23:35 AM
'2/3/97 11:22:21 AM
'BJICA
'2/3/97 11:22:40 AM
'2/3/97 11:22:49 AM
'2/3/97 11:23:06 AM
'2/3/97 11:23:22 AM
'2/3/97 11:23:35 AM
CellValueChange
CellContentsChange
PORTVALUE
B:C8..B:C100
B:F8..B:F100
B:F8..B:F9
Cancel
PORTVALUE
Cancel
PORTVALUE
Chart 4
Chart 2
ol from Quote. For example,
' if Quote were "IBM @ 123.8" it would return "IBM".
' Hence, the following line sets the global variable
' Ticker to the ticker in the Quote:
Ticker = GetTicker (Quote)
' The global function GetCurrentPrice returns the
' current price for a given Ticker. First, it
' iterates through documents in the database view
' Companies\By Ticker until it finds one with a
' Ticker field whose contents matches the passed
' argument Ticker. Then, it reads the CurrentValue
' field for the document containing the matching
' ticker.
Price = GetCurrentPrice (Ticker)
' Set the global variable BlockOfShares to the value