Hello Patralekha
This is a generic document on how to access database via Data source. I am more or less doing the same thing. I am not facing problem for establishing connection or displaying result. It works first when i use the connection to initially load the DB connection and display its records. I am facing problem in using the same connection second time after the control goes to view controller by displaying view and comes back to component controller via method call.
Please note, to check whether the connection is being invalidated anywhere, i replace the connection with direct connection and it worked first and second time. But if i use the connection from Data source, it didn't work second time.
An suggestion would help