Page tree

Versions Compared

Key

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

Table of Contents

NEW

Image Added

New / Create new Sendung

Create of dialog of type newRecordDialog

Image Added

Image Added

Image Added

Image Added

How does adding of a record work

Create button via Dialog. Which has a toolbar. It opens in ‘add-mode’. Triggers de AddRecord in the BE. Call GetInitialValues. Optionally we can pass optional info to the GetInitivalues.

Then the data Is displayed in the form. When the user presses Save, it saves the Data. It should show the new record in the maint.screen. On the toolbar in the Dialog, there is attribute ‘EventToolbarGo:

Image Added

 

On the UI via the GetInitialValues, attributes ForeignKeyFields + Values are passed.

Calls into BE, and returns (Preview) the dataset with initial values.

IN the toolbar, there is a toolbarkey:

  1. It is a menustructure name (normal way)
  2. Or a file from uicache:

Image Added

 

Create a TableIO from the ribbon to the most important form.

Image Added

SimpleSwatText

  • has backend code behind it
  • you can maintain text for everything
  • there are different types, i.e. Sendung, TextForCustomer, etc

 

In the database, table FrameworkDB.Type, a type of text can be defined. For example:

  txt.sendung.formular

This is the type of a specific text.

The types are exported and imported during the staging process, with one remark: The flag must be set to 'S'.

 

Important are these fields:

Image Added

 

As an attribute of the SimpleSwatText instance, the typeRange must be set to this SelfKey value, i.e. txt.sendung.formular.

Image Added

 

Now, when entering a text and Saving this text, the Text is stored in FrameworkDB.Txt table, together with the selected Type and the selfhndl of the selected (Sendung) record.

Info
titleNote about attribute TypeRange

Comma separated list of type(s) (seems to work with a find first where begins).