baansavvy
12th July 2010, 16:47
Hi,

Sorry for asking simple questions:
1)How to capture the save button when it is pressed for storing the record in the database table?
2)I have many input fields in the form, like hrper602.tov, if user selects the value then how i can insert the record in the database table? I want to know simple code for inserting the record in the table and on which block this code should be written?

mark_h
12th July 2010, 17:42
Which version of Baan? It makes a difference. Multi-occurence or single record? On 4c4 if you generate a session on the table then you really do not have to worry about adding code to save a record. In LN there are other options, but I do not know LN programming.

baansavvy
13th July 2010, 17:09
Baan IV-C,Multi-Occurence

mark_h
14th July 2010, 15:25
When you hit the save button it executes choice.update.db.

matigro
16th July 2010, 21:34
When you hit the save button it executes choice.update.db.

Another is to use before.write: and before.rewrite: of main.table.io section