gartsports
MIS
Hi all!
I'm having a problem with ShareData. I've done it before, but it was a long time ago! I am writing the app with PB6.5 and it appears to be sharing the data ok, but I have one dw (freeform) for maint and the other is a grid dw. I want the freeform dw to change when I select a row in the grid dw, but it's not doing it. Here's the details:
freeform dw is dw_1
grid dw is dw_2
In my window open event I have:
dw_2.SetTransObject(SQLCA)
dw_2.Retrieve()
dw_2.ShareData(dw_1)
In the clicked and doubleclicked events of dw_2 I have:
This.SelectRow(0, FALSE)
this.SetRow(row)
This.SelectRow(row, TRUE)
It is selecting the row fine in dw_2, but dw_1 is not changing. Can someone give me a hand? I think I'm having a brain fart! Thanks!!
Chris
I'm having a problem with ShareData. I've done it before, but it was a long time ago! I am writing the app with PB6.5 and it appears to be sharing the data ok, but I have one dw (freeform) for maint and the other is a grid dw. I want the freeform dw to change when I select a row in the grid dw, but it's not doing it. Here's the details:
freeform dw is dw_1
grid dw is dw_2
In my window open event I have:
dw_2.SetTransObject(SQLCA)
dw_2.Retrieve()
dw_2.ShareData(dw_1)
In the clicked and doubleclicked events of dw_2 I have:
This.SelectRow(0, FALSE)
this.SetRow(row)
This.SelectRow(row, TRUE)
It is selecting the row fine in dw_2, but dw_1 is not changing. Can someone give me a hand? I think I'm having a brain fart! Thanks!!
Chris