I am writing a program that has a button in the viewer that I would like to
get the next record in the SDO when pressed. How do I get the handle of the
SDO so that I can request the next record from the SDO when the button is
pressed?
To unsubscribe, e-mail: dev-unsubscribe@adm2.possenet.org
For additional commands, e-mail: dev-help@adm2.possenet.org
Freddy,
Assuming all of your objects are Smart Object
hDataSource = .
"Boisseau, Freddy" wrote:
I am writing a program that has a button in the viewer that I would like to
get the next record in the SDO when pressed. How do I get the handle of the
SDO so that I can request the next record from the SDO when the button is
pressed?
>
To unsubscribe, e-mail: dev-unsubscribe@adm2.possenet.org
For additional commands, e-mail: dev-help@adm2.possenet.org
--
Robert Langer
Consultant, Progress Software Sydney
This message represents my opinion, not that of Progress Software
To unsubscribe, e-mail: dev-unsubscribe@adm2.possenet.org
For additional commands, e-mail: dev-help@adm2.possenet.org
At 11:16 7/23/2002 -0400, Boisseau, Freddy wrote:
>I am writing a program that has a button in the viewer that I would like to
>get the next record in the SDO when pressed. How do I get the handle of the
>SDO so that I can request the next record from the SDO when the button is
>pressed?
Freddy,
You actually don't need to get the handle specifically. Just put the
following code
in the CHOOSE trigger for your button:
RUN fetchNext in DYNAMIC-FUNCTION('getDataSource').
The getDataSource function will "feed" the SDO's handle into the RUN statement.
John
>
>To unsubscribe, e-mail: dev-unsubscribe@adm2.possenet.org
>For additional commands, e-mail: dev-help@adm2.possenet.org
J. D. Johnson & Associates, L.L.C.
Training, Consulting, and Project Management
5730 Buffridge Trail Phone: (972) 733-1422
Dallas, TX 75252 USA Fax: (972) 733-1580
Email: jdj@jdjohnson.com Web: http://www.jdjohnson.com
To unsubscribe, e-mail: dev-unsubscribe@adm2.possenet.org
For additional commands, e-mail: dev-help@adm2.possenet.org
Hi Freddy ,
If you want ot get the handle of the DataSource connected to a viewer, you
can use
hHandle = DYNAMIC-FUNCTION('linkHandles':U, INPUT "Data-Source").
This will give you the handle to the SDO and then use
IF VALID-HANDLE(hHandle) THEN
RUN fetchNext in hHandle.
If you want to get a Next record of then use ...
IF VALID-HANDLE(DYNAMIC-FUNCTION('getDataSource')) THEN
RUN fetchNext in DYNAMIC-FUNCTION('getDataSource').
Best Regards,
W. H. Samantha Soysa
Kingslake Engineering Systems (Pvt.) Ltd.,
Level 5, Millennium House,
Navam Mawatha,
Colombo 02,
Sri Lanka.
Tel : (+94) (0)74 720 700
Fax : (+94) (0)74 791 733
e-mail : web : -Original Message-
Sent: Tuesday, July 23, 2002 9:17 PM
To: adm2-dev@possenet.org
Subject: How do I do get the handle of the SDO to be used by
the viewer?
I am writing a program that has a button in the viewer that I would like to
get the next record in the SDO when pressed. How do I get the handle of the
SDO so that I can request the next record from the SDO when the button is
pressed?
To unsubscribe, e-mail: dev-unsubscribe@adm2.possenet.org
For additional commands, e-mail: dev-help@adm2.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@adm2.possenet.org
For additional commands, e-mail: dev-help@adm2.possenet.org