Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1833
Recursive Bound Dataset - Row state Unchanged
posted

I've another issue with the tree. When a modification is made to values in the leaf nodes I use the the AfterNodeUpdate method to call a recursive function that will calculate the totals further up the tree. i.e. A summary of child totals. 

The code appears to function fine and I can see that the nodes/cell values are changed as expected. However, when I attempt to commit these modifications to the database I see that many of the rows have a rowstate of unchanged (any that were changed progammatically). But they have changed you can see the values being set as you make changes to the child nodes.

I've another simple example of this available at
http://www.smartdata.co.uk/downloads/test_bind_rowstate.zip

I noticed that there is a function 'update' available on nodes, but unlike the grid, there isn't global 'updatedata' function.
I tried to call Node.Update when setting the values in the recursive function but this has the effect of hiding the changes in the GUI. Very odd indeed!

I'm really sorry to ask for more details, but why do these changes not get reflected down to the datasource?

Parents Reply Children
No Data