Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How to transform record attributes?

$
0
0
Hello,

i have a rather straight forward problem and can not find any help using google or the search so here is a new thread:

We use smartGWT 3.1 power edition.

I use two databound listGrids, one holds users (id, first name and last name) and the other listGrid is bound to a database view (userId, lastName and firstName and a groupId) to represent a user-group association. I want to transfer data from the user grid to the user2group grid by drag and drop and the "transferSelectedData()" method from listGrid.

If i try to add the records to the user2group grid i get an ORA-01779 because of the first and last name fields so i would like to remove those attributes from the transfered records before they are send to the database. Is it possible to do that using a build-in option or do i have to build this from scratch? If so, is there a best practice to do these sort of operations?

I have searched for hours and would appreciate any kind of tip or solution besides writing a trigger in the database to handle the problem.

Viewing all articles
Browse latest Browse all 4756