GotoCurrent()

rdiez

Member²
One question.
Are there in TOracleDataSet component any method than simulate the method GotoCurrent()
of TTable?.

Thanks.

------------------
 
Not really. There is no TTable concept, and therefore no global current record for a table.

What exactly are you trying to accomplish?

------------------
Marco Kalter
Allround Automations
 
Originally posted by mkalter:
Not really. There is no TTable concept, and therefore no global current record for a table.

What exactly are you trying to accomplish?


The user select a record with doble click on a TDbGrid and then I need to situate on this record in other Form wiht other TOracleDataset.
But I don
 
You can include the ROWID in the select-list of the queries, and use TOracleDataSet.RowId of one dataset in the TOracleDataSet.Locate function for the other dataset.

------------------
Marco Kalter
Allround Automations
 
Originally posted by mkalter:
You can include the ROWID in the select-list of the queries, and use TOracleDataSet.RowId of one dataset in the TOracleDataSet.Locate function for the other dataset.

Perfect Thank you very much.

------------------
 
I can afford a method to solve you problem.
First, add a rowid field and name it to your
alias name. Then whem user double click on
dbgrid, you can reference the field as your
primary key. Because very record in the oracle env has a unique key call rowid.

------------------
 
Back
Top