Rowid from Selected record in SDO

arm2002

New Member
Hi , I'm new to Version 9 and am only beginnging to get a grip on Smart
data Objects , Smart Data Browsers etc..
I dont want to change a lot of my old coding concepts yet, but do it gradually.
Here is a scenario that I am stuck with and am not sure how to solve it. It is
probarbly quite simple.

I have the following:

A smart window with the following objects.

An SDO Which looks up customer details.
An SBO Linked to sdo which allows you to scroll up and down customer records
A smart folder with 3 pages all including Smart Data Viewers.

I have added a fourth page which has customer orders for example. To do this
I have added another SDO and SDB AND LINKED them accordingly.

My problem is, I want to insert a button on the window or sdb.
When I click this I want to get the rowid for the order in the list and pass it to
an external procedure, and make the necessary amendments there as i was doing in V8.
i'M not sure how to get the rowid of the current record from an sdo.
Also how can i refresh the sdb when i have made the changes from external program.
I know i could pass in the datasource in v9 e.t.c.. but i dont want to change all existing
programs yet.
hope this makes sense!

Thanks for all your help
Roy
 

GordonRobertson

New Member
Call getRowIdent in your order SDO. This will return a comma separated list of the RowIDs used in the current row. One RowID for each table used in the query.

Gordon
 
Top