Skip to content

Commit a54b0a5

Browse files
committed
fix: export dll files from add-in
1 parent c6e1653 commit a54b0a5

File tree

4 files changed

+38
-8
lines changed

4 files changed

+38
-8
lines changed

access-add-in/AccUnitLoader.accda

0 Bytes
Binary file not shown.
-922 Bytes
Binary file not shown.

access-add-in/source/codelib/_codelib/addins/shared/ACLibConfiguration.cls

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Attribute VB_Description = "Konfigurationseinstellungen der CodeLib verwalten"
1212
' Class: _codelib.addins.shared.ACLibConfiguration
1313
'---------------------------------------------------------------------------------------
1414
'
15-
' Konfigurationseinstellungen der CodeLib verwalten
15+
' Manage AccessCodeLib configuration settings
1616
'
1717
' Author:
1818
' Josef Poetzl
@@ -65,11 +65,13 @@ Private Const SQL_CREATETABLE_CONFIGTABLE As String = _
6565
Private Const PROPNAME_LOCALREPOSITORYROOT As String = "LocalRepositoryRoot"
6666
Private Const PROPNAME_PRIVATEREPOSITORYROOT As String = "PrivateRepositoryRoot"
6767
Private Const PROPNAME_IMPORTTESTDEFAULTVALUE As String = "ImportTestDefaultValue"
68+
Private Const PROPNAME_GITHUBAUTHPERSONALACCESSTOKEN As String = "GitHubAuthPersonalAccessToken"
6869

6970
' Hilfsvariablen
7071
Private m_LocalRepositoryPath As String ' allg. Repository-Verzeichnis
7172
Private m_PrivateRepositoryPath As String ' privates Verzeichnis (nicht in CodeLib enthalten)
7273
Private m_ImportTestDefaultValue As Long
74+
Private m_GitHubAuthPersonalAccessToken As String
7375
Private m_ACLibPropertyDb As DAO.Database
7476

7577
'---------------------------------------------------------------------------------------
@@ -225,6 +227,23 @@ Public Property Let ImportTestsDefaultValue(ByVal NewValue As Boolean)
225227

226228
End Property
227229

230+
Public Property Get GitHubAuthPersonalAccessToken() As String
231+
'm_GitHubAuthPersonalAccessToken: vbnullstring = noch nicht abgefragt
232+
233+
If StrPtr(m_GitHubAuthPersonalAccessToken) = 0 Then
234+
m_GitHubAuthPersonalAccessToken = GetACLibGlobalProperty(PROPNAME_GITHUBAUTHPERSONALACCESSTOKEN) & ""
235+
End If
236+
GitHubAuthPersonalAccessToken = m_GitHubAuthPersonalAccessToken
237+
238+
End Property
239+
240+
Public Property Let GitHubAuthPersonalAccessToken(ByVal NewValue As String)
241+
242+
m_GitHubAuthPersonalAccessToken = NewValue
243+
SetACLibGlobalProperty PROPNAME_GITHUBAUTHPERSONALACCESSTOKEN, m_GitHubAuthPersonalAccessToken
244+
245+
End Property
246+
228247
Friend Function GetACLibGlobalProperty(ByRef PropertyName As String) As String
229248

230249
Dim rst As DAO.Recordset
@@ -287,6 +306,7 @@ Private Function CheckConfigTableDef() As Boolean
287306

288307
Dim db As DAO.Database
289308
Dim tdf As DAO.TableDef
309+
Dim ConfigDataPath As String
290310

291311
Set db = CodeDb
292312

@@ -297,12 +317,15 @@ Private Function CheckConfigTableDef() As Boolean
297317
tdf.SourceTableName = ACLIB_CONFIG_TABLEDEFNAME
298318
db.TableDefs.Append tdf
299319

300-
ElseIf Len(Dir$(Mid$(db.TableDefs(ACLIB_CONFIG_TABLEDEFNAME).Connect, Len(";Database=") + 1))) = 0 Then
320+
Else
301321

302-
With db.TableDefs(ACLIB_CONFIG_TABLEDEFNAME)
303-
.Connect = ";Database=" & ACLibConfigDatabaseFile
304-
.RefreshLink
305-
End With
322+
ConfigDataPath = Mid$(db.TableDefs(ACLIB_CONFIG_TABLEDEFNAME).Connect, Len(";Database=") + 1)
323+
If ConfigDataPath <> ACLibConfigDatabaseFile Then
324+
With db.TableDefs(ACLIB_CONFIG_TABLEDEFNAME)
325+
.Connect = ";Database=" & ACLibConfigDatabaseFile
326+
.RefreshLink
327+
End With
328+
End If
306329

307330
End If
308331

access-add-in/source/codelib/base/ApplicationHandler_AppFile.cls

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,20 @@ End Property
134134
' Boolean
135135
'
136136
'---------------------------------------------------------------------------------------
137-
Public Function CreateAppFile(ByVal FileID As String, ByVal FileName As String) As Boolean
137+
Public Function CreateAppFile(ByVal FileID As String, ByVal FileName As String, _
138+
Optional ByVal ExtFilterFieldName As String, Optional ExtFilterValue As Variant) As Boolean
138139

139140
Dim Binfile() As Byte
140141
Dim FieldSize As Long
141142
Dim fld As DAO.Field
143+
Dim SelectSql As String
144+
145+
SelectSql = "select " & TABLE_FIELD_FILE & " from " & TABLE_APPFILES & " where " & TABLE_FIELD_ID & "='" & Replace(FileID, "'", "''") & "'"
146+
If Len(ExtFilterFieldName) > 0 Then
147+
SelectSql = SelectSql & " and " & ExtFilterFieldName & " = '" & Replace(ExtFilterValue, "'", "''") & "'"
148+
End If
142149

143-
With CodeDb.OpenRecordset("select " & TABLE_FIELD_FILE & " from " & TABLE_APPFILES & " where " & TABLE_FIELD_ID & "='" & Replace(FileID, "'", "''") & "'")
150+
With CodeDb.OpenRecordset(SelectSql)
144151
If Not .EOF Then
145152

146153
Set fld = .Fields(0)

0 commit comments

Comments
 (0)