Sounds like you have a DataWindow object and you need it to be a u_dw
object, which is a descendant of DataWindow. If so, you've a couple of
choices:
1. Export the window source and edit the code to change dw_1 to be
descended from u_dw rather than DataWindow.
2. Delete dw_1 and place a u_dw user object on the window and replace the
code.
Your decision should be based on your familiarity and comfort level with
working with exported PB objects in text mode, as compared with the amount
of code you already have developed.
We customize our toolbar so that we easily place u_dw's on the
windows/userobjects, rather than DataWindows. To do that, open the window
painter (you'll also have to do it on the user object painter for working
with tab/tabpage objects), rightclick on the toolbar and select Customize;
PB opens a dialog window. Click the Custom radio button, scroll down and
find an icon you like (we use the one that looks like a DataWindow with a
small 1 in the corner) and drag it into the toolbar in the dialog window. PB
will open another dialog. Enter "UserObject u_dw" in the first field,
"u_dw" in the second and third fields and click OK. It closes. Click OK.
Your toolbar now has a button for adding u_dw's to your window.
-----Original Message-----
From: Jill M. Claus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 03, 1999 14:48
To: [EMAIL PROTECTED]
Subject: PFCSIG: of_retrieve() function
I am using PowerBuilder 6.5 with Sybase 11 on an NT workstation.
As I resolved my earlier problem with connecting to two databases, I
realized that there is an of_retrieve() function that I assume is the PFC
equivalent of using the non-pfc retrieve().... so I thought I'd try it.
The open event of my window use to say ..
ll_rows = dw_1.Retrieve()
And it worked fine. When I changed it to say...
ll_rows = dw_1.of_Retrieve()
or
ll_rows = dw_1.inv_base.of_Retrieve()
I got an error saying that of_retrieve() is an unknown function. I tried
putting
dw_1.of_SetBase(TRUE) in the script as well and still got the same error. I
figure I must be missing something simple...
Does anyone know why it isn't working?
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]