just do the following:
enter the following x++code in the run() method of the form (which will create a record immediately before the user has access), AFTER the super() call:
public void run()
{
super();
CustTable_ds.create(true); // CustTable_ds is the name of the datasource…
custTable.Name = "hohoho"; // custTable is the tableobject the datasource is pointing to…
}
regards
wolfgang
-----Ursprüngliche Nachricht-----
Von: Steeve Gilbert [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 14. Oktober 2003 15:50
An: [EMAIL PROTECTED]
Betreff: [development-axapta] Create new record in grid
Hello hardworking Dev-Axapta people! ;-)
I want to recreate a user action programmatically. Normally,
the user open a form, create a new record in a grid and enter a value in
a field. I want to do this automatically and leave the record in
"insert" state so the user can fill in the blank. I don't know where
the code should be located in the form (what method) but It should look
like this :
-Create new record in grid -Set aField to aValue
So simple it can look, I can't find a solution. I welcome every bit of information. Thanks!
Steeve...
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Sponsor
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

