@Translate@<:s><:#284,11250>' Text to be translated is tagged with a translate paragraph style. Only the text in "" should be converted
@Subhead@<:s><:#284,11250>
@Subhead@<:s><:#284,11250>'Builder defines
@Translate@<:#568,11250>Define Text_Upload "Copy an existing document into the Document Sharing Application. The document will be copied from the local file system and placed into the Notes database."
@Translate@<:#568,11250>Define Text_NewTemplate "For use by the database administrator. Create a new workgroup template based on an existing document or Ami Pro style sheet. "
@Main Macro@<:s><:#284,11250>
@Subhead@<:s><:#284,11250>' Copy document to Notes instructions
@Translate@<:#284,11250>Define CopyNotes_Caption "Copy Document to Notes"
@Comment@' This should be executed if the document is embedded into a notes form see footnore below<:F
@Footnote@The FX field __FxMacro will automatically run a macro when the document is OLE launched from notes. Therefore, "AmiFx.smm!FxLaunch()" should be in the __FXMacro field. To investigate this field, open the dochare.nsf database and open the document form i
' Setup the document to be compatible with the docshare database. see info
<:F
@Footnote@The Docshare.nsf transfers the document name through a field in Ami Pro's document info. The field should be renameed docname. To rename this field manually, select File - Doc Info, Other Fields..., and then Rename Fields. With Ami Pro 3.1, the field nam
es travel with the document. The database transfers the remark through the description field of Ami Pro's doc info.
>
<:#284,11250>IgnoreKeyBoard(2)
<:#284,11250>' Rename user field1 to "docname"
<:#284,11250>RenameDocInfoField(0,Field1Name)
<:#284,11250>' Set the document name into the user field1 and
<:#284,11250>Dim Field(8)
<:#284,11250>For t =2 to 8
<:#284,11250> Field(t) = GetDocInfo$(t + 7)
<:#284,11250>Next
<:#284,11250>' Put the docname into the first user defined field - the field has been rename to "docname"
@Footnote@Callbacks are triggered events linked to macro dialog boxes. They are set using the SetDlgCallBack macro command. The callback routine is mainly used to grey items in a dialog box or set the box into a specific state before it is actually displayed.
>
routine for the box that will display if this not a new document and we are launched from Notes
<:#568,11250>PalVga = "FxPalVga.dll" ' dll to hold bitmaps that will display on the icon bar. Edit this dll with a resource editor to explore/change the icons
0 3 "Fontdlg received an invalid parameter {0}" "Ami Pro"
6 3
15
9
14 Builder
0 802
13
8 3
0 31 21 1
0 31 30 1
0 31 1000 "Copy an existing document into the Document Sharing Application. The document will be copied from the local file system and placed into the Notes database."
0 31 1001 "For use by the database administrator. Create a new workgroup template based on an existing document or Ami Pro style sheet. "
0 41 0 "Dlg_Builder"
0 41 21 "Dlg_Builder"
0 41 22 "Dlg_Builder"
0 271 "HelpPanelGlobalVar" 1
0 264 "HelpPanelGlobalVar" 5000
0 47 112 "{3}!HelpFunction"
16 FontDlg 1 0 0
0 26 "." "CreateDoc"
13
8 4
16 FontDlg 4 0 0
0 266 "HelpPanelGlobalVar"
6 4
5 1
18 1
11 00000660
5 -1
15
9
0 27 30
13
11 00000696
5 1
8 1
0 27 31
13
11 00000732
5 1
8 2
0 27 21
13
11 00000781
5 1
8 5
10 00000791
5 2
8 5
5 1
6 5
18 0
11 00000868
16 CopyDocToDataBase
10 00000970
10 00000970
5 2
6 5
18 0
11 00000957
16 CreateNewTemplate "{1}" "{2}"
10 00000970
10 00000970
5 -1
15
9
6 0
15
9
14 Dlg_Builder
7 ""
6 1
18 0
11 00000313
16 FontDlg 3 "{0}" 21
16 FontDlg 3 "{0}" 22
16 FontDlg 3 "{0}" 1000
16 FontDlg 3 "{0}" 1001
16 FontDlg 3 "{0}" 30
16 FontDlg 3 "{0}" 31
0 44 "{0}" 30
13
0 284 "User,EnableWindow,AHH" [X] 0
0 44 "{0}" 31
13
0 284 "User,EnableWindow,AHH" [X] 0
10 00000610
5 21
6 1
18 0
11 00000468
0 44 "{0}" 30
13
0 284 "User,EnableWindow,AHH" [X] 0
0 44 "{0}" 31
13
0 284 "User,EnableWindow,AHH" [X] 0
10 00000610
5 22
6 1
18 0
11 00000610
0 44 "{0}" 30
13
0 284 "User,EnableWindow,AHH" [X] 1
0 44 "{0}" 31
13
0 284 "User,EnableWindow,AHH" [X] 1
6 2
15
9
14 CopyDocToDataBase
0 1050
13
5 1
18 5
11 00000128
0 286 "AmiPro" "DefStyle" "AmiPro.Ini"
13
8 1
2 101 1 "{1}" 1 512
0 2 "Copy the current document into the database"
13
11 00000209
10 00000260
24 102
13
11 00000247
10 00000260
5 -1
15
9
16 CopyToClipboard
13
11 00000310
10 00000323
5 -1
15
9
2 125 1 0 "DocName"
0 802
13
8 2
5 3
21 3 [X]
5 1
7 "Select a Document Sharing Database on the Notes desktop"
23 3
5 2
7 "Select Compose - Administration - Copy Document to database"
23 3
5 3
7 "Choose Paste Document "
23 3
7 "{2}!PasteDocToNotes"
8 4
0 271 "HelpPanelGlobalVar" 1
0 264 "HelpPanelGlobalVar" 5001
0 47 112 "{2}!HelpFunction"
16 MacroLib.smm!FloatingNotesInstructions &3 "Copy Document to Notes" "Paste Document" "{4}"
0 266 "HelpPanelGlobalVar"
6 0
15
9
14 CopyToClipBoard
19 00000387
0 23
13
7 ""
18 1
11 00000126
0 6 "[20519]"
16 CleanCopy
13
11 00000126
5 1
15
9
0 1289 "NumChars"
13
8 1
6 1
5 1
18 5
11 00000250
0 6 " "
0 6 "[20516]"
16 CleanCopy
13
11 00000250
5 1
15
9
0 7 "Please highlight several characters of text and click resume"
16 CleanCopy
13
11 00000374
5 1
15
9
10 00000387
10 00000250
5 -1
15
9
6 0
15
9
14 setappfocus
0 271 "lotusapphwnd" 1
0 265 "lotusapphwnd"
13
0 284 "user,SetFocus,HH" [X]
6 0
15
9
14 CleanCopy
0 1313 217 24 154
13
11 00000100
2 154 1
13
11 00000100
0 6 "[27]"
5 1
15
9
6 0
15
9
14 PasteDocToNotes
16 setappfocus
0 36 "[12357]S"
0 36 "B[12357][13]"
6 3
15
9
14 CreateNewTemplate
0 802
13
8 3
7 "Create New Template"
8 4
6 0
5 1
18 0
11 00000289
0 285 "{3}!AmiButtonCheck(25550, 0)" 0.1
0 285 "{3}!AmiUIGray(25550, 0)" 0.1
0 285 "{3}!AmiTitleBar(""{4}"")" 0.1
0 274 004
24 101
13
11 00000263
10 00000276
5 -1
15
9
10 00000525
0 1050
13
5 1
18 5
11 00000395
0 286 "AmiPro" "DefStyle" "AmiPro.Ini"
13
8 5
2 101 1 "{5}" 1 512
0 2 "Base the template on the current document"
13
11 00000474
10 00000525
24 102
13
11 00000512
10 00000525
5 -1
15
9
16 GetFields
6 1
5 1
18 0
11 00000673
0 268
13
8 6
0 772
13
0 807 [X] 5
13
0 16 "{6}" "fx" [X] ".sam"
13
8 7
2 104 1 "{7}" 32 "" ""
16 CopyToClipBoard
13
8 8
6 8
5 -1
18 0
11 00000745
5 -1
15
9
2 125 1 0 "DocName"
5 3
21 9 [X]
5 1
7 "Select a Document Sharing Database on the Notes desktop"
23 9
5 2
7 "Select Compose - Administration - New Document Template"
23 9
5 3
7 "Position the cursor in the template field - Choose Paste Template"