Page tree
Skip to end of metadata
Go to start of metadata

NEW

New / Create new Sendung

Create of dialog of type newRecordDialog

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:

 

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:

 

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

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:

 

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

 

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.

Note about attribute TypeRange

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