Hi,
lets say that i have two table in my database:
	and
	There is only one worker for each job but I don't think it really matters here.
I read something about setOptionDataSource and I created a datasource containing all the columns from the following query:
	But I dont know how to manage adding and updating rows. Can somebody tell me how to do this ?
							
						
					lets say that i have two table in my database:
Code:
	
	Users: ===== UserId - int (autoincrement, primary key) Name - string
Code:
	
	Jobs ===== JobId - int (autoincrement, primary key) WorkerId - int, foreigny key from table Users Title - string
I read something about setOptionDataSource and I created a datasource containing all the columns from the following query:
Code:
	
	select JobId,Title,WorkerId,Name from Users,Jobs where WorkerId = UserId
Comment