- Raymond Longoria
- PowerBuilder
- Wednesday, 22 June 2022 07:50 PM UTC
I am embarrassed about this because it is very easy yet I cannot get this to work. I am sure I am overlooking something very obvious.
In Powerbuilder 2021, in a window I have a datawindow (dw_main) whose datasource has a dddw. On the open event of the window I run the following code. I traced the code and the return values are all good and 3 rows are retrieved with the datawindowchild yet the datawindow in the window is blank. I copied the code from other windows that are doing the same thing yet it does not work here.
datawindowchild ldwc_child
dw_main.Settransobject(SQLCA)
li_rtn = dw_main.Getchild("prj_nbr", ldwc_child)
li_rtn = ldwc_child.Settransobject(SQLCA)
ll_rtn = ldwc_child.Retrieve()
ldwc_child.Insertrow(0)
Any help will be greatly appreciated.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.