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
Copy file name to clipboardexpand all lines: docs/DBModif.md
+19-1
Original file line number
Diff line number
Diff line change
@@ -102,12 +102,30 @@ The DBModifiers can be executed either
102
102
103
103
... or be done on saving the Workbook.
104
104
105
-
... or by issuing the VBA command `result = Application.Run("executeDBModif", <DBModifierName>, <headlessFlag>)`, where `<DBModifierName>` is the Name of the DB Modifier including the type (so `DBMapperemployee` or `DBActionpublishersDelete`) and `<headlessFlag>` is a boolean flag indicating whether any user-interaction (as controllable by the Addin) should be avoided, all errors are returned in the `result` of the call.
105
+
... or by issuing the VBA command `result = Application.Run("executeDBModif", <DBModifierName>, <headlessFlag>)`, where `<DBModifierName>` is the name of the DB Modifier including the type (so `DBMapperemployee` or `DBActionpublishersDelete`) and `<headlessFlag>` is a boolean flag indicating whether any user-interaction (as controllable by the Addin) should be avoided, all errors collected in `nonInteractiveErrMsgs` and returned in the `result` of the call.
106
106
107
107
You can edit the DBModifiers either by Ctrl-Shift clicking the Execute DBModifier Groups dropdown menus..
108
108
.. or by Ctrl-Shift clicking the created command-buttons.
109
109
.. or by using the Insert/Edit DBFunc/DBModif context menu within a DBMapper or DBAction range.
110
110
111
+
## Additional macro functions available for setting/accessing settings
112
+
113
+
By issuing the VBA command `Application.Run("setExecutionParam", Param, Value)`, where `Param` is the name of the parameter and `Value` is the value it should be set to, following settings can be set via VBA:
114
+
* headLess: sets nonInteractive to True or False
115
+
* selectedEnvironment: sets SettingsTools.selectedEnvironment to the value passed (zero based environment: 0 is the first, 1 the second, etc.)
116
+
* ConstConnString: sets SettingsTools.ConstConnString to the value passed
117
+
* CnnTimeout: sets SettingsTools.CnnTimeout to the value passed
118
+
* CmdTimeout: sets SettingsTools.CmdTimeout to the value passed
119
+
120
+
By issuing the VBA command `result = Application.Run("getExecutionParam", Param)`, where `Param` is the name of the parameter the current settings of the following parameters are returned:
121
+
* selectedEnvironment: returns SettingsTools.selectedEnvironment (zero based environment: 0 is the first, 1 the second, etc.)
122
+
* env() : returns the selected environment (1 is the first, 2 the second, etc.)
0 commit comments