In article <412fti$
...@pipe1.nyc.pipeline.com>,
ebar
...@nyc.pipeline.com (Edward Barlow) wrote:
>I think there is more to composite reports than is explained anywhere.
>Powerbuilder is seriously lacking documentation on this subject. I have
>been beating my brains against the wall
>for the past week - help....
>1) I have figured out that all reports need same print sizing otherwise
>report looks really messed up
Yep. Actually, this 'feature' is listed as a one-line tip somewhere in the
documentation. You shoulda seen what one of my colleagues went through to get
a report to work when he had the unit sizes on nested reports different from
the composite 'master' report. Impressed the hell out of me that he got it to
work.
>2) I name the reports and then use getchild and retrieve the children.
>Code example follows, and it looks right but FAILS. I get a request to the
>screen for retrieval arguments when I do the getchild function???? It then
>gives a GPF. HELP??? They need some examples...
>All I want is to pass a single argument to every dw in the nested report...
>Ed
>------------------
>int rc
>string user_view
>DataWindowChild ch1,ch2,ch3
>user_view="SYBASE"
>rc = dw_sheet.GetChild( "rpt1" ,ch1)
>if rc = -1 then MessageBox("Error","No Child Window")
>rc = dw_sheet.GetChild("rpt2",ch2)
>if rc = -1 then MessageBox("Error","No Child Window")
>rc = dw_sheet.GetChild("rpt3",ch3)
>if rc = -1 then MessageBox("Error","No Child Window")
>// Gets child 2 and three at this stage
>ch1.SetTransObject(sqlca)
>ch2.SetTransObject(sqlca)
>ch3.SetTransObject(sqlca)
>ch1.Retrieve( user_view )
>ch2.Retrieve(user_view)
>ch3.Retrieve(user_view)
More importantly, this is the hard way. Try a right-click on the body of the
composite 'master' report. One of the selections will be 'retrieval
arguments.' Here, all of the retrieval arguments to be used by the nested
subreports. It does'nt matter if each report does not use ALL of the
specified retrieval arguments.
On each nested report, repeat the right click. Again you will be shown a
selection to choose retrieval arguments. When you assign a retrieval argument
for the nested subreport, use the appropriate argument that you specified when
you built the composite report arguments.
Hope this works for you,
Richard Gillespie
_______________________________________________
These Comments are MINE!. MINE! MINE! MINE!. |
They certainly do not reflect the beliefs of |
the organization with which I am employed; |
anyone who knows me would be among the |
first to agree! |
Return Address rgilles...@pepco.com |
______________________________________________|