...
OpenEdge Release | Version Information |
---|---|
11.3.3, 11.3.4, 11.4, 11.6.2, 11.6.3, 11.7, 11.7.1, 11.7.2, 11.7.3.007, 11.7.4 | 11.3 #51864@2019#51726@2019-05-01 |
OpenEdge 12.0 support!
We are please to announce that we are not aware of any issues using the SmartComponent Library on OpenEdge 12.0. We hereby declare OpenEdge 12.0 fully supported for the SmartComponent Library as of the release of May 1st 2019.
OpenEdge 11.7.4 support!
We are please to announce that we are not aware of any issues using the SmartComponent Library on OpenEdge 11.7.4. We hereby declare OpenEdge 11.7.4 fully supported for the SmartComponent Library as of the release of November 5th 2018.
...
A login is required to participate in the forum. Don't be shy - create your account today!
Announcing the SmartFramework ERD Designer
...
When users with no Login Company set should be able to login using the SmartHybridRealm, it's required to set the Login Company Tennant Domain (similar to the field in the Login Company Maintenance) in the .restapplicationsettings / .applicationsettings, e.g.:
"DefaultAuthenticationDomain": "consultingwerk" |
...
SCL-2588 Fixed ExcelWorksheetExporter raised Invalid Handle error when the file doesn't exist
Description:
The ExcelWorksheetExporter class raised an invalid handle error when the file name argument was incorrect (non existing file). This is fixed now.
SCL-2600 Fixed problem subscribing ParentFormClosed event with Form Inheritance
Description:
We have resolved an issue with Form inheritance when developers have placed an instance of the SmartToolbarController in the visual Form base class.
At runtime the following error message was raised: "System.ApplicationException: Subscribe ... failed. ParentFormDestroyedHandler already assigned to FormDestroyed-event (15329)"
This issue is now resolved.
SCL-2604 Fixed invalid parsing for "WHERE" in FindRecord2 of DataAccess
Description:
We have fixed a recently introduced issue in the parsing and reconstruction of query strings in the FindRecord2 method of the DataAccess class.
SCL-2605 Fixed JsonHelper EnsureCharacterProperty method for boolean datatype
Description:
The JsonHelper method EnsureCharacterProperty now properly works for boolean (LOGICAL) values.
Improvement
SCL-2587 Added column label options to ExcelWorksheetExporter
Description:
We have implemented a new property to the Consultingwerk.Utilities.Excel.ExportWorksheetArgument class.
Code Block | ||
---|---|---|
| ||
/** * Purpose: Gets and sets the source of the column label * Notes: */ DEFINE PUBLIC PROPERTY ExportColumnLabel AS ExportColumnLabelEnum NO-UNDO GET. SET. |
This property allows to control how the ExcelWorkSheetExporter creates the column labels:
||Value||Description||
|FieldName|The column label is built from the field name|
|FieldLabel|The column label is built from the field label|
|EventCallback|The ExcelWorkSheetExporter raises the RequestFieldLabel event to request the field label from the caller|
SCL-2599 Improved handling of "*" key in RenderedBrowseControlSearchProvider
Description:
We have improved the handling of the "*" key in the RenderedBrowseControlSearchProvider. Previously some keys caused to open the search dialog with all text selected - instead of moving the cursor behind the last character.
SCL-2603 Implemented default value for "RestfulEntitiesAddress" in .restapplicationsettings
Description:
When the RestfulEntitiesAddress setting in the .restapplicationsetting was not set, the RESTful Swagger page did not contain a valid server reference. We are now using the URI of the current request as a default value to resolve this issue.
SCL-2606 JSDO Generic Service: Implemented option to disable Count requests by returning a default value
Description:
A new optional setting in .restapplicationsettings has been implemented:
Code Block | ||
---|---|---|
| ||
"CountFunctionDisabled": "true" |
When this setting is set to True, any call into the JSDO generic serivce's Count method will immediately return the "magic number" - either 9999 or the value of the CountStopAfterNumResults setting.
New Feature
SCL-2583 JSDO Generic Service Count Request: Optional configuration for StopAfter and StopAfterNumRecords
Description:
The JSDO Generic service now supports configuration of the Count function. Through two entries in the .restapplicationsettings file, it's now possible to configure the STOP-AFTER setting for the Count request as well as the result to be returned to the caller in case the STOP-AFTER limit has been exceeded.
Code Block | ||
---|---|---|
| ||
"CountStopAfter": "1", "CountStopAfterNumResults": "999999", |
...
SCL-2584 Fixed decoding of the plus sign in URI's received by the ResourceWebHandler
Description:
Some consumers encode the space character in an URL Query String with the plus sign. So far we had only decoded the %20 to the space character. We're now also decoding the + sign to the space character.
SCL-2585 Added new BufferHelper API to create a new Temp-Table with the current record of a buffer
Description:
We've added two new API's to the BufferHelper class. These API's create a new dynamic temp-table based on the current record of a buffer. The resulting temp-table will have zero or one records, regardless of the number of records in the source table.
Code Block | ||
---|---|---|
| ||
/** * Purpose: Creates a temp-table with the current record of the provided * buffer * Notes: When the buffer does not have a record available, an empty temp-table * is created * @param phBuffer The handle of the source buffer * @param pcFieldNames The comma delimited list of field names to create (CAN-DO like, or ? for all fields) * @return The handle of the created temp-table */ METHOD PUBLIC STATIC HANDLE CreateTempTableFromRecord (phBuffer AS HANDLE, pcFieldNames AS CHARACTER): /** * Purpose: Creates a temp-table with the current record of the provided * buffer * Notes: When the buffer does not have a record available, an empty temp-table * is created * @param phBuffer The handle of the source buffer * @return The handle of the created temp-table */ METHOD PUBLIC STATIC HANDLE CreateTempTableFromRecord (phBuffer AS HANDLE): |
...
SCL-2586 Implemented a new operating mode of the TableModel classes: BufferModel
Description:
The BufferModel is a new operating mode of the TableModel classes of the DatasetModel construct. This mode allows to create an instance of the TableModel based on an existing buffer by passing the buffer into the generated TableModel constructor. This new approach allows to pass around a buffer as an object instance - including the ability to implement Interfaces on a field by field basis.
Customers are required to update customized Templates used by the Business Entity Designer from the templates shipped by use in the Consultingwerk\BusinessEntityDesigner\Templates\Model folder:
- tablemodel.template
- tablemodel_generated.template
SCL-2589 Implemented a base class for Business Tasks
Description:
Previously the SmartComponent Library did not provide a base class for Business Tasks. However certain functionality of Business Tasks required repetitive code in Business Tasks. We have generalized this now in the new abstract base class Consultingwerk.OERA.BusinessTask. Especially for Business tasks implementing the ISupportsRestMethods interface this new base class provides a default implementation for the GetRestMethods methods.
It's however not required to use the base class for any business task.
SCL-2590 DatasetModel Filter on Character field mapped to Enum now based on Enum, not Character
Description:
We've improved the generator for the TableModelFilter classes so that character fields which are mapped to an Enum value are filtered based on the Enum value, not the character value.
SCL-2591 DatasetModel field mapped to Enum now supports customizable mapping
Description:
Mapping DatasetModel/TableModel fields to Enum values is a great method of improving strong typing. However the field values persisted in the database do not always resolve to a value Enum value name (e.g. the value "Partially Shipped" in the sports2000.Order table.
Developers can implement the custom mapping by overriding the GetCharacterEnumFieldValue and SetCharacterEnumFieldValue methods in the generated TableModel class This example implements a custom mapping for the "Partially Shipped" value and falls back to the default behavior for any other field.
Code Block | ||
---|---|---|
| ||
METHOD PUBLIC OVERRIDE Progress.Lang.Object GetCharacterEnumFieldValue (poEnumType AS Progress.Lang.Class, pcFieldValue AS CHARACTER): IF poEnumType = GET-CLASS (OrderStatusEnum) AND pcFieldValue = "Partially Shipped" THEN RETURN OrderStatusEnum:PartiallyShipped . ELSE RETURN SUPER:GetCharacterEnumFieldValue(poEnumType, pcFieldValue) . END METHOD. METHOD PUBLIC OVERRIDE CHARACTER SetCharacterEnumFieldValue (poFieldValue AS Progress.Lang.Object): IF TYPE-OF (poFieldValue, OrderStatusEnum) AND CAST (poFieldValue, OrderStatusEnum) = OrderStatusEnum:PartiallyShipped THEN RETURN "Partially Shipped" . ELSE RETURN SUPER:SetCharacterEnumFieldValue (poFieldValue) . END METHOD. |
...
SCL-2593 New scl-gen templabe for immutable value objects
Description:
We've added an additional template for the scl-gen code generator for Value Objects.
See https://documentation.consultingwerkcloud.com/display/SCL/Scaffolding+utility+for+common+utility+classes for more.
SCL-2597 Implemented a Base Class for ValueObjects
Description:
We've implemented Consultingwerk.ValueObject as an abstract base class for Value Objects. The base class provides a default implementation for the Equals() and ToString() overrides as well as a simple hashing algorithm.