cancel
Showing results for 
Search instead for 
Did you mean: 

Saving datas into database table

Former Member
0 Kudos

Hi,

I have created 3 textboxes. After entering all the details and press save it should be saved into the database. What is the code for that

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi shyja.....

consider there are three attributes attr1 attr2 attr3 that are bound to the text boxes.

now in the on action method of the respective event...

read the three attributes that has to be saved....

it will be saved in say, var1 var2, var3.

consider the database table to be db1 and the fields as f1, f2, f3.

then write the following code.

db1-f1 = var1.

db1-f2 = var2.

db1-f3 = var3.

insert db1.

---regards,

alex b justin

Former Member
0 Kudos

Hi Shyja ,

for your save button create one action, on the properties of the button you can create a new action.

On the action of save button

read the node thats binded to the text fields using the wizard

you will get the values in an itab.

now insert itab or work area to your db table.

Regards

Sarath