Print Thread
GotoCurrent()
#3648 07/05/02 08:35 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
One question.
Are there in TOracleDataSet component any method than simulate the method GotoCurrent()
of TTable?.

Thanks.





------------------

Re: GotoCurrent()
#3649 07/08/02 10:24 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
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


Marco Kalter
Allround Automations
Re: GotoCurrent()
#3650 07/09/02 02:42 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
[quote]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?

[/quote]

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

Re: GotoCurrent()
#3651 07/09/02 10:37 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
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


Marco Kalter
Allround Automations
Re: GotoCurrent()
#3652 07/10/02 01:24 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
[quote]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.

[/quote]
Perfect Thank you very much.



------------------

Re: GotoCurrent()
#3653 07/10/02 03:02 PM
Joined: May 2001
Posts: 14
Taiwan
D
Member
Offline
Member
D
Joined: May 2001
Posts: 14
Taiwan
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.


------------------


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.132s Queries: 13 (0.018s) Memory: 2.5171 MB (Peak: 3.0405 MB) Data Comp: Off Server Time: 2024-05-17 13:16:41 UTC
Valid HTML 5 and Valid CSS