RiverWare 6.7 DMI Configuration Script Action Support / May 2015
Phil Weinstein, David Neumann, Patrick Lynn, Bill Oakley, Edie Zagona, CADSWES
Original Draft: 5-28-2015. Updated: 6-04-2015.
This document describes two related enhancements to RiverWare 6.7, and addresses related implementation topics:
![]() |
![]() |
The Excel Dataset Configuration has been enhanced to support a user-configurable "standard" list of Single Run Names. The "Single Run Name" line entry widget has been replaced with an option menu showing those standard names. The user can still directly edit the Single Run Name text without regard to the standard name list.
![]() |
|
![]() |
An Excel Dataset's standard Run Names list is edited by clicking the new associated ellipsis button. This brings up the Edit Run Name List dialog which supports the following operations:
Additionally, the following operations are provided in a context menu -- (illustrated later in this document):
The clipboard copy/paste operations support copying a standard Run Names list between different Excel Datasets. (This works even between Excel Datasets in different run instances of the RiverWare program).
See the following document for more information about the Edit Run Name List dialog (an instance of our new String List Editor dialog):
Utility Dialog: String List Editor / RiverWare 6.7 / May 2015
R:\doc\guiGeneral\Utilities\StringListEditor-May2015.docx
This list of Run Names shows up in the following places:
![]() |
|
![]() |
A new DMI configuration-related script action type has been developed for RiverWare 6.7. There are now approximately 38 different script action types. The new "Set Excel Dataset Run Name" action modifies the following two properties of a named Excel Dataset configuration within the current RiverWare model:
The "Set Excel Dataset Run Name" script action supports these five settings:
The first two settings are common to all script actions.
The "Excel Dataset" setting supports an Excel Dataset selection option menu which shows the names of all Excel Datasets in the loaded RiverWare model. The user can either pick one of those dataset names or just enter the desired dataset's name.
The "Run Name Type" setting supports an option menu with the three Run Name Type options enumerated above. When the script action is executed, the specified Excel Dataset's Run Name Type is set to the selection specified by this setting.
The "Single Run Name" setting is shown only if that Run Name Type is selected. It supports an option menu which includes the "standard" run names configured within the selected Excel Dataset (plus the currently entered value, if that's not represented within the list of standard run names). The user can either pick one of those names or just enter the desired run name text. When the script action is executed, if a non-empty run name is provided (and the Run Name Type is "Single Run Name") then the specified Excel Dataset's Run Name is set to this setting's value.
When a script including a "Set Excel Dataset Run Name" action instance is shown in the Script Dashboard dialog, if the action's Run Name Type is "Single Run Name", an editable option menu is provided to allow the Script Dashboard user to enter or select a different run name to be used during action execution:
Operating the Script Dashboard's Edit >> "Reset Values" menu item restores the run name field to the action's configured setting, i.e. what was entered or selected in the Script Editor dialog.
In the current implementation, the Excel Dataset configuration dialog -- for the dataset being affected by this script action -- must be closed during script execution. Otherwise, the script aborts.
In the course of this feature development, the technical and GUI enhancements listed below were implemented.
Revision [6-4-2015]: The script action's Excel Dataset Single Run Name setting was changed from an rwEnumSetting to an rwTextSetting with the new EXCEL_DATASET_RUNNAME value type. Also, new general provisions to support the required dynamic generation of the original rwEnumSetting implementation have been removed. That rwSetting subclass should support only constant, static enumerations; its prior support for dynamic RPL Set enumerations should also be moved to rwTextSetting.
NOTE: The only rwTextItem value type currently supported is EXCEL_DATASET_RUNNAME. The idea is that we will soon MOVE the enumeration generation implemenations from the rwSettingTree::Delegate::createEditor() [GUI] method to this rwTextItem method for all relevant rwTextSetting value types.
![]() As previously noted, these utility dialogs are described in this document: Utility Dialog: String List Editor / RiverWare 6.7 / May 2015 |
As previously mentioned, the new Set Excel Dataset Run Name script action will abort if the referenced Excel Dataset's configuration dialog is open. (The abort message clearly describes the need to close that dialog).
[As of 5-28-2015] there was a little instability in the DMI's edit state management mechanism. This includes issues documented in the following two bug records:
Update [6-04-2015]: Some other edit state fixes have been applied which seem to address the instability problems encountered specifically in the course of operating these new Excel Dataset and Script Action features.
--- (end) ---