on 01-24-2008 6:32 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.