Subversion Repositories DevTools

Rev

Rev 6579 | Rev 6827 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
129 ghuddy 1
<!-- #INCLUDE FILE="..\common\adovbs.inc" -->
119 ghuddy 2
<%
3
'=============================================================
4
'//
127 ghuddy 5
'//                  Action Button Control
119 ghuddy 6
'//
7
'=============================================================
8
%>
9
<%
10
'--------------- Global Constants ----------------
11
Const enumABTNCTRL_ON_READONLY_HIDE = 1
12
Const enumABTNCTRL_ON_READONLY_DISABLE = 2
13
'-------------------------------------------------
14
 
15
Class ActionButtonControl
127 ghuddy 16
 
17
   Private mArrAbtnDef()
18
   Private mobjNameDefMap        ' Item can be accesed by name. Must be unique within one page
19
   Private mobjIdDefMap          ' Item can be accesed by id. Must be unique within one page. If NULL, ubound is assigned to it
20
   Private mobjSeparator         ' Has a name of item after separator is applied
21
   Private mobjACActionsMap      ' Map of buttons to actions from access control
22
 
23
   Private mnButtonSpacer
24
   Private mnImageHspace
25
 
26
   Private mNumOfProperties
27
   Private mLastPropertyInx
28
 
29
   Private mbDisableAll
30
 
31
   Private mbIsReadonly
4083 dpurdie 32
   Private mbIsClosed
127 ghuddy 33
   Private mReadonlyActionBehaviour
34
 
35
   Private InxID
36
   Private InxName
37
   Private InxTxt
38
   Private InxLink
39
   Private InxEventHandler
40
   Private InxImg
41
   Private InxImgOff
42
   Private InxHint
43
   Private InxVisible
44
   Private InxActive
45
   Private InxIsReadonlyAction
4083 dpurdie 46
   Private InxHideOnClosed
127 ghuddy 47
 
48
 
49
   Public Property Let AllActive ( cActive )
50
      If cActive = enumDB_NO Then
51
         mbDisableAll = TRUE
52
      Else
53
         mbDisableAll = FALSE
54
      End If
55
 
56
   End Property
57
 
58
   Public Property Let ButtonSpacer ( nWidth )
59
      mnButtonSpacer = nWidth
60
   End Property
61
 
62
   Public Property Let ImageHspace ( nWidth )
63
      mnImageHspace = nWidth
64
   End Property
65
 
66
   Public Property Let IsReadonlyAction ( IsReadonly )
67
      If IsReadonly = enumDB_YES Then
68
         mbIsReadonly = TRUE
69
 
70
      ElseIf IsReadonly = enumDB_NO Then
71
         mbIsReadonly = FALSE
72
      Else
73
         mbIsReadonly = IsReadonly
74
      End If
4083 dpurdie 75
   End Property
127 ghuddy 76
 
4083 dpurdie 77
   Public Property Let setClosed ( isClosed )
78
      mbIsClosed = isClosed
127 ghuddy 79
   End Property
4083 dpurdie 80
 
127 ghuddy 81
   Public Property Let ReadonlyActionBehaviour ( nEnum )
82
      mReadonlyActionBehaviour = nEnum
83
   End Property
84
 
85
   '-----------------------------------------------------------------------------------------------------------------
86
   Public Sub SetRelationship ( sButtonName, sActionName )
87
      Call mobjACActionsMap.Add ( sButtonName, sActionName )
88
   End Sub
89
   '-----------------------------------------------------------------------------------------------------------------
90
   Private Sub SetItemPropertyByIndex ( nInx, nProperty, Value )
91
      If nInx = "" Then Exit Sub   ' Exit sub if you don't find defined button
92
 
93
      If nProperty = ""  OR  Value = "" Then Err.Raise 8, "Method SetItemPropertyByIndex", "Empty parameters found. nInx="& nInx &", nProperty="& nProperty &", Value="& Value
94
 
95
      mArrAbtnDef ( nProperty, nInx ) = Value
96
 
97
      'Response.write "mArrAbtnDef ( "& nProperty &", "& nInx &" ) = "& Value &"<br>"
98
   End Sub
99
   '-----------------------------------------------------------------------------------------------------------------
143 ghuddy 100
   Private Function GetItemPropertyByIndex ( nInx, nProperty )
101
      GetItemPropertyByIndex = ""
102
      If nInx = "" Then Exit Function   ' Exit sub if you don't find defined button
103
 
104
      If nProperty = ""  Then Err.Raise 8, "Method GetItemPropertyByIndex", "Empty parameters found. nInx="& nInx &", nProperty="& nProperty
105
 
106
      GetItemPropertyByIndex = Cstr(mArrAbtnDef ( nProperty, nInx ))
107
   End Function
108
   '-----------------------------------------------------------------------------------------------------------------
127 ghuddy 109
   Private Function LastItemInx ()
110
       LastItemInx = UBound ( mArrAbtnDef, 2 )
111
   End Function
112
   '-----------------------------------------------------------------------------------------------------------------
113
   Public Sub AddActionButton ( sItemName, nItemID )
114
      Dim newArrayDim
115
 
116
      If InStr( sItemName, " " ) > 0 Then   Err.Raise 8, "Method AddActionButton", "Item Name '"& sItemName &"' cannot have spaces."
117
 
118
 
119
 
120
      If NOT mobjNameDefMap.Exists (CStr( sItemName )) Then
121
 
122
         newArrayDim = LastItemInx() + 1
123
 
124
         ReDim Preserve mArrAbtnDef( mNumOfProperties, newArrayDim )
125
 
126
         ' Store name
127
         Call SetItemPropertyByIndex ( newArrayDim, InxName, sItemName )
128
         mobjNameDefMap.Add Cstr( sItemName ), CStr( newArrayDim )
129
 
130
         If Not IsNull(nItemID) Then
131
            ' Store ID
132
            Call SetItemPropertyByIndex ( newArrayDim, InxdbID, nItemID )
133
            mobjIdDefMap.Add Cstr( nItemID ), CStr( newArrayDim )
134
         End If
135
 
136
         ' Set Defaults
137
         Call SetItemDefaults ( sItemName )
138
      Else
139
 
140
         Err.Raise 8, "Method AddActionButton", "Item Name '"& sItemName &"' has been already defined."
141
 
142
      End If
143
 
144
   End Sub
145
   '-----------------------------------------------------------------------------------------------------------------
146
   Public Sub Render ( aAbtnList, ByRef oAccessControl )
147
      Dim itemInx, itemName, nLastItemInx, btnImage, ButtonStr, ButtonStrDisabled, bIsVisibleAC, bIsActiveAC
148
      Response.write "<table cellpadding='0' cellspacing='0' width='1'><tr>"
149
 
150
      For Each itemName in aAbtnList
151
         itemInx = mobjNameDefMap.Item (Cstr(itemName))
152
 
153
         '-- Define Image
154
         btnImage = "<img src='images/spacer.gif' width='"& mnButtonSpacer &"' height='1' align='absmiddle' border='0'>"
155
         If (mArrAbtnDef( InxImg, itemInx ) <> "") Then
156
            btnImage = "<img src='"& mArrAbtnDef( InxImg, itemInx ) &"' hspace='"& mnImageHspace &"' border='0' align='absmiddle'>"
157
         End If
158
 
159
         '-- Define Button
5190 dpurdie 160
         '-- Two forms
161
         '--    Starts with "vixConfirm - Generate confirmation dialog with url
162
         '--    Else 'eval' and use in raw form
163
         Dim uhref,uevent
164
         uhref = Eval( mArrAbtnDef( InxLink, itemInx ) )
165
         uevent = Eval( mArrAbtnDef( InxEventHandler, itemInx ) )
166
         If InStr( uevent, "vixConfirm" ) = 1 Then
167
            uevent = Replace(uevent, "HREF", uhref )
168
            uevent = "onclick=""" & uevent & """"
169
            uhref = "javascript:;"
170
         End If
6176 dpurdie 171
         Dim hint: hint = mArrAbtnDef( InxHint, itemInx ) 
127 ghuddy 172
         ButtonStr = _
173
            "<td nowrap>"&_
174
            "<a id='"& mArrAbtnDef( InxName, itemInx ) &"' "&_
5190 dpurdie 175
            " name='"& mArrAbtnDef( InxName, itemInx ) &"' href='"& uhref &"' "&_
6176 dpurdie 176
            " "& uevent &" class='menu_link' title='"& hint &"'>"&_
127 ghuddy 177
            btnImage & mArrAbtnDef( InxTxt, itemInx ) &"</a>"&_
178
            "</td>"
179
 
5814 dpurdie 180
			'-- Define Disabled Button
181
            '   A Null value of '' will use InxImg with the lessOpacity Class
6176 dpurdie 182
            hint = hint & " [Disabled]" 
5814 dpurdie 183
            If IsNull(mArrAbtnDef( InxImgOff, itemInx )) Then
184
                ButtonStrDisabled = _
185
                    "<td nowrap>"&_
6176 dpurdie 186
                    "<img src='"& mArrAbtnDef( InxImg, itemInx ) &"' hspace='2' border='0' align='absmiddle' class='lessOpacity' title='"&hint&"'>"&_
5814 dpurdie 187
                    "<label class='menu_txt'>"& mArrAbtnDef( InxTxt, itemInx ) &"</label>"&_
188
                    "</td>"
189
            Else
190
                ButtonStrDisabled = _
191
                    "<td nowrap>"&_
6176 dpurdie 192
                    "<img src='"& mArrAbtnDef( InxImgOff, itemInx ) &"' hspace='2' border='0' align='absmiddle' title='"&hint&"'>"&_
5814 dpurdie 193
                    "<label class='menu_txt'>"& mArrAbtnDef( InxTxt, itemInx ) &"</label>"&_
194
                    "</td>"
195
            End If
127 ghuddy 196
 
197
 
198
         '-- Get Access Control permissions --
199
         bIsVisibleAC = TRUE
200
         bIsActiveAC = TRUE
201
         If NOT IsNull( oAccessControl ) Then
202
            ' Access control object is supplied
203
 
204
            If mobjACActionsMap.Exists ( itemName ) Then
205
               ' Relationship supplied
206
               bIsVisibleAC = oAccessControl.IsVisible ( mobjACActionsMap.Item( itemName ) )
207
               bIsActiveAC = oAccessControl.IsActive ( mobjACActionsMap.Item( itemName ) )
143 ghuddy 208
               'Response.write "<br>" & itemName &":"& bIsVisibleAC &"-"& bIsActiveAC
127 ghuddy 209
            End If
210
 
211
         End If
212
 
4670 dpurdie 213
         ' Hide Buttons on closed (Release is closed, or archived)
4083 dpurdie 214
         If mbIsClosed AND (mArrAbtnDef( InxHideOnClosed, itemInx ) = enumDB_YES) Then
215
            bIsVisibleAC = FALSE
216
         End If
127 ghuddy 217
 
4670 dpurdie 218
         ' Debug
219
         'Response.write "<br>Render["&itemInx &"](V:"&itemName &","&_
220
         '   mArrAbtnDef( InxVisible, itemInx )&":" &bIsVisibleAC & ",A:"&_
221
         '   mArrAbtnDef( InxActive, itemInx ) &":" &bIsActiveAC  & ")"
222
 
223
         ' Button 
224
         '      is visible AND to be shown
225
         ' OR   isa width specification
226
         ' OR   isa height specification
227
         '
127 ghuddy 228
         If (  ( mArrAbtnDef( InxVisible, itemInx ) = enumDB_YES)   AND   bIsVisibleAC   ) _
229
            OR  (InStr( itemName, "width=" ) > 0)  _
230
            OR  (InStr( itemName, "height=" ) > 0) Then
231
            ' --- Display if Visible ---
232
 
233
            'AND  (NOT bIsActiveAC)
234
            '( mbDisableAll OR (  mArrAbtnDef( InxActive, itemInx ) = enumDB_NO )     )   AND ( itemInx <> "" )
235
            'Response.write itemName &":"& mbDisableAll &"-"& Eval( mArrAbtnDef( InxActive, itemInx ) = enumDB_NO ) &"-"& Eval( NOT bIsActiveAC ) &"-"& itemInx &"<br>"
236
            If  ( itemInx <> "" ) AND _
237
               ( mbDisableAll  OR _
238
                  (  ( mArrAbtnDef( InxActive, itemInx ) = enumDB_NO )  OR  (NOT bIsActiveAC)  ) _
239
               ) _
240
            Then
143 ghuddy 241
               'Response.Write "<br>"&itemName&" is disabled," & itemInx & "," & mbDisableAll & "," & mArrAbtnDef( InxActive, itemInx ) & "," & mArrAbtnDef( InxVisible, itemInx )
127 ghuddy 242
 
243
               ' --- Display DISABLED Button Item ---
244
               Response.write ButtonStrDisabled
245
 
246
               If mnButtonSpacer > 0 Then
247
                  Response.write "<td><img src='images/spacer.gif' width='"& mnButtonSpacer &"' height='1' align='absmiddle'></td>"
248
               End If
249
 
250
            Else
251
 
252
               ' --- Display Action Button Item ---
253
               If   ( NOT mbIsReadonly )  OR _
254
                     ( mbIsReadonly  AND  mArrAbtnDef( InxIsReadonlyAction, itemInx ) = enumDB_YES ) Then
255
 
256
                  If InStr( itemName, "width=" ) > 0 Then
257
                     Response.write "<td><img src='images/spacer.gif' "& itemName &" height='1' align='absmiddle'></td>"
258
 
259
                  ElseIf InStr( itemName, "height=" ) > 0 Then
260
                     Response.write "<td><img src='images/bg_bage_2.gif' width='1' "& itemName &" align='absmiddle' hspace='4'></td>"
261
 
262
                  Else
263
                     '/* It is a button, i.e. Display Button */
264
 
265
                     ' Check if button is loaded from Database
266
                     If itemInx = "" Then    Err.Raise 8, "Method Render", "Definition for item name '"& itemName &"' not found."
267
 
268
                     Response.write ButtonStr
143 ghuddy 269
                     'Response.Write "<br>"&itemName&" is enabled"
127 ghuddy 270
 
271
                     If mnButtonSpacer > 0 Then
272
                        Response.write "<td><img src='images/spacer.gif' width='"& mnButtonSpacer &"' height='1' align='absmiddle'></td>"
273
                     End If
274
 
275
                  End If
276
 
277
               ElseIf ( mbIsReadonly  AND  mArrAbtnDef( InxIsReadonlyAction, itemInx ) = enumDB_NO ) Then
278
 
279
                  If mReadonlyActionBehaviour = enumABTNCTRL_ON_READONLY_DISABLE Then
280
                     Response.write ButtonStrDisabled
281
                  End If
282
 
283
               End If
284
 
285
            End If
286
 
287
         End If
288
 
289
         ' --- Separators added manually using  method AddSeparator or AddSeparatorAfter ---
290
         If mobjSeparator.Exists ( Cstr(mArrAbtnDef( InxName, itemInx )) ) Then
291
            Response.write "<td><img src='images/spacer.gif' width='"& mobjSeparator.Item ( Cstr(mArrAbtnDef( InxName, itemInx )) ) &"' height='1'></td>"
292
         End If
293
 
294
 
295
      Next
296
 
297
      Response.write "</tr></table>"
298
   End Sub
143 ghuddy 299
   '-----------------------------------------------------------------------------------------------------------------
127 ghuddy 300
   ' Return true if required_abtnName is one of the strings in the aAbtnList string array, else return false
301
   Private Function isAbtnRequired (aAbtnList, required_abtnName)
302
      Dim this_abtnName
303
 
304
      isAbtnRequired = FALSE
305
 
306
      For Each this_abtnName in aAbtnList
307
         If 0 = StrComp(this_abtnName, required_abtnName) Then
308
            isAbtnRequired = TRUE
309
            Exit Function
310
         End If
311
      Next
312
   End Function
313
   '-----------------------------------------------------------------------------------------------------------------
314
   Public Sub LoadActionButtons ( aAbtnList, ByRef objOraDatabase )
315
 
316
      ' The following code is now used in place of the earlier code to acquire action button records.
317
      '
318
      ' This code exploits the fact that in ADO 2.8 onwards, you can create ADO DB record sets
319
      ' without a connection to an actual database. So, to rid ourselves of the need for a DEF_ACTION_BUTTONS
320
      ' table in the database, we can simply take all of the table's rows and reproduce them here in row
321
      ' creation and field assignment statements. The rest of the website code will be ignorant of the fact
322
      ' that the data has not come from the actual database.
323
      '
324
      ' Complicating factors:
325
      ' 1) Some action button fields (action_link and event_handler) are to be EVAL'ed later on when used
326
      '    to render the HTML page. This can lead to some very complex looking strings that are difficult to
327
      '    understand. EVAL allows things like parRtag_id used in a string to be converted to an actual
328
      '    number (in string form) at time of HTML rendering. We have to use EVAL. There is no other option.
329
      '
330
      ' 2) The strings from the database must also be represented as VBScript strings in the assignments
331
      '    below. This means that where a string needs to have an embedded " char, two such chars must be
332
      '    used, and remember about EVAL mentioned above, meaning that sometimes """" has to be used to
333
      '    give a single " to the resulting string that pops out from EVAL.
334
      '    Remember also that whilst HTML doesn't care whether you use single or double quotes, javascript
335
      '    does (it must use single quotes) and VBScript does (it must use double quotes)
336
      '
337
      ' Possible Future Roadmap
338
      ' 1) Rid the code of ABTN_ID - I dont think we need this field now that we are free of the database
339
      '
340
      '
341
      Dim rsQry
342
      Dim varFields
343
      Dim varValues
344
 
345
      ' Create the object and configure some of its properties
346
      Set rsQry = Server.CreateObject("ADODB.Recordset")
347
      rsQry.CursorLocation = adUseClient
348
      rsQry.CursorType = adOpenKeyset
349
      rsQry.LockType = adLockOptimistic
350
 
351
      ' Based upon the original DEF_ACTION_BUTTONS table DDL, define the fields (ie. table columns) being simulated
352
      rsQry.Fields.Append "ABTN_ID",               adInteger
353
      rsQry.Fields.Append "ABTN_NAME",             adVarChar,   64
354
      rsQry.Fields.Append "TEXT",                  adVarChar,  128, adFldIsNullable
355
      rsQry.Fields.Append "ACTION_LINK",           adVarChar,  512, adFldIsNullable
356
      rsQry.Fields.Append "EVENT_HANDLER",         adVarChar,  512, adFldIsNullable
357
      rsQry.Fields.Append "IMG_ENABLED",           adVarChar,  128, adFldIsNullable
358
      rsQry.Fields.Append "IMG_DISABLED",          adVarChar,  128, adFldIsNullable
359
      rsQry.Fields.Append "HINT",                  adVarChar,  256, adFldIsNullable
360
      rsQry.Fields.Append "VISIBLE",               adChar,       1
361
      rsQry.Fields.Append "ACTIVE",                adChar,       1
362
      rsQry.Fields.Append "IS_READONLY_ACTION",    adChar,       1
4083 dpurdie 363
      rsQry.Fields.Append "HIDE_ON_CLOSED",        adChar,       1
127 ghuddy 364
 
365
      ' open the record set for updating
366
      rsQry.Open
367
 
368
      ' Specify the field order that we are going to use in our row creation statements
369
      varFields = Array("ABTN_ID", "ABTN_NAME", "TEXT",_
370
                        "ACTION_LINK",_
371
                        "EVENT_HANDLER",_
372
                        "IMG_ENABLED",_
373
                        "IMG_DISABLED",_
374
                        "HINT",_
375
                        "VISIBLE",_
376
                        "ACTIVE",_
4083 dpurdie 377
                        "IS_READONLY_ACTION",_
378
                        "HIDE_ON_CLOSED")
127 ghuddy 379
 
380
      ' Add the rows to the record set, but only for buttons specifed in the list supplied by the caller
381
 
382
      ' Remember, Field Ordering is... ID, name, text, link, event handler, en-img, dis-img, hint, visible, active, is readonly action
383
 
384
      If isAbtnRequired(aAbtnList, "btnNewVersion") Then
385
         varValues = Array( 1, "btnNewVersion", null,_
386
                           """form_new_version.asp?""& objPMod.ComposeURL()",_
387
                           null,_
388
                           "images/abtn_new_version.gif",_
4671 dpurdie 389
                           "images/abtn_new_version_off.gif",_
127 ghuddy 390
                           "Create new version of this package.",_
391
                           "Y",_
392
                           "Y",_
4083 dpurdie 393
                           "N",_
127 ghuddy 394
                           "N")
395
         rsQry.AddNew varFields, varValues
396
      End If
397
 
398
      If isAbtnRequired(aAbtnList, "btnVersionHistory") Then
399
         varValues = Array( 2, "btnVersionHistory", null,_
400
                           """javascript:;""",_
5933 dpurdie 401
                           """onClick=""""MM_openBrWindow('_wform_versions_history_release_notes.asp?OLDpv_id=""& parPv_id &""&pkg_id=""& pkgInfoHash.Item (""pkg_id"") &""&FLpkg_version=*""& pkgInfoHash.Item(""v_ext"") &""&FLuser_name=*&rfile=""& scriptName &""&""& objPMod.ComposeURL() &""','History','resizable=yes,scrollbars=yes,width=1000,height='+ ( screen.height - 100 )  );""""""",_
127 ghuddy 402
                           "images/abtn_version_history.gif",_
403
                           null,_
404
                           "Show version history of this package.",_
405
                           "Y",_
406
                           "Y",_
4083 dpurdie 407
                           "Y",_
408
                           "N")
127 ghuddy 409
         rsQry.AddNew varFields, varValues
410
      End If
411
 
412
      If isAbtnRequired(aAbtnList, "btnRemovePackage") Then
413
         varValues = Array( 3, "btnRemovePackage", null,_
414
                           """_remove_package.asp?pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 415
                           """vixConfirm('Remove this package from this release.',{title:'Remove Package', button:'Remove', url: 'HREF'});""",_
127 ghuddy 416
                           "images/abtn_remove_pkg.gif",_
4670 dpurdie 417
                           "images/abtn_remove_pkg_off.gif",_
418
                           "Remove the package-version from this Release.",_
127 ghuddy 419
                           "Y",_
420
                           "Y",_
4083 dpurdie 421
                           "N",_
127 ghuddy 422
                           "N")
423
         rsQry.AddNew varFields, varValues
424
      End If
425
 
426
      If isAbtnRequired(aAbtnList, "btnMakeRelease") Then
427
         varValues = Array( 4, "btnMakeRelease", null,_
428
                           """_make_released.asp?rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 429
                           """vixConfirm('Making this package released will prevent any further changes',{title:'Make Release', button:'Release', url: 'HREF'});""""""",_
127 ghuddy 430
                           "icons/i_make_released.gif",_
431
                           "icons/i_make_released_off.gif",_
432
                           "Make this package released, so that other packages can use it.",_
433
                           "Y",_
434
                           "Y",_
4083 dpurdie 435
                           "N",_
127 ghuddy 436
                           "N")
437
         rsQry.AddNew varFields, varValues
438
      End If
439
 
440
      If isAbtnRequired(aAbtnList, "btnMakeUnrelease") Then
441
         varValues = Array( 5, "btnMakeUnrelease", null,_
442
                           """_make_unreleased.asp?rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 443
                           """vixConfirm('You are going to unrelease this package.',{title:'Make UnRelease', button:'UnRelease', url: 'HREF'});""""""",_
127 ghuddy 444
                           "icons/i_make_unreleased.gif",_
445
                           "icons/i_make_unreleased_off.gif",_
183 brianf 446
                           "Unrelease this package.",_
127 ghuddy 447
                           "Y",_
448
                           "Y",_
4083 dpurdie 449
                           "N",_
127 ghuddy 450
                           "N")
451
         rsQry.AddNew varFields, varValues
452
      End If
453
 
454
      If isAbtnRequired(aAbtnList, "btnMakePending") Then
455
         varValues = Array( 6, "btnMakePending", null,_
456
                           """_make_pending.asp?rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 457
                           """vixConfirm('Making this package pending will prevent any further changes.',{title:'Make Pending', button:'Pending', url: 'HREF'});""""""",_
127 ghuddy 458
                           "icons/i_make_pending.gif",_
459
                           "icons/i_make_pending_off.gif",_
460
                           "Make this package pending for build/release.",_
461
                           "Y",_
462
                           "Y",_
4083 dpurdie 463
                           "N",_
127 ghuddy 464
                           "N")
465
         rsQry.AddNew varFields, varValues
466
      End If
467
 
468
      If isAbtnRequired(aAbtnList, "btnRejectPackage") Then
469
         varValues = Array( 7, "btnRejectPackage", null,_
470
                           """_make_rejected.asp?rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 471
                           """vixConfirm('Rejecting a new package version will move it to Work-In-Progress.<br>Rejecting a merge package version will simply remove it from pending.',{title:'Reject Package', button:'Reject', url: 'HREF'});""""""",_
127 ghuddy 472
                           "icons/i_reject_pending.gif",_
473
                           "icons/i_reject_pending_off.gif",_
474
                           "Reject this package from Pending.",_
475
                           "Y",_
476
                           "Y",_
4083 dpurdie 477
                           "N",_
127 ghuddy 478
                           "N")
479
         rsQry.AddNew varFields, varValues
480
      End If
481
 
482
      If isAbtnRequired(aAbtnList, "btnMoveToView") Then
483
         varValues = Array( 8, "btnMoveToView", null,_
484
                           """javascript:;""",_
6579 dpurdie 485
                           """onClick=""""MM_openVixIFrame('_wform_change_group.asp?""& objPMod.ComposeURL() &""','Set Package Base View');""""""",_
127 ghuddy 486
                           "images/abtn_move_package.gif",_
4670 dpurdie 487
                           "images/abtn_move_package_off.gif",_
127 ghuddy 488
                           "Move this package to different Base View (Group).",_
489
                           "Y",_
490
                           "Y",_
4083 dpurdie 491
                           "N",_
127 ghuddy 492
                           "N")
493
         rsQry.AddNew varFields, varValues
494
      End If
495
 
496
      If isAbtnRequired(aAbtnList, "btnReversionPackage") Then
497
         varValues = Array( 9, "btnReversionPackage", null,_
498
                           """javascript:;""",_
5590 dpurdie 499
                           """onClick=""""MM_openVixIFrame('_wform_rename_version.asp?renameMode=1&rfile=""& ScriptName & objPMod.ComposeURLWithout(""rfile"") &""','Rename Version Number');""""""",_
127 ghuddy 500
                           "images/abtn_rename_version.gif",_
501
                           "images/abtn_rename_version_off.gif",_
502
                           "Reversion this package.",_
503
                           "Y",_
504
                           "Y",_
6176 dpurdie 505
                           "Y",_
4199 dpurdie 506
                           "N")
127 ghuddy 507
         rsQry.AddNew varFields, varValues
508
      End If
509
 
510
      If isAbtnRequired(aAbtnList, "btnStickyNotes") Then
511
         varValues = Array(10, "btnStickyNotes", null,_
512
                           """javascript:;""",_
513
                           """onClick=""""showHideNote();""""""",_
514
                           "notemanager/images/note.gif",_
515
                           null,_
516
                           "Sticky notes",_
517
                           "Y",_
518
                           "Y",_
4083 dpurdie 519
                           "N",_
127 ghuddy 520
                           "N")
521
         rsQry.AddNew varFields, varValues
522
      End If
523
 
524
      If isAbtnRequired(aAbtnList, "btnObsoletePatch") Then
525
         varValues = Array(11, "btnObsoletePatch", null,_
526
                           """javascript:;""",_
5590 dpurdie 527
                           """onClick=""""MM_openVixIFrame('_wform_obsolete_patch.asp?rfile=""& ScriptName &""&""& objPMod.ComposeURL() &""','Make Patch Obsolete');""""""",_
127 ghuddy 528
                           "images/abtn_obsolete_patch.gif",_
529
                           "images/abtn_obsolete_patch_off.gif",_
530
                           "Make this patch obsolete.",_
531
                           "Y",_
532
                           "Y",_
4083 dpurdie 533
                           "N",_
127 ghuddy 534
                           "N")
535
         rsQry.AddNew varFields, varValues
536
      End If
537
 
538
      If isAbtnRequired(aAbtnList, "btnUnobsoletePatch") Then
539
         varValues = Array(12, "btnUnobsoletePatch", null,_
540
                           """javascript:;""",_
5590 dpurdie 541
                           """onClick=""""MM_openVixIFrame('_wform_obsolete_patch.asp?action=true&unobsolete=true&rfile=""& ScriptName &""&""& objPMod.ComposeURL() &""','UnObsolete Patch');""""""",_
127 ghuddy 542
                           "images/abtn_unobsolete_patch.gif",_
543
                           null,_
544
                           "Undo patch obsolete.",_
545
                           "Y",_
546
                           "Y",_
4083 dpurdie 547
                           "N",_
127 ghuddy 548
                           "N")
549
         rsQry.AddNew varFields, varValues
550
      End If
551
 
552
      If isAbtnRequired(aAbtnList, "btnApprovePackage") Then
553
         varValues = Array(13, "btnApprovePackage", null,_
554
                           """_make_approved.asp?rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 555
                           """vixConfirm('Approve this package for auto-build.',{title:'Approve Package', button:'Approve', url: 'HREF'});""""""",_
3959 dpurdie 556
                           "icons/i_submit_build.gif",_
557
                           "icons/i_submit_build_off.gif",_
127 ghuddy 558
                           "Make this package released for automated build.",_
559
                           "Y",_
560
                           "Y",_
4083 dpurdie 561
                           "N",_
127 ghuddy 562
                           "N")
563
         rsQry.AddNew varFields, varValues
564
      End If
565
 
566
      If isAbtnRequired(aAbtnList, "btnNewRelease") Then
567
         varValues = Array(14, "btnNewRelease", null,_
6508 dpurdie 568
                           """new_release.asp?" & objPMod.ComposeURL() &"""",_
127 ghuddy 569
                           null,_
570
                           "images/abtn_new_release.gif",_
571
                           "images/abtn_new_release_off.gif",_
572
                           "Create new release...",_
573
                           "Y",_
574
                           "Y",_
4083 dpurdie 575
                           "N",_
127 ghuddy 576
                           "N")
577
         rsQry.AddNew varFields, varValues
578
      End If
579
 
580
      If isAbtnRequired(aAbtnList, "btnEditRelease") Then
581
         varValues = Array(15, "btnEditRelease", null,_
582
                           """javascript:go_submit( document.FormName, """"btnEditRelease"""" );""",_
583
                           null,_
584
                           "images/abtn_edit.gif",_
585
                           "images/abtn_edit_off.gif",_
586
                           "Edit selected release details...",_
587
                           "Y",_
588
                           "Y",_
4083 dpurdie 589
                           "N",_
127 ghuddy 590
                           "N")
591
         rsQry.AddNew varFields, varValues
592
      End If
593
 
594
      If isAbtnRequired(aAbtnList, "btnMergeManager") Then
595
         varValues = Array(17, "btnMergeManager", null,_
6508 dpurdie 596
                           """diff.asp""",_
127 ghuddy 597
                           null,_
598
                           "images/abtn_merge_manager.gif",_
599
                           "images/abtn_merge_manager_off.gif",_
5177 dpurdie 600
                           "Run merge manager...",_
127 ghuddy 601
                           "Y",_
602
                           "Y",_
4083 dpurdie 603
                           "N",_
127 ghuddy 604
                           "N")
605
         rsQry.AddNew varFields, varValues
606
      End If
607
 
608
      If isAbtnRequired(aAbtnList, "btnMoveRelease") Then
609
         varValues = Array(18, "btnMoveRelease", null,_
610
                           """javascript:go_submit( document.FormName, """"btnMoveRelease"""" );""",_
611
                           null,_
612
                           "images/abtn_move_release.gif",_
613
                           "images/abtn_move_release_off.gif",_
614
                           "Move selected release vertically...",_
615
                           "Y",_
616
                           "Y",_
4083 dpurdie 617
                           "N",_
127 ghuddy 618
                           "N")
619
         rsQry.AddNew varFields, varValues
620
      End If
621
 
5590 dpurdie 622
      ' NOTE: entries 19 and 20 were not used
623
      '       Index numbers can be reused
127 ghuddy 624
 
625
      If isAbtnRequired(aAbtnList, "btnNewVersion-MASSREF") Then
626
         varValues = Array(21, "btnNewVersion-MASSREF", null,_
627
                           """form_new_version.asp?rtag_id=""& AssocMASSREFValue &""&pv_id=""& Request(""pv_id"")",_
628
                           null,_
629
                           "images/abtn_new_version_MassRef.gif",_
630
                           null,_
631
                           "Create new version of this package in associated MASS REF.",_
632
                           "Y",_
633
                           "Y",_
4083 dpurdie 634
                           "N",_
127 ghuddy 635
                           "N")
636
         rsQry.AddNew varFields, varValues
637
      End If
638
 
5930 dpurdie 639
      If isAbtnRequired(aAbtnList, "btnDestroyWip") Then
640
         varValues = Array(34, "btnDestroyWip", null,_
641
                           """javascript:;""",_
642
                           """onClick=""""MM_openVixIFrame('_destroy_package.asp?bfile=""& ScriptName &""&""& objPMod.ComposeURL() &""','Destroy WIP');""""""",_
643
                           "icons/i_destroy_package.gif",_
644
                           "icons/i_destroy_package_off.gif",_
645
                           "Destroy this WIP",_
646
                           "Y",_
647
                           "Y",_
648
                           "Y",_
649
                           "N")
650
         rsQry.AddNew varFields, varValues
651
      End If
652
 
127 ghuddy 653
      If isAbtnRequired(aAbtnList, "btnRecycleBin") Then
654
         varValues = Array(22, "btnRecycleBin", null,_
5930 dpurdie 655
                           """javascript:;""",_
656
                           """onClick=""""MM_openVixIFrame('_destroy_package.asp?&rfile=""& ScriptName &""&""& objPMod.ComposeURL() &""','Destroy Package Version');""""""",_
127 ghuddy 657
                           "icons/i_destroy_package.gif",_
5929 dpurdie 658
                           "icons/i_destroy_package_off.gif",_
659
                           "Destroy this package version",_
127 ghuddy 660
                           "Y",_
661
                           "Y",_
5929 dpurdie 662
                           "Y",_
127 ghuddy 663
                           "N")
664
         rsQry.AddNew varFields, varValues
665
      End If
666
 
667
      If isAbtnRequired(aAbtnList, "btnDeprecation") Then
668
         varValues = Array(23, "btnDeprecation", null,_
669
                           """javascript:;""",_
5590 dpurdie 670
                           """onClick='MM_openVixIFrame(""""_wform_deprecate_package.asp?rfile=""& scriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id &"""""",""""Deprecate Package"""")' class='body_txt' title='Deprecate the package.'""",_
127 ghuddy 671
                           "images/BombBorder.gif",_
5169 dpurdie 672
                           "images/BombBorder_off.gif",_
127 ghuddy 673
                           "Deprecate this package in this release.",_
674
                           "Y",_
675
                           "Y",_
4083 dpurdie 676
                           "N",_
127 ghuddy 677
                           "N")
678
         rsQry.AddNew varFields, varValues
679
      End If
680
 
681
      If isAbtnRequired(aAbtnList, "btnUnDeprecation") Then
682
         varValues = Array(24, "btnUnDeprecation", null,_
5190 dpurdie 683
                           """_wform_undeprecate_package.asp?rfile=""& scriptName &""&pkg_id=""& pkgInfoHash.Item(""pkg_id"") &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id &""""",_
684
                           """vixConfirm('You are about to undeprecate package: ""& pkgInfoHash.Item (""pkg_name"") &"".',{title:'Undeprecate Package', url: 'HREF'});""""""",_
127 ghuddy 685
                           "images/BombBorder.gif",_
686
                           null,_
5190 dpurdie 687
                           "Un Deprecate this package in this release",_
127 ghuddy 688
                           "Y",_
689
                           "Y",_
4083 dpurdie 690
                           "N",_
127 ghuddy 691
                           "N")
692
         rsQry.AddNew varFields, varValues
693
      End If
694
 
695
      If isAbtnRequired(aAbtnList, "btnAdminView") Then
696
         varValues = Array(25, "btnAdminView", null,_
6508 dpurdie 697
                           """form_edit_project_view.asp?proj_id=""& parProjId &""""",_
127 ghuddy 698
                           null,_
699
                           "images/view_admin.gif",_
700
                           null,_
701
                           "Administer the views in the project.",_
702
                           "Y",_
703
                           "Y",_
4083 dpurdie 704
                           "N",_
127 ghuddy 705
                           "N")
706
         rsQry.AddNew varFields, varValues
707
      End If
708
 
6508 dpurdie 709
      If isAbtnRequired(aAbtnList, "btnNotificationView") Then
710
         varValues = Array(25, "btnNotificationView", null,_
711
                           """form_view_release_notifications.asp?proj_id=""& parProjId &""""",_
712
                           null,_
713
                           "images/view_notifications.gif",_
714
                           null,_
715
                           "Display the package notification information in this project .",_
716
                           "Y",_
717
                           "Y",_
718
                           "N",_
719
                           "N")
720
         rsQry.AddNew varFields, varValues
721
      End If
722
 
6770 dpurdie 723
      If isAbtnRequired(aAbtnList, "btnProjectReplication") Then
724
         varValues = Array(25, "btnProjectReplication", null,_
725
                           """form_project_replication.asp?proj_id=""& parProjId &""""",_
726
                           null,_
727
                           "images/project_replication.gif",_
728
                           null,_
729
                           "Display the project replication information.",_
730
                           "Y",_
731
                           "Y",_
732
                           "N",_
733
                           "N")
734
         rsQry.AddNew varFields, varValues
735
      End If
6508 dpurdie 736
 
127 ghuddy 737
      ' NOTE: I do not think this one is ever used
738
      If isAbtnRequired(aAbtnList, "btnAddProc") Then
739
         varValues = Array(26, "btnAddProc", "Add Process",_
740
                           """javascript:;""",_
5590 dpurdie 741
                           """onClick=""""MM_openVixIFrame('wAddProc.asp?rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL() &""','Add Process');""""""",_
127 ghuddy 742
                           "icons/btn_add.gif",_
743
                           null,_
744
                           null,_
745
                           "Y",_
746
                           "Y",_
4083 dpurdie 747
                           "N",_
127 ghuddy 748
                           "N")
749
         rsQry.AddNew varFields, varValues
750
      End If
751
 
752
      If isAbtnRequired(aAbtnList, "btnEditGBE_Machtype") Then
753
         varValues = Array(27, "btnEditGBE_Machtype", null,_
754
                           """javascript:;""",_
5590 dpurdie 755
                           """onClick=""""MM_openVixIFrame('wAddMachtype.asp?type=edit&gbe_id=""& gbe_id &""&rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL() &""','Edit Machine Type');""""""",_
127 ghuddy 756
                           "icons/i_edit.gif",_
5814 dpurdie 757
                           null,_
127 ghuddy 758
                           "Edit this GBE MachType value",_
759
                           "Y",_
760
                           "Y",_
4083 dpurdie 761
                           "N",_
127 ghuddy 762
                           "N")
763
         rsQry.AddNew varFields, varValues
764
      End If
765
 
766
      If isAbtnRequired(aAbtnList, "btnDeleteGBE_Machtype") Then
767
         varValues = Array(28, "btnDeleteGBE_Machtype", null,_
768
                           """_DeleteMachtype.asp?rfile=""& SCRIPT_NAME &""&gbe_id=""& gbe_id &""&""& objPMod.ComposeURL()",_
5190 dpurdie 769
                           """vixConfirm('Remove \'""& GBE_VALUE &""\' from this list?',{title:'Remove GBE_MACHTYPE', button:'Remove', url: 'HREF'});""""""",_
127 ghuddy 770
                           "icons/i_remove.gif",_
771
                           null,_
772
                           "Delete this GBE MachType value",_
773
                           "Y",_
774
                           "Y",_
4083 dpurdie 775
                           "N",_
127 ghuddy 776
                           "N")
777
         rsQry.AddNew varFields, varValues
778
      End If
779
 
780
      If isAbtnRequired(aAbtnList, "btnEditDaemon") Then
781
         varValues = Array(29, "btnEditDaemon", null,_
782
                           """javascript:;""",_
5590 dpurdie 783
                           """onClick=""""MM_openVixIFrame('wAddDaemon.asp?type=edit&rcon_id=""& rcon_id &""&rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL() &""','Edit Build Daemon');""""""",_
127 ghuddy 784
                           "icons/i_edit.gif",_
5983 dpurdie 785
                           NULL,_
4295 dpurdie 786
                           "Edit Build Configuration",_
127 ghuddy 787
                           "Y",_
788
                           "Y",_
4083 dpurdie 789
                           "N",_
127 ghuddy 790
                           "N")
791
         rsQry.AddNew varFields, varValues
792
      End If
793
 
794
      If isAbtnRequired(aAbtnList, "btnDeleteDaemon") Then
795
         varValues = Array(30, "btnDeleteDaemon", null,_
4293 dpurdie 796
                           """_DeleteDaemon.asp?rcon_id=""& rcon_id & ""&action=Delete&"" & objPMod.ComposeURL()",_
5190 dpurdie 797
                           """vixConfirm('Delete the \'""& Daemon &""\' Daemon and associated information from this Release?',{title:'Remove Deamon', button:'Remove', url: 'HREF'});""""""",_
4295 dpurdie 798
                           "icons/i_remove.gif",_
4293 dpurdie 799
                           null,_
4295 dpurdie 800
                           "Delete Daemon",_
4293 dpurdie 801
                           "Y",_
802
                           "Y",_
803
                           "N",_
804
                           "N")
805
         rsQry.AddNew varFields, varValues
806
      End If
807
 
808
      If isAbtnRequired(aAbtnList, "btnRemoveDaemon") Then
809
         varValues = Array(47, "btnRemoveDaemon", null,_
810
                           """_DeleteDaemon.asp?rcon_id=""& rcon_id & ""&action=Remove&""& objPMod.ComposeURL()",_
5190 dpurdie 811
                           """vixConfirm('Unlink the \'""& Daemon &""\' Daemon from this Release.<p>Configuration information will be maintained.',{title:'Unlink Deamon', button:'Unlink', url: 'HREF'});""""""",_
4295 dpurdie 812
                           "icons/break_link.gif",_
127 ghuddy 813
                           null,_
4295 dpurdie 814
                           "Unlink Daemon from entry",_
127 ghuddy 815
                           "Y",_
816
                           "Y",_
4083 dpurdie 817
                           "N",_
127 ghuddy 818
                           "N")
819
         rsQry.AddNew varFields, varValues
820
      End If
821
 
161 iaugusti 822
      If isAbtnRequired(aAbtnList, "btnEditBuildMachine") Then
823
         varValues = Array(29, "btnEditBuildMachine", null,_
824
                           """javascript:;""",_
5590 dpurdie 825
                           """onClick=""""MM_openVixIFrame('wAddBuildMachine.asp?type=edit&bmcon_id=""& bmcon_id &""&rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL() &""','Edit Build Machine');""""""",_
161 iaugusti 826
                           "icons/i_edit.gif",_
5983 dpurdie 827
                           NULL,_
161 iaugusti 828
                           "Edit Build Machine",_
829
                           "Y",_
830
                           "Y",_
4083 dpurdie 831
                           "N",_
161 iaugusti 832
                           "N")
833
         rsQry.AddNew varFields, varValues
834
      End If
835
 
836
      If isAbtnRequired(aAbtnList, "btnDeleteBuildMachine") Then
837
         varValues = Array(30, "btnDeleteBuildMachine", null,_
838
                           """_DeleteBuildMachine.asp?rfile=""& SCRIPT_NAME &""&bmcon_id=""& bmcon_id &""&""& objPMod.ComposeURL()",_
5190 dpurdie 839
                           """vixConfirm('Remove Build Machine \'""& machine_hostname &""\' from this list?',{title:'Delete Build Machine', button:'Delete', url: 'HREF'});""""""",_
161 iaugusti 840
                           "icons/i_remove.gif",_
841
                           null,_
842
                           "Delete Build Machine",_
843
                           "Y",_
844
                           "Y",_
4083 dpurdie 845
                           "N",_
161 iaugusti 846
                           "N")
847
         rsQry.AddNew varFields, varValues
848
      End If
849
 
6770 dpurdie 850
      If isAbtnRequired(aAbtnList, "btnEditBlatMachine") Then
851
         varValues = Array(29, "btnEditBlatMachine", null,_
852
                           """javascript:;""",_
853
                           """onClick=""""MM_openVixIFrame('wAddPkgReplica.asp?type=edit&server_id=""& server_id &""&rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL() &""','Edit Package Replica');""""""",_
854
                           "icons/i_edit.gif",_
855
                           NULL,_
856
                           "Edit Package Replica",_
857
                           "Y",_
858
                           "Y",_
859
                           "N",_
860
                           "N")
861
         rsQry.AddNew varFields, varValues
862
      End If
863
 
864
      If isAbtnRequired(aAbtnList, "btnDeleteBlatMachine") Then
865
         varValues = Array(30, "btnDeleteBlatMachine", null,_
866
                           """_DeletePkgReplica.asp?rfile=""& SCRIPT_NAME &""&server_id=""& server_id &""&""& objPMod.ComposeURL()",_
867
                           """vixConfirm('Remove Package Replica \'""& display_name &""\' from this list?',{title:'Delete Package Replica', button:'Delete', url: 'HREF'});""""""",_
868
                           "icons/i_remove.gif",_
869
                           null,_
870
                           "Delete Package Replica",_
871
                           "Y",_
872
                           "Y",_
873
                           "N",_
874
                           "N")
875
         rsQry.AddNew varFields, varValues
876
      End If
877
 
127 ghuddy 878
      If isAbtnRequired(aAbtnList, "btnPendingIntegration") Then
879
         varValues = Array(32, "btnPendingIntegration", null,_
880
                           """_modify_product_state.asp?state_id=1&rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id",_
5190 dpurdie 881
                           """vixConfirm('Do you want to proceed to make this product pending for INTEGRATION?',{title:'Make Pending', button:'Pending', url: 'HREF'});""""""",_
127 ghuddy 882
                           "icons/PendingIntegration.gif",_
883
                           null,_
884
                           "Make this product pending for Integration.",_
885
                           "Y",_
886
                           "Y",_
4083 dpurdie 887
                           "N",_
127 ghuddy 888
                           "N")
889
         rsQry.AddNew varFields, varValues
890
      End If
891
 
892
      If isAbtnRequired(aAbtnList, "btnPendingTest") Then
893
         varValues = Array(33, "btnPendingTest", null,_
894
                           """_modify_product_state.asp?state_id=2&rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id",_
5190 dpurdie 895
                           """vixConfirm('Do you want to proceed to make this product pending for Test?',{title:'Make Test', button:'Test', url: 'HREF'});""""""",_
127 ghuddy 896
                           "icons/PendingTest.gif",_
897
                           null,_
898
                           "Make this product pending for Test.",_
899
                           "Y",_
900
                           "Y",_
4083 dpurdie 901
                           "N",_
127 ghuddy 902
                           "N")
903
         rsQry.AddNew varFields, varValues
904
      End If
905
 
906
      If isAbtnRequired(aAbtnList, "btnPendingDeployment") Then
907
         varValues = Array(34, "btnPendingDeployment", null,_
908
                           """_modify_product_state.asp?state_id=3&rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id",_
5190 dpurdie 909
                           """vixConfirm('Do you want to proceed to make this product pending for DEPLOYMENT?',{title:'Make Deploy', button:'Deploy', url: 'HREF'});""""""",_
127 ghuddy 910
                           "icons/PendingDeployment.gif",_
911
                           null,_
912
                           "Make this product pending for Deployment.",_
913
                           "Y",_
914
                           "Y",_
4083 dpurdie 915
                           "N",_
127 ghuddy 916
                           "N")
917
         rsQry.AddNew varFields, varValues
918
      End If
919
 
920
      If isAbtnRequired(aAbtnList, "btnRejectProduct") Then
921
         varValues = Array(35, "btnRejectProduct", null,_
922
                           """_modify_product_state.asp?state_id=4&rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id",_
5190 dpurdie 923
                           """vixConfirm('Do you want to REJECT this product from DEPLOYMENT?',{title:'Reject Product', button:'Reject', url: 'HREF'});""""""",_
127 ghuddy 924
                           "icons/i_reject_pending.gif",_
925
                           null,_
926
                           "Reject this product from Deployment.",_
927
                           "Y",_
928
                           "Y",_
4083 dpurdie 929
                           "N",_
127 ghuddy 930
                           "N")
931
         rsQry.AddNew varFields, varValues
932
      End If
933
 
934
      If isAbtnRequired(aAbtnList, "btnPendingIntegrateAndDeploy") Then
935
         varValues = Array(36, "btnPendingIntegrateAndDeploy", null,_
936
                           """_modify_product_state.asp?state_id=5&rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id",_
5190 dpurdie 937
                           """vixConfirm('Do you want to proceed to make this product pending for INTEGRATION and DEPLOYMENT?',{title:'Pending Product', button:'Confirm', url: 'HREF'});""""""",_
127 ghuddy 938
                           "icons/PendingDeployment.gif",_
939
                           null,_
940
                           "Make this product pending for Integration and Deployment.",_
941
                           "Y",_
942
                           "Y",_
4083 dpurdie 943
                           "N",_
127 ghuddy 944
                           "N")
945
         rsQry.AddNew varFields, varValues
946
      End If
947
 
948
      If isAbtnRequired(aAbtnList, "btnDeleteSchedule") Then
949
         varValues = Array(37, "btnDeleteSchedule", null,_
950
                           """_DeleteSchedule.asp?scheduled_id=""& scheduled_id &""&""& objPMod.ComposeURL()",_
5190 dpurdie 951
                           """vixConfirm('Remove Schedule from this list?',{title:'Remove Schedule', button:'Remove', url: 'HREF'});""""""",_
127 ghuddy 952
                           "icons/i_remove.gif",_
177 brianf 953
                           "icons/i_remove_dis.gif",_
127 ghuddy 954
                           "Delete Schedule",_
955
                           "Y",_
956
                           "Y",_
4083 dpurdie 957
                           "N",_
127 ghuddy 958
                           "N")
959
         rsQry.AddNew varFields, varValues
960
      End If
961
 
962
      If isAbtnRequired(aAbtnList, "btnApproveMerge") Then
963
         varValues = Array(38, "btnApproveMerge", null,_
964
                           """_approve_merge.asp?rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id",_
5190 dpurdie 965
                           """vixConfirm('The release will be updated by this merge operation',{title:'Approve Merge', button:'Merge', url: 'HREF'});""""""",_
127 ghuddy 966
                           "icons/i_make_released.gif",_
967
                           "icons/i_make_released_off.gif",_
968
                           "Approve and carry out the pending merge operation",_
969
                           "Y",_
970
                           "Y",_
4083 dpurdie 971
                           "N",_
127 ghuddy 972
                           "N")
973
         rsQry.AddNew varFields, varValues
974
      End If
975
 
143 ghuddy 976
      If isAbtnRequired(aAbtnList, "btnRejectAutobuildPackage") Then
977
         varValues = Array( 39, "btnRejectAutobuildPackage", null,_
978
                           """_make_rejected.asp?rfile=""& ScriptName &""&pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 979
                           """vixConfirm('Rejecting a package already approved for autobuild will set it back to Work-In-Progress',{title:'Reject Package', button:'Reject', url: 'HREF'});""""""",_
143 ghuddy 980
                           "icons/i_reject_pending.gif",_
981
                           "icons/i_reject_pending_off.gif",_
982
                           "Unapprove autobuild, move back to Work-In-Progress.",_
983
                           "Y",_
984
                           "Y",_
4083 dpurdie 985
                           "N",_
143 ghuddy 986
                           "N")
987
         rsQry.AddNew varFields, varValues
988
      End If
989
 
147 ghuddy 990
      If isAbtnRequired(aAbtnList, "btnDeleteDaemonInst") Then
991
         varValues = Array(40, "btnDeleteDaemonInst", null,_
992
                           """_DeleteDaemonInstruction.asp?rfile=""& ScriptName &""&inst_id=""& daemonInstId &""&""& objPMod.ComposeURL()",_
5190 dpurdie 993
                           """vixConfirm('Delete the Daemon Instruction from this list?',{title:'Delete Instruction', button:'Delete', url: 'HREF', width : 350, height : 150});""""""",_
147 ghuddy 994
                           "icons/i_remove.gif",_
995
                           null,_
996
                           "Delete this Daemon Instruction",_
997
                           "Y",_
998
                           "Y",_
4083 dpurdie 999
                           "N",_
147 ghuddy 1000
                           "N")
1001
         rsQry.AddNew varFields, varValues
1002
      End If
1003
 
1004
      If isAbtnRequired(aAbtnList, "btnEditDaemonInst") Then
1005
         varValues = Array(41, "btnEditDaemonInst", null,_
5590 dpurdie 1006
                           """javascript:;""",_
1007
                           """onClick=""""MM_openVixIFrame('wAddDaemonInstruction.asp?edit=true&inst_id=""& daemonInstId & ""&sort="" & parSortOrder & ""&rfile=""& ScriptName &""&""& objPMod.ComposeURL() &""','Edit Daemon Instruction');""""""",_
147 ghuddy 1008
                           "icons/i_edit.gif",_
5983 dpurdie 1009
                           NULL,_
147 ghuddy 1010
                           "Edit this Daemon Instruction",_
1011
                           "Y",_
1012
                           "Y",_
4083 dpurdie 1013
                           "N",_
147 ghuddy 1014
                           "N")
1015
         rsQry.AddNew varFields, varValues
1016
      End If
1017
 
1018
      If isAbtnRequired(aAbtnList, "btnAddDaemonInstRipplePackage") Then
1019
         varValues = Array(42, "btnAddDaemonInstRipplePackage", null,_
5590 dpurdie 1020
                           """javascript:;""",_
1021
                           """onClick=""""MM_openVixIFrame('wAddDaemonInstructionSimple.asp?op_code=0"" &""&rfile=""& ScriptName &""&""& objPMod.ComposeURL() &""','Ripple or Test Build Package');""""""",_
147 ghuddy 1022
                           "images/ripplesquare.gif",_
6185 dpurdie 1023
                           NULL,_
147 ghuddy 1024
                           "Request the Build Daemon to ripple this package version",_
1025
                           "Y",_
1026
                           "Y",_
4083 dpurdie 1027
                           "N",_
1028
                           "Y")
147 ghuddy 1029
         rsQry.AddNew varFields, varValues
1030
      End If
1031
 
6185 dpurdie 1032
      If isAbtnRequired(aAbtnList, "btnDelDaemonInstRipplePackage") Then
1033
         varValues = Array(42, "btnDelDaemonInstRipplePackage", null,_
1034
                           """_DeleteDaemonInstruction.asp?rfile=""& ScriptName &""&opCode="" & OP_CODE_0_RIPPLE_BUILD_PACKAGE & ""&""& objPMod.ComposeURL()",_
1035
                           """vixConfirm('Delete the Ripple Request?',{title:'Delete Ripple Request', button:'Delete', url: 'HREF', width : 350, height : 150});""""""",_
6187 dpurdie 1036
                           "images/CascadeSquareDel.gif",_
6185 dpurdie 1037
                           NULL,_
1038
                           "Delete the Ripple Request",_
1039
                           "Y",_
1040
                           "Y",_
1041
                           "N",_
1042
                           "Y")
1043
         rsQry.AddNew varFields, varValues
1044
      End If
1045
 
1046
      If isAbtnRequired(aAbtnList, "btnDelDaemonInstTestPackage") Then
1047
         varValues = Array(42, "btnDelDaemonInstTestPackage", null,_
1048
                           """_DeleteDaemonInstruction.asp?rfile=""& ScriptName &""&opCode="" & OP_CODE_1_TEST_BUILD_PACKAGE & ""&""& objPMod.ComposeURL()",_
1049
                           """vixConfirm('Delete the Test Build Request?',{title:'Delete Test Build Request', button:'Delete', url: 'HREF', width : 350, height : 150});""""""",_
6187 dpurdie 1050
                           "images/testSquareDel.gif",_
6185 dpurdie 1051
                           NULL,_
1052
                           "Delete the Test Build Request",_
1053
                           "Y",_
1054
                           "Y",_
1055
                           "N",_
1056
                           "Y")
1057
         rsQry.AddNew varFields, varValues
1058
      End If
1059
 
1060
 
149 ghuddy 1061
      If isAbtnRequired(aAbtnList, "btnAddDaemonInstTestBuildPackage") Then
1062
         varValues = Array(43, "btnAddDaemonInstTestBuildPackage", null,_
5590 dpurdie 1063
                           """javascript:;""",_
1064
                           """onClick=""""MM_openVixIFrame('wAddDaemonInstruction.asp?op_code=1"" &""&rfile=""& ScriptName &""&""& objPMod.ComposeURL() &""','Add Daemon Instruction');""""""",_
149 ghuddy 1065
                           "images/abtn_test_build.gif",_
6188 dpurdie 1066
                           NULL,_
149 ghuddy 1067
                           "Request the Build Daemon to test build this WIP package version",_
1068
                           "Y",_
1069
                           "Y",_
4083 dpurdie 1070
                           "N",_
149 ghuddy 1071
                           "N")
1072
         rsQry.AddNew varFields, varValues
1073
      End If
1074
 
157 ghuddy 1075
      If isAbtnRequired(aAbtnList, "btnMoveWIPToRelease") Then
1076
         varValues = Array( 44, "btnMoveWIPToRelease", null,_
1077
                           """javascript:;""",_
5590 dpurdie 1078
                           """onClick=""""MM_openVixIFrame('_wform_move_wip.asp"" &""?rfile=""& ScriptName &""&""&  objPMod.ComposeURL() &""','Move WIP');""""""",_
157 ghuddy 1079
                           "images/abtn_move_wip_to_release.gif",_
4670 dpurdie 1080
                           "images/abtn_move_wip_to_release_off.gif",_
157 ghuddy 1081
                           "Move this WIP to another release.",_
1082
                           "Y",_
1083
                           "Y",_
4083 dpurdie 1084
                           "N",_
157 ghuddy 1085
                           "N")
1086
         rsQry.AddNew varFields, varValues
1087
      End If
1088
 
183 brianf 1089
      If isAbtnRequired(aAbtnList, "btnLockPackage") Then
1090
         varValues = Array( 45, "btnLockPackage", null,_
1091
                           """_s_lock_package.asp?pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 1092
                           """vixConfirm('Lock Package.<p>This will prevent changes to the package.',{title:'Lock Package', button:'Lock', url: 'HREF'});""""""",_
183 brianf 1093
                           "icons/i_lock.gif",_
1094
                           "icons/i_lock_off.gif",_
1095
                           "Lock this package.",_
1096
                           "Y",_
1097
                           "Y",_
4083 dpurdie 1098
                           "N",_
183 brianf 1099
                           "N")
1100
         rsQry.AddNew varFields, varValues
1101
      End If
1102
 
1103
      If isAbtnRequired(aAbtnList, "btnUnLockPackage") Then
1104
         varValues = Array( 46, "btnUnLockPackage", null,_
1105
                           """_s_unlock_package.asp?pv_id=""& parPv_id &""&rtag_id=""& parRtag_id ",_
5190 dpurdie 1106
                           """vixConfirm('Unlock Package.<p>This may have serious side effects.',{title:'Unlock Package', button:'Unlock', url: 'HREF'});""""""",_
183 brianf 1107
                           "icons/i_unlock.gif",_
1108
                           "icons/i_unlock_off.gif",_
1109
                           "Unlock this package.",_
1110
                           "Y",_
1111
                           "Y",_
4083 dpurdie 1112
                           "N",_
183 brianf 1113
                           "N")
1114
         rsQry.AddNew varFields, varValues
1115
      End If
1116
 
4293 dpurdie 1117
 
1118
 
3959 dpurdie 1119
      If isAbtnRequired(aAbtnList, "btnEditProjectExtensions") Then
1120
         varValues = Array(29, "btnEditProjectExtensions", null,_
1121
                           """javascript:;""",_
5590 dpurdie 1122
                           """onClick=""""MM_openVixIFrame('wAddProjectExtension.asp?type=edit&ext=""& extName &""&rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL() &""','Edit Project Extension');""""""",_
3959 dpurdie 1123
                           "icons/i_edit.gif",_
5983 dpurdie 1124
                           NULL,_
3959 dpurdie 1125
                           "Edit Project Extensions",_
1126
                           "Y",_
1127
                           "Y",_
4083 dpurdie 1128
                           "N",_
3959 dpurdie 1129
                           "N")
1130
         rsQry.AddNew varFields, varValues
1131
      End If
1132
 
1133
      If isAbtnRequired(aAbtnList, "btnDeleteProjectExtension") Then
1134
         varValues = Array(30, "btnDeleteProjectExtension", null,_
1135
                           """_DeleteProjectExtension.asp?rfile=""& SCRIPT_NAME &""&ext=""& extName &""&""& objPMod.ComposeURL()",_
5190 dpurdie 1136
                           """vixConfirm('Remove Project Extension:  \'""& extName &""\' from this list?<p>This will prevent it from being used in new package versions.',{title:'Remove Project Extension', button:'Remove', url: 'HREF'});""""""",_
3959 dpurdie 1137
                           "icons/i_remove.gif",_
1138
                           null,_
1139
                           "Delete Project Extension",_
1140
                           "Y",_
1141
                           "Y",_
4083 dpurdie 1142
                           "N",_
3959 dpurdie 1143
                           "N")
1144
         rsQry.AddNew varFields, varValues
1145
      End If
4029 dpurdie 1146
 
1147
      If isAbtnRequired(aAbtnList, "btnEditGBE_Machclass") Then
1148
         varValues = Array(31, "btnEditGBE_Machclass", null,_
1149
                           """javascript:;""",_
5590 dpurdie 1150
                           """onClick=""""MM_openVixIFrame('wAddMachclass.asp?type=edit&bm_id=""& bm_id &""&rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL() &""','Edit Machine Class');""""""",_
4029 dpurdie 1151
                           "icons/i_edit.gif",_
5983 dpurdie 1152
                           NULL,_
4029 dpurdie 1153
                           "Edit this GBE MachClass value",_
1154
                           "Y",_
1155
                           "Y",_
4083 dpurdie 1156
                           "N",_
4029 dpurdie 1157
                           "N")
1158
         rsQry.AddNew varFields, varValues
1159
      End If
1160
 
1161
      If isAbtnRequired(aAbtnList, "btnDeleteGBE_Machclass") Then
1162
         varValues = Array(32, "btnDeleteGBE_Machclass", null,_
4040 dpurdie 1163
                           """wAddMachclass.asp?type=delete&bm_id=""& bm_id &""&rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL()",_
5190 dpurdie 1164
                           """vixConfirm('Delete the \'""& GBE_VALUE &""\' Machine Class',{title:'Delete Machine Class', button:'Delete', url: 'HREF'});""""""",_
4029 dpurdie 1165
                           "icons/i_remove.gif",_
1166
                           null,_
1167
                           "Delete this GBE MachClass value",_
1168
                           "Y",_
1169
                           "Y",_
4083 dpurdie 1170
                           "N",_
4029 dpurdie 1171
                           "N")
1172
         rsQry.AddNew varFields, varValues
1173
      End If
4670 dpurdie 1174
 
5122 dpurdie 1175
      If isAbtnRequired(aAbtnList, "btnEditGBE_BuildStandard") Then
1176
         varValues = Array(48, "btnEditGBE_BuildStandard", null,_
1177
                           """javascript:;""",_
5590 dpurdie 1178
                           """onClick=""""MM_openVixIFrame('wAddBuildStandard.asp?type=edit&bsa_id=""& bsa_id &""&rfile=""& SCRIPT_NAME &""&""& objPMod.ComposeURL() &""','Edit Build Standard');""""""",_
5122 dpurdie 1179
                           "icons/i_edit.gif",_
5983 dpurdie 1180
                           NULL,_
5122 dpurdie 1181
                           "Edit this Build Standard",_
1182
                           "Y",_
1183
                           "Y",_
1184
                           "N",_
1185
                           "N")
1186
         rsQry.AddNew varFields, varValues
1187
      End If
1188
 
1189
      If isAbtnRequired(aAbtnList, "btnDeleteGBE_BuildStandard") Then
1190
         varValues = Array(49, "btnDeleteGBE_BuildStandard", null,_
1191
                           """_DeleteBuildStandard.asp?rfile=""& SCRIPT_NAME &""&bsa_id=""& bsa_id &""&""& objPMod.ComposeURL()",_
5190 dpurdie 1192
                           """vixConfirm('Delete the \'""& GBE_VALUE &""\' Build Standard',{title : 'Delete Build Standard', button:'Delete', url: 'HREF'});""""""",_
5122 dpurdie 1193
                           "icons/i_remove.gif",_
1194
                           null,_
1195
                           "Delete this Build Standard",_
1196
                           "Y",_
1197
                           "Y",_
1198
                           "N",_
1199
                           "N")
1200
         rsQry.AddNew varFields, varValues
1201
      End If
4029 dpurdie 1202
 
3959 dpurdie 1203
 
127 ghuddy 1204
      ' Move cursor to the first record
1205
      rsQry.MoveFirst
1206
 
1207
      If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
1208
         Call LoadButtons ( rsQry.GetRows() )
1209
      End If
1210
 
1211
      rsQry.Close
1212
      Set rsQry = Nothing
1213
   End Sub
1214
   '-----------------------------------------------------------------------------------------------------------------
1215
   Public Sub LoadButtons ( aRows )
1216
      Dim nProperty, newArrayDim, LastRow, rowNum
1217
 
1218
      LastRow = UBound( aRows, 2 )
1219
 
1220
      For rowNum = 0 To LastRow
1221
         ' Increase array by 1
1222
         newArrayDim = LastRowInx() + 1
1223
         ReDim Preserve mArrAbtnDef( mNumOfProperties, newArrayDim )
1224
 
1225
 
1226
         mobjNameDefMap.Item ( Cstr( aRows ( InxName, rowNum ) ) ) = newArrayDim
1227
 
1228
         For nProperty = 0 To mLastPropertyInx
1229
            mArrAbtnDef ( nProperty, newArrayDim ) = aRows ( nProperty, rowNum )
1230
 
1231
         Next
1232
 
1233
      Next
1234
 
1235
   End Sub
1236
   '-----------------------------------------------------------------------------------------------------------------
1237
   Private Function LastRowInx ()
1238
       LastRowInx = UBound ( mArrAbtnDef, 2 )
1239
   End Function
1240
   '-----------------------------------------------------------------------------------------------------------------
1241
   Public Sub AddSeparatorAfter ( sItemName, sSeparatorWidth )
1242
      If InStr( sItemName, " " ) > 0 Then   Err.Raise 8, "Method AddSeparatorAfter", "Item Name '"& sItemName &"' cannot have spaces."
1243
      mobjSeparator.Add (Cstr(sItemName)), CStr(sSeparatorWidth)
1244
   End Sub
1245
   '-----------------------------------------------------------------------------------------------------------------
1246
   Public Sub AddSeparator ( sSeparatorWidth )
1247
      mobjSeparator.Add ( Cstr(mArrAbtnDef(InxName, LastItemInx())) ), CStr(sSeparatorWidth)
1248
   End Sub
1249
   '-----------------------------------------------------------------------------------------------------------------
1250
   Private Sub SetItemDefaults ( sItemName )
1251
      ' Additional default setup
1252
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxActive, enumDB_YES )         ' Default Active = enumDB_YES
1253
   End Sub
1254
   '-----------------------------------------------------------------------------------------------------------------
1255
   Public Sub Text ( sItemName, Value )
1256
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxTxt, Value )
1257
   End Sub
1258
   '-----------------------------------------------------------------------------------------------------------------
1259
   Public Sub ItemID ( sItemName, Value )
1260
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxID, Value )
1261
   End Sub
1262
   '-----------------------------------------------------------------------------------------------------------------
1263
   Public Sub Image ( sItemName, Value )
1264
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxImg, Value )
1265
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxImgOff, Value )         ' Default image disable to be the same as image
1266
   End Sub
1267
   '-----------------------------------------------------------------------------------------------------------------
1268
   Public Sub ImageOff ( sItemName, Value )
1269
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxImgOff, Value )
1270
   End Sub
1271
   '-----------------------------------------------------------------------------------------------------------------
1272
   Public Sub Link ( sItemName, Value )
1273
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxLink, Value )
1274
   End Sub
1275
   '-----------------------------------------------------------------------------------------------------------------
1276
   Public Sub EventHandler ( sItemName, Value )
1277
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxEventHandler, Value )
1278
   End Sub
1279
   '-----------------------------------------------------------------------------------------------------------------
1280
   Public Sub Hint ( sItemName, Value )
1281
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxHint, Value )
1282
   End Sub
1283
   '-----------------------------------------------------------------------------------------------------------------
1284
   Public Sub Visible ( sItemName, Value )
1285
      'Response.write sItemName &"here"& mobjNameDefMap.Item (Cstr(sItemName))
1286
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxVisible, Value )
1287
   End Sub
1288
   '-----------------------------------------------------------------------------------------------------------------
5929 dpurdie 1289
   Public Sub ReadOnly ( sItemName, Value )
1290
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxIsReadonlyAction, Value )
1291
   End Sub
1292
   '-----------------------------------------------------------------------------------------------------------------
143 ghuddy 1293
   Public Function IsVisible ( sItemName )
1294
      'Response.write sItemName &"here"& mobjNameDefMap.Item (Cstr(sItemName))
1295
      IsVisible = GetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxVisible )
1296
   End Function
1297
   '-----------------------------------------------------------------------------------------------------------------
127 ghuddy 1298
   Public Sub Active ( sItemName, Value )
1299
      'Response.write sItemName &"here"& mobjNameDefMap.Item (Cstr(sItemName))
1300
      Call SetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxActive, Value )
1301
   End Sub
1302
   '-----------------------------------------------------------------------------------------------------------------
143 ghuddy 1303
   Public Function IsActive ( sItemName )
1304
      IsActive = GetItemPropertyByIndex ( mobjNameDefMap.Item (Cstr(sItemName)), InxActive )
1305
   End Function
1306
   '-----------------------------------------------------------------------------------------------------------------
127 ghuddy 1307
   Private Sub Class_Initialize()
1308
      '// Perform action on creation of object. e.g. Set myObj = New ThisClassName
1309
      Set mobjNameDefMap = CreateObject("Scripting.Dictionary")
1310
      Set mobjIdDefMap = CreateObject("Scripting.Dictionary")
1311
      Set mobjSeparator = CreateObject("Scripting.Dictionary")
1312
      Set mobjACActionsMap = CreateObject("Scripting.Dictionary")
1313
 
1314
      'mbIsReadonly = FALSE   ' Tell control that it should use only readonly action buttons (i.e. actions which will not alter database )
1315
      mReadonlyActionBehaviour = enumABTNCTRL_ON_READONLY_HIDE      ' Tell control what to do by default if mbIsReadonly = TRUE
1316
 
1317
      mnButtonSpacer = 0
1318
      mnImageHspace = 4
1319
 
4083 dpurdie 1320
      mNumOfProperties = 12     ' Number of properties in array which define one menu item.
127 ghuddy 1321
      mLastPropertyInx = mNumOfProperties - 1
1322
 
1323
      mbDisableAll = FALSE
1324
 
1325
      ReDim mArrAbtnDef ( mNumOfProperties, -1 )
4083 dpurdie 1326
      InxID                 = 0
127 ghuddy 1327
      InxName               = 1
4083 dpurdie 1328
      InxTxt                = 2
127 ghuddy 1329
      InxLink               = 3
4083 dpurdie 1330
      InxEventHandler       = 4
1331
      InxImg                = 5
1332
      InxImgOff             = 6
127 ghuddy 1333
      InxHint               = 7
1334
      InxVisible            = 8
4083 dpurdie 1335
      InxActive             = 9
1336
      InxIsReadonlyAction   = 10
1337
      InxHideOnClosed       = 11
127 ghuddy 1338
 
1339
   End Sub
1340
   '-----------------------------------------------------------------------------------------------------------------
1341
   Private Sub Class_Terminate()
1342
      '// Perform action on object disposal. e.g. Set myObj = Nothing
1343
      Set mobjNameDefMap = Nothing
1344
      Set mobjIdDefMap = Nothing
1345
      Set mobjSeparator = Nothing
1346
      Set mobjACActionsMap = Nothing
1347
 
1348
 
1349
   End Sub
1350
   '-----------------------------------------------------------------------------------------------------------------
119 ghuddy 1351
End Class
127 ghuddy 1352
%>