I have a datawindow and a matching word doc file for each of the rows in the dw(guaranteed). When rowfocuschanged is triggered, the application displays the matching word document of the row in the OLE embedded on the window(not the dw). I used this script in the rowfocuschanged event:
list.media_number = This.GetItemNumber(currentrow,"edit_media_editmediaid"
vPath = 'K:\Content Apps\media\D' + string(list.media_number) + ".doc"
ole_detail.clear()
if FileExists(vpath) then
ole_detail.LinkTo(vPath)
end if
I checked on all instances and vPath is a valid filename.
Can anyone please provide some insights as to why this particular function is sometimes working and sometimes not(the application crashes - "error log is being generated"?
Thanks...
list.media_number = This.GetItemNumber(currentrow,"edit_media_editmediaid"
vPath = 'K:\Content Apps\media\D' + string(list.media_number) + ".doc"
ole_detail.clear()
if FileExists(vpath) then
ole_detail.LinkTo(vPath)
end if
I checked on all instances and vPath is a valid filename.
Can anyone please provide some insights as to why this particular function is sometimes working and sometimes not(the application crashes - "error log is being generated"?
Thanks...