2. April 2009 17:00
aus C/Side Reference zu "Key"The combination of the data in the fields you select for the key must be unique. The first key you create will be the primary key for the table.
2. April 2009 19:56
dayscott hat geschrieben:1. Frageaus C/Side Reference zu "Key"The combination of the data in the fields you select for the key must be unique. The first key you create will be the primary key for the table.
In der SQL Welt sind Fremdschlüssel nicht eindeutig. Hier jedoch schon?
dayscott hat geschrieben:2. Frage
Ein Flowfield Tutorial würde als Abriss so aussehen:
1. In Tabelle x: Schlüssel aus ein / mehreren Feldern definieren, ein / mehrere Feld als Sumindex Field festlegen
2. In Tabelle y: Feld anlegen, als Flow Field in den Properties definieren und CalcFormula angeben
3. In einer Form: SourceExp einer Textbox aufs Flowfield setzen.
Den Drill Down krieg ich blos nicht zum Laufen *schaem*- aber ansonsten wäre es das doch - oder was gibts für Tücken beim Gestalten eines Flow Fields?
3. April 2009 09:47
stryk hat geschrieben:In der SQL Welt sind Fremdschlüssel nicht eindeutig. Hier jedoch schon?
AutoSplitKey
Use this property to have the system automatically create a key for a new record placed between the current record and the previous record.
Applies to
Forms
Settings
The AutoSplitKey settings are:
To...
Choose...
Let the system create a key which will place a new record between the current record and the previous record Yes
Prevent the system from creating a key which will place the new record between the current record and the previous record No (default)
Comments
There are two prerequisites for turning this property on:
The current key must be the primary key.
The last field in the primary field must be an integer BigInteger, GUID or decimal field. If these conditions are met, you can set this property to Yes.
3. April 2009 10:24
3. April 2009 10:30
dayscott hat geschrieben:O_o - der erstellt automatisch Schlüssel ! Wie oft kommt sowas zum Einsatz?
3. April 2009 15:01
CurrFieldNo
Use this function to return the number of the current field.
CurrFieldNo
CurrFieldNo is a built-in function that is used to identify which field has been altered. It can also be used to identify whether the field is being called by a user from a form or by the system via C/AL code. It is generally used with the OnValidate trigger.
Form
If the OnValidate trigger is called as a result of a change that has been implemented from a Form, CurrFieldNo is assigned the field number of the active field.
C/AL Code
If the field is called from C/AL code then there is no active field and CurrFieldNo is 0.
Example 1
To check whether the OnValidate trigger has been called from a form or from C/AL code, you can construct your code as follows:
FieldTrigger OnValidate
IF CurrFieldNo <> 0 THEN BEGIN
Some code that should only be run if the trigger is called from C/AL code
ELSE
Some code that should only be run if the trigger is called from a form.