Hi,
how can I add additional values to a DSRequest just before it is getting saved?
Let`s say I have a grid where a user can add information about himself. Now there are some values which I already know, for instance the userName (on client- and serverside).
Now I want to merge the already known fields with the information he added and store everything via SQL DataSource to a table.
My question is: Where would be the right place to add that already known data?
I`m adding the information by using the startEditingNew() method:
is there any handler which I can use for the listGrid or do I have to define an add-operation in my ds.xml?
I`m sure this is a common procedure so I hope someone can help me.
how can I add additional values to a DSRequest just before it is getting saved?
Let`s say I have a grid where a user can add information about himself. Now there are some values which I already know, for instance the userName (on client- and serverside).
Now I want to merge the already known fields with the information he added and store everything via SQL DataSource to a table.
My question is: Where would be the right place to add that already known data?
I`m adding the information by using the startEditingNew() method:
Code:
final IButton btnAddUser = new IButton("add user"); btnAddUser.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { userGrid.startEditingNew(); } });
I`m sure this is a common procedure so I hope someone can help me.
Comment