Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SCL-3341 Fixes issues with upgrading old SmartDB instances

Description:

We have fixed issues converting SmartDB instances created more than one year ago.
Customers have reported error messages such as the following when executing the SmartDB upgrade and migration utility. This issue is resolved now.

No Format

[SFR-import-smartrepo] [972/1006] Loading: Consultingwerk/SmartFramework/Repository/Dump/SmartModuleDataSource.smartrepo
[SFR-import-smartrepo] Unhandled error:
[SFR-import-smartrepo] An Consultingwerk.Exceptions.DatasetException has occurred:
[SFR-import-smartrepo] A conflicting Object Master record already exists with Object Name "SmartModuleDataSource" Customization Result ""!
[SFR-import-smartrepo]   Table: eSmartObjectMaster
[SFR-import-smartrepo] ThrowDatasetErrors Consultingwerk.Util.DatasetHelper at line 4144  (C:\oeproject\wms\SmartComponentLibrary\Consultingwerk\Util\DatasetHelper.cls)
[SFR-import-smartrepo] LoadRepositoryObject Consultingwerk.SmartFramework.Repository.Tools.RepositoryObjectImporter at line 547  (C:\oeproject\wms\SmartComponentLibrary\Consultingwerk\SmartFramework\Repository\Tools\RepositoryObjectImporter.r)
[SFR-import-smartrepo] Consultingwerk/SmartFramework/Repository/Tools/import-repository-data.p at line 565  (C:\oeproject\wms\SmartComponentLibrary\Consultingwerk\SmartFramework\Repository\Tools\import-repository-data.r)
[SFR-import-smartrepo] C:\Users\Lode\AppData\Local\Temp\pctinit259985090.p at line 40  (C:\Users\Lode\AppData\Local\Temp\pctinit259985090.p)

...

SCL-3344 Fixed issues saving a viewer layout in the Repository

Description:

We have resolved two issues that could have resulted in error reported when saving a viewer layout to the repository.

Improvement

SCL-3262 Data Access: Support for passing arguments to FetchData sub-routines

Description:

We have added a new protected property to the DataAccess class:

Code Block
languageabl
     /**
     * Purpose: A property that allows to store a custom object with arguments that
     *          can be used to pass additional information (such as details on query
     *          execution strategy) from an override to FetchData or FetchDataByKeyTable
     * Notes:   The object reference is cleared (assigned to ?) at the end of the FetchData
     *          or FetchDataByKeyTable method
     */
    DEFINE PROTECTED PROPERTY FetchDataArguments AS Progress.Lang.Object NO-UNDO
    GET.
    SET.


The purpose of this property is to allow passing arguments from a Data Access classes FetchData/FetchDataByKeyTable method override to sub-routines used by the FetchDataInternal method:
- Attach/DetachDataSource
- Setting/Unsetting callbacks
- SourceDefaultQuery
- SourceColumn
Instead of introducing an actual parameter passed to these methods, we have added this property. An (additional) parameter passed to those methods would have introduced a significant incompatibility with existing applications.
The object refence stored in this property will be voided (assigned to ?) at the end of FetchData and FetchDataByKeyTable.
The purpose of this property is to provide a central place for storing the execution strategy for the data access query, e.g. buffer order in the query. Previously this did require global variables in the data access implementation causing the risk that the a value of those properties might not be reset reliably after every request.

SCL-3317 Replaced trivial CATCH for Progress.Lang.Error with ui-catch.i Include

Description:

Following the release of SCL-2461 we have now replaced all trivial CATCH blocks (CHATCH blocks that only show the error message without further handling) with the reference to the Consultingwerk\Windows\ui-catch.i Include file.
Details can be found in the release notes of the SCL-2461 feature.

SCL-3327 Generic Data Exporter and Importer now supports the CustomContext argument

Description:

We have extended the Generic Data Exported and Importer to support the CustomContext argument of the FetchDataRequest class. This supports to pass arguments such as "NoCalculatedFields" to business entities which may improve the performance of the export and import significantly.

SCL-3332 Implemented ability to define shortcuts for repository toolbar buttons

Description:

The Windows toolbar definition used by the repository rendering now supports the definition of shortcut keys. Valid shortcut keys must be a member of the System.Windows.Forms.Shortcut Enum ( https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.shortcut ?view=net-5.0). The shortcut keys can be specified as a JSON Array, e.g. ["Ctrl", "S"}. Sample Button definition in the default-buttons.json file:

Code Block
languageabl

"save": {
    "buttonType": "button",
    "buttonName": "TableIOSave",
    "buttonLabel": "Save",
    "buttonImageSmall": "Consultingwerk/SmartComponents/Images/saverec.png",
    "buttonImageLarge": "Consultingwerk/SmartComponents/Images/saverec_32.png",
    "group": "tableio",
    "shortcut": ["Ctrl", "S"]
}

...

SCL-3342 RESTful requests (ISupportsRestAddress and ISupportsRestMethod) now return SmartMessages expanded

Description:

Errors thrown from the RESTful calls into business services (CRUD and method calls) now return error messages reported as Smart Messages in plain text instead of tokenized.

SCL-3343 "Insert Data Field" in Viewer Designer now considers entity field mapping

Description:

The "Insert Data Field" tool in the repository viewer designer now respects the entity field mapping definition.

SCL-3345 Improved SwaggerRestEntitiesGenerator initialization

Description:

We have improved the initialization of the SwaggerRestEntitiesGenerator service. Those fixes will resolve issues reported by customers that have been using an invalid sete of templates for the Swagger files.

SCL-3347 Improved handling in DatasetHelper:ThrowDatasetErrors when there are many errors

Description:

We have improved the DatasetHelper:ThrowDatasetErrors API for cases when there are many records with errors. We have implemented a secondary set of the API's used by the ThrowDatasetErrors API returning the error messages as a LONGCHAR value instead of CHARACTER.

New Feature

SCL-2894 Implemented ability to "lock" PASOE web sessions

Description:

We have implemented the ability to "lock" a PASOE web session. A locked session will no longer allow requests from clients under that session. Requests made from a locked session will be causing an HTTP 401 error.
The Consultingwerk.SmartFramework.Context.ContextStoreBusinessEntity provides two new method to support locking of sessions:
- LockSession based on a CharacterHolder with the value of a Session ID will lock the given session
- LockUserSessions (with a CharacterHolder as an unused parameter) will lock all sessions of the current user except for the current session (from which the call is made)
We have implemented a new Security Token named "ListUserSessions". Users with authorization for this security token can list web sessions of all users. Users without authorization for this security token can only list web sessions for the current user.
Based on this security token, the ContextStoreBusinessEntity business entity can be used to list the sessions of the current user.

SCL-3311 Improved behavior of the reference main menu form on Windows shutdown

Description:

We have added a check to the OnFormCLosing event handler method of the MainMenuForm. This check now prevents to "Are you sure you want to close" prompts when the FormClosing event is raised by a pending Windows shutdown / user logoff.
When the user still has a pending update in a screen launched from the main menu form, that form will still prompt if the user wants to save the pending changes.
We're also passing the -wy startup parameter to the background jobs populating the dashboards in the Sports2000 demo application (customer explorer). This will prevent those background jobs from asking if the user is o.k to exit Windows.

SCL-3320 Implemented Wizard in Repository Designer to create Menu Function for GUI

Description:

We have implemented a new wizard in the Repository Designer that supports the creation of a menu item to launch a repository form in GUI.

SCL-3321 Implemented Wizard in Repository Designer to create Menu Function for Angular

Description:

We have implemented a new wizard in the Repository Designer that supports the creation of a menu item to launch a repository form in the Angular web application. This wizard also supports the execution of the SCLNG command line utility to create a the Form typescript class.