Can any one tell me how I create the DWO object that the itemchanged event
wants in order to be triggered?
I can't figure it out for the life of me.
This is only one of several attempt I have made, which crashes.
DWObject ldw_object
ldw_object.name = dw_1.Object.we_date
THIS.Event ItemChanged(1, ldw_object, ls_date)
Thanks in advance.
Patricia
---
PowerObject!
-----------------------------------------
http://Groups.Yahoo.com/group/PowerObject
PowerBuilder / PFC Developers' Group
The best way to handle this is to move the code that you need to execute
from multiple places to a user-defined event (or function) and call that
event (or function) from the itemchanged event and any other place that it
is needed.
"Patricia Cipriani" <cipr...@londonhydro.com> wrote in message
news:ubysUDLPDHA.301@forums-2-dub...
> Hi
> I tried that but it crashes with a NULL object reference on the
ItemChanged
> event when I reference dwo.name.
>
> __________________________________________________
> dw_1.ItemChanged Event Code:
>
> CHOOSE CASE dwo.name
> .....
>
> ___________________________________________________
> dw_1.ButtonClicked Event code
>
> DWOJECT ldwo_object
> ldw_object = dw_1.Object.we_date
> THIS.Event ItemChanged(1, ldw_Object, ls_date)
>
> Thanks,
> Patricia
>
>
> <PowerObject!> wrote in message
> news:9EF81F8D2268E97E00080F1885256D52.0005740A85256D52@webforums...
"Patricia Cipriani" <cipr...@londonhydro.com> wrote in message
news:ubysUDLPDHA.301@forums-2-dub...
> Hi
> I tried that but it crashes with a NULL object reference on the
ItemChanged
> event when I reference dwo.name.
>
> __________________________________________________
> dw_1.ItemChanged Event Code:
>
> CHOOSE CASE dwo.name
> .....
>
> ___________________________________________________
> dw_1.ButtonClicked Event code
>
> DWOJECT ldwo_object
> ldw_object = dw_1.Object.we_date
> THIS.Event ItemChanged(1, ldw_Object, ls_date)
>
> Thanks,
> Patricia
>
>
> <PowerObject!> wrote in message
> news:9EF81F8D2268E97E00080F1885256D52.0005740A85256D52@webforums...
__________________________________________________
dw_1.ItemChanged Event Code:
CHOOSE CASE dwo.name
.....
___________________________________________________
dw_1.ButtonClicked Event code
DWOJECT ldwo_object
ldw_object = dw_1.Object.we_date
THIS.Event ItemChanged(1, ldw_Object, ls_date)
Thanks,
Patricia
<PowerObject!> wrote in message
news:9EF81F8D2268E97E00080F1885256D52.0005740A85256D52@webforums...
Shouldn't it be
DWObject ldwo
Long ll_row
...
ll_row = dw_1.GetRow()
ldwo = dw_1.Object.we_date[ll_row]
THIS.Event ItemChanged(1, ldw_object, ls_date)
???
Patricia,
Why would you need to call Itemchanged event?
Wouldn't it be better to use a SetColumn(), SetText(ls_date) and then call a
AcceptText() to trigger an Itemchanged event?
Or else you can directly use SetItem()
Thanks,
Biju
"bede" <be...@nospam.sofico.be> wrote in message
news:%23Qlv72HPDHA.186@forums-2-dub...
> Assign a valid dwo to the declared variable (don't assign it to the name
> property)
>
> DWObject ldwo
> ...
> ldwo = dw_1.Object.we_date
> THIS.Event ItemChanged(1, ldw_object, ls_date)
>
> Ben
>
> "Patricia Cipriani" <cipr...@londonhydro.com> wrote in message
> news:eke86DEPDHA.186@forums-2-dub...
DWObject ldwo
...
ldwo = dw_1.Object.we_date
THIS.Event ItemChanged(1, ldw_object, ls_date)
Ben
"Patricia Cipriani" <cipr...@londonhydro.com> wrote in message
news:eke86DEPDHA.186@forums-2-dub...