on 08-18-2008 12:31 PM
This is a question regarding NW Mobile 7.1, PDA development. NWDS SP05 P01
Dear all,
I am using a data objectect operation which I extended in the service component by 2 more columns. In the UI component I later loop through the result set and assigne values to those columns.
Now I found that I cannot modify the underlying DO with this operation anymore. When I call the set method for a column which exists in the database (not for the manually added columns) and then call the get method, the old value is fetched. This happens before and after calling commit.
questions:
1: could it be that the result set now is read only?
2: should I have added the two columns to the context instead of the DO output structure?
Thanks, Andre
Hi Andre,
I´m not sure if I completely understood what you are doing. What exactly do you mean with a Data Object operation? And how did you extend it by 2 additional columns?
It looks to me that you are maybe using Data Structures. In this case, you can add more "custom attributes" to the Data Structures. But these entities are just read only. So, calling the setter-methods of the Data Structure will only modify the objects in memory. But it will never write these changes to the database. This is the nature of the Data Structure.
Please come back to me if you are doing something else.
Regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
thanks again. This answers my problem. I was using Data Structures and I just changed it back to not use my structure. Instead I added the columns to the context and it works
Good to understand that Data Structures are read only.
Cheers, Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.