RE: How to use single data block to query multiple tab...
Use the from clause query in the property palette of the block and write the sql statement using joins and fetch the data from multiple tables try it guys its pretty fast and effective as well
RE: How to use single data block to query multiple tab...
QUERY_DATA_SOURCE_NAME Specifies the name of the block's query data source. Note: You cannot set a blocks’ QUERY_DATA_SOURCE_NAME when the block’s datasource is a procedure. - Use the SET_BLOCK_PROPERTY for this. And DML Data target name is for changing the DML target. Cna ignore my last ans.
RE: How to use single data block to query multiple tables
1) first create a block using the table A (say). then in the Query Data Source name write the name of the other tables say B. 2)In the Where clause of the block write the join like a.colname b.colnname.I the connecting coloumn between two tables) 3) set the query allowed property to YES 4)set key mode non updateable.