11. Juni 2006 17:54
11. Juni 2006 23:01
SourceTablePlacement
Use this property to tell the system what record to display when the user opens this form.
Applies to
Forms
Settings
The SourceTablePlacement settings are:
To display..................................... Choose
A specific record ............................. Record
The first record in the table .............. First
The last record in the table .............. Last
The record being shown the last
time the user displayed the form ...... Saved (default)
Comments
If you choose Record, you must use the SourceTableRecord property to define the record
you want the system to display. The system checks this property setting when it opens the
form. The system records the last record a user was viewing and saves this information in
the .zup file, a user-specific file that contains user settings
12. Juni 2006 08:38
12. Juni 2006 09:41
[...]
CurrForm.SalesLines.FORM.SETTABLEVIEW(SalesLine);
//hier beginnt die Änderung
if salesline.findlast then //oder find(-) wenn noch kein SP1
currform.saleslines.form.setrecord(salesline);
//ende der Änderung, jetzt sollte der Cursor auf dem letzten Datensatz stehen
END;
[...]
13. Juni 2006 15:37
13. Juni 2006 17:17
19. Juni 2006 00:31
SalesLine.SETRANGE("Document Type",MenuType);
SalesLine.ASCENDING(false); //sortiert in umgekehrter Reihenfolge
CurrForm.SalesLines.FORM.SETTABLEVIEW(SalesLine);