1. Albert John
  2. PowerBuilder
  3. Thursday, 27 May 2021 15:27 PM UTC

Hi guys

  I was trying to retrieve a composite datawindow, the datawindow was combined by about 15 datawindows which has a retrieval agrument which was a string  ,I tried the code below it just DID NOT wrok as my expected ,it always poped up the the specify retrieval agrument dialog box even the result was OK,any idea how to deal with this issue? thank you so much

 

DataWindowChild ldwc_child
string ls_dw

dw_print.reset()

for ll_row=1 to 15
ls_dw="dw_"+string(ll_row)
dw_print.GetChild (ls_dw, ldwc_child)
ldwc_child.settransobject(sqlca)
ldwc_child.retrieve(ls_listno)

if ll_row=1 then
ldwc_child.setitem(ldwc_child.rowcount(),"hosp_lv","11")

end if
next



dw_print.visible=true
dw_print.print()

 

 

 

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 27 May 2021 16:43 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Albert;

  You will need to check each child DWO's "Reteival Arguments" to make sure that they align with each of your "ldwc_child.retrieve" commands. If not, the pop-up you are getting would occur.

Regards .... Chris

Comment
  1. Albert John
  2. Friday, 28 May 2021 00:47 AM UTC
I really apperciate it sir, thank you so much
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 28 May 2021 14:21 PM UTC
Hi Albert .. you are most welcome!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.