You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixed DBSheet design tool:
non-functional dbsheet definitions can now be read (without missing columns),
design workflow is now better shown by disabled buttons.
fixed save DBsheet definition
fixed DBsetQuery calcmode assignment (and also DBsetpowerquery)
Copy file name to clipboardexpand all lines: source/DBSheetConfig.vb
+28-39
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,8 @@ Public Module DBSheetConfig
21
21
''' <summary>the Database table name of the DBSheet</summary>
22
22
DimtableNameAsString
23
23
''' <summary>counter to know how many cells we filled for the db-mapper query
24
-
''' (at least 2: dbsetquery function and query string, if additional where clause exists,
25
-
''' add one for where clause, then one for each parameter)
24
+
''' (at least 2: dbsetquery function and query string, if an additional where clause exists,
25
+
''' add one for this where clause and then one for each parameter)
26
26
''' </summary>
27
27
DimaddedCellsAsInteger
28
28
''' <summary>these three need to be global, so that finishDBMapperCreation also knows about them</summary>
@@ -35,7 +35,7 @@ Public Module DBSheetConfig
35
35
PublicexistingNameAsString
36
36
37
37
38
-
''' <summary>create lookups (with dblistfetch) and a dbsetquery that acts as a list-object for a CUD DB Mapper</summary>
38
+
''' <summary>create a DBSheet by creating lookups (with dblistfetch) and a dbsetquery that acts as a list-object for a CUD DBMapper. Called by clickAssignDBSheet (Ribbon) and assignDBSheet_Click (DBSheetCreateForm)</summary>
IfQuestionMsg("Existing DBSheetLookups sheet detected, should all lookup definitions be removed (if definitions with existing names are added, this might lead to errors)?",MsgBoxStyle.YesNo)=MsgBoxResult.YesThen
124
+
DimanswerAsMsgBoxResult=QuestionMsg("Existing DBSheetLookups sheet detected, should all lookup definitions be removed (if definitions with existing names but different meanings are added, this might lead to errors)?",MsgBoxStyle.YesNoCancel)
' finish creation in async called function (need to have the results from the above createFunctionsInCells/invocations)
268
+
' only create DBSetQuery if a completely new DBSheet is created, when overwriting an existing don't do this as it triggers a unwanted premature recalculation.
' ..... create dropdown (validation) for lookup column
322
-
' a workaround with getting the local formula is necessary as Formula1 in Validation.Add doesn't accept English formulas
313
+
' workaround by setting formula in a temporary cell to get the local language formula. This is necessary as Formula1 in Validation.Add doesn't accept English formulas
' necessary as Excel>=2016 introduces the @operator automatically in formulas referring to list objects, referring to just that value in the same row. which is undesired here..
UserMsg("couldn't find type information for field "+newRow.name+" in database (maybe wrong non null-able information for field in definition) !","DBSheet Definition Error")
971
-
ExitSub
972
-
EndIf
973
-
newRow.type=TableDataTypes(newRow.name)
974
-
IfnewRow.type=""Then
975
-
UserMsg("empty type information for field "+newRow.name+" in database !","DBSheet Definition Error")
976
-
ExitSub
977
+
UserMsg("couldn't retrieve information for field "+newRow.name+" in database (maybe wrong non null-able information for field in definition) !","DBSheet Definition Error")
978
+
loadOK=False
979
+
ContinueFor
980
+
Else
981
+
newRow.type=TableDataTypes(newRow.name)
982
+
IfnewRow.type=""Then
983
+
UserMsg("empty type information for field "+newRow.name+" in database !","DBSheet Definition Error")
''' <summary>sets current definition file path hyperlink label. Displayed is only the filename, full path is stored in tag and visible in tooltip</summary>
0 commit comments