1. Bernhard Giesriegl
  2. PowerBuilder
  3. Tuesday, 12 December 2023 10:34 AM UTC

Hi all,

I have a composite datawindow with a nested report in it. This nested report itself contains another nested report.

1

In Desgner preview everything is fine. But running the program, when I do a retrieve on this datawindow nothing is displayed.

2

When I would like to retrieve using GetChild I get a problem, because GetChild will not work on a report with a nested report in it. I get -1 as returncode.

 

How can I display my report like the preview of the designer does?

 

Any suggestiosn welcome!

Thanks,
Bernhard

Bernhard Giesriegl Accepted Answer Pending Moderation
  1. Wednesday, 13 December 2023 07:53 AM UTC
  2. PowerBuilder
  3. # 1

Many thanks for your help, I will try this.

But what I'm not understanding:

A retrieve in designer works properly, doing a retrieve in the dw programmatically gives an empty window - I would have to retrieve the childs separate.

Can anybody repair this, as it is discussed since years?

 

Rgds

Bernhard

 

Comment
  1. Miguel Leeuwe
  2. Wednesday, 13 December 2023 09:25 AM UTC
Maybe in the designer, you have used certain retrieval arguments which have been saved by using the checkbox "Remember retrieval arguments"?

(just guessing).
  1. Helpful
  1. Bernhard Giesriegl
  2. Thursday, 14 December 2023 09:28 AM UTC
Could be the reason!
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 12 December 2023 11:26 AM UTC
  2. PowerBuilder
  3. # 2

There's a "trick" to get the getchild to work, based on temporarily changing the "processing" of the nested report to something else. However I'm not fully seeing your exact case (a small example app would be great). I'm also not fully remembering of what and how. (might have to dig through a bunch of old code).

Maybe someone else has a fresher memory of this than me.

 

Ha! found it!

https://community.appeon.com/index.php/qna/q-a/getchild-of-nested-reports-not-working

Comment
  1. Miguel Leeuwe
  2. Tuesday, 12 December 2023 11:29 AM UTC
HIH
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.