Hi,
I need to add a button that executes a query on my db, then I must hide this button and show the query result.
I have to add the button within the detailView of contacts.

I've tested this using yui (using a connectionManager component), but now I have to integrate it with my sugar. I read that sugar uses yui, but when I tried to integrate it, my app it doesn't work.

Please, can anybody help me to do this?