TopLogic - the automated application engine
  • Releases
  • Dokumentation
  • Github
  • Discord
  1. Home
  2. Releases
  3. TL_7.5.0-M8
  4. #26797

7.5.0-M8
TopLogic Release

2023-03-20

enhancement

critical
#25645
OpenAPI server
#26207
REST calls via TL script to external APIs according to OpenAPI specification
major
#27196
DeepL: Use glossaries for translations
#27214
TL-Script unversioned object comparison
#27215
Historical to-n references
#27234
Include ChartJS and OpenAPI in BPE Standard Configuration
minor
#26835
Perform instanceof checks unversioned
#26935
Make Close dialog configurable by Create
#27225
Bulk Dependency Update
#27236
Model definition for revision
#27251
TLModelUtil: Replace declared ConfigurationException with TopLogicException

defect

critical
#27205
TL-Sync transmitter stops on association update
major
#27139
Button menu in button bar does not open
#27207
Search suggestions of SelectFields and popups of the breadcrumb are placed incorrectly
#27228
Missing display of Flex data for historical objects
#27241
OpenAPI: Error although query successful
minor
#26797
Transaction with user input: invisible properties of the form model cannot be assigned values (initialized)
#26921
ClassCastException when evaluating security rules that refer to (non-structuredElement) singletons of a module.
#27096
Tree does not scroll the selected node into the viewport on (external) selection
#27167
Normalizing JSPs leads to wrong indentation for if-else blocks
#27203
Application tests with chart.js report on home page fail
#27204
PersistentEnumeration.tValue(...) leads to ClassCastException
#27218
Grid tables: Calculated column: Single-Value SelectField requires list value.
#27227
User time zone and thus SubSession time zone can be zero
#27231
Incremental modification of a set-valued attribute not possible.
#27239
Typo in database configurations at "password template
#27240
OpenAPI: Missing content type for JSON request content
#27249
TLScript suggestions are always displayed in the same language
#27250
Missing Maven profile "ide" in Eclipse
defect

minor

#26797

Transaction with user input: invisible properties of the form model cannot be assigned values (initialized)

AppEditorsInAppDevelopment

Background

In a "transaction with user input," the user input (for the form definition—specifying which values the user should be able to enter) is described as a separate model type. During "initialization," this model type is populated with values from the target model (fields are pre-filled).

Now, during “Initialization,” you may want to store additional information in this model type for the form definition—information that should not be displayed to the user or entered by the user: For example, during “Initialization,” certain properties of the target model should be stored in the form object so that they can be used in a constraint on the form model to “validate” subsequent user input or to annotate “suggested values” for it.

Problem

Such attributes, which are not displayed in the form for user input (either because they are not part of the form or are declared as “hidden”), cannot be assigned values in the “initialization” expression:

Caused by: java.lang.IllegalStateException: Attribute 'tl.contract.offer:OfferStateChangeForm#permittedValues' cannot be modified.
    at com.top_logic.element.meta.form.overlay.FormObjectOverlay.tUpdate(FormObjectOverlay.java:449)
	at com.top_logic.model.search.expr.DynamicSet.eval(DynamicSet.java:92)
    at com.top_logic.model.search.expr.GenericMethod.internalEval(GenericMethod.java:107)
	at com.top_logic.model.search.expr.SearchExpression.evalWith(SearchExpression.java:95)
    at com.top_logic.model.search.expr.SearchExpression.eval(SearchExpression.java:54)
	at com.top_logic.model.search.expr.Block.internalEval(Block.java:43)
    at com.top_logic.model.search.expr.SearchExpression.evalWith(SearchExpression.java:95)
	at com.top_logic.model.search.expr.Lambda.internalEval(Lambda.java:82)
    at com.top_logic.model.search.expr.SearchExpression.evalWith(SearchExpression.java:95)
	at com.top_logic.model.search.expr.Call.internalEval(Call.java:57)
    at com.top_logic.model.search.expr.SearchExpression.evalWith(SearchExpression.java:95)
	at com.top_logic.model.search.expr.Lambda.internalEval(Lambda.java:82)
    at com.top_logic.model.search.expr.SearchExpression.evalWith(SearchExpression.java:95)
	at com.top_logic.model.search.expr.Lambda.internalEval(Lambda.java:82)
    at com.top_logic.model.search.expr.SearchExpression.evalWith(SearchExpression.java:95)
	at com.top_logic.model.search.expr.query.DirectQueryExecutor.executeWith(DirectQueryExecutor.java:62)
    at com.top_logic.model.search.expr.query.QueryExecutor.execute(QueryExecutor.java:227)
	at com.top_logic.model.search.providers.MonomorphicCreateFormBuilderByExpression.fillFormContext(MonomorphicCreateFormBuilderByExpression.java:99)

After initial consultation, this was classified as a bug.

Test

  • /com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/layout/transaction/TestCustomTransaction.script.xml
  • Get Started
  • Github
  • Discord
  • Das Unternehmen hinter TopLogic
  • Softwareentwicklung heute
  • Kontakt

© Copyright – Business Operation Systems GmbH

  • top-logic.com
  • Nutzungsbedingungen
  • Impressum
  • Rechtlicher Hinweis
  • Datenschutz
  • DE
  • Login