Binding a row to an object controller and detecting changes

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Binding a row to an object controller and detecting changes

slah
Hi,

I'm working on the followin scenario:
I've a table holding all my data, when I click on a row, I won't to show all details on a form-like view.
To achieve this I've created an object controller and I'm listening to the "changeSelection" event of the selection model of the table. For each new selection, I create a model, assign it to the controller and I get my data shown on the details form.

My problem is:
1. is the binding row-controller ok?
2. why I cannot detect changes in the model?

I can demonstrate the case here http://tinyurl.com/lxgh4dh

can someone kindly check why the "changes detected ..." message never showed up?
and is the binding of a row to an object controller is ok, or is there any straight way to achieve such scenario.

Regards,
Reply | Threaded
Open this post in threaded view
|

Re: Binding a row to an object controller and detecting changes

Christian Hagendorn
Administrator
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Binding a row to an object controller and detecting changes

slah
Hi Chris,
may be I didn't explain what I was after clearly, in fact I don't care about the controller's model change, instead I'm interested to changes in the model's data, for example when I edit "two" to "too" I want to detect that to be able to activate a save button and deactivate other buttons (it's a db navigator bar (save, edit, insert, refresh, etc)).

any clue please?

I'm happy to see I'm binding table row correctly.


Regards,
Reply | Threaded
Open this post in threaded view
|

Re: Binding a row to an object controller and detecting changes

slah
Hello,
this code seems to do what I was after: http://tinyurl.com/k5ncss4

thanks
Reply | Threaded
Open this post in threaded view
|

Re: Binding a row to an object controller and detecting changes

slah
Hello,

the code I posted and that was working yesterday is not working anymore and I'm getting:

There is no event handler for the event 'changeBubble'

can someone please let me know what's wrong since?

Regards
Reply | Threaded
Open this post in threaded view
|

Re: Binding a row to an object controller and detecting changes

Christian Hagendorn
Administrator
CONTENTS DELETED
The author has deleted this message.