1. Jay Hastings
  2. PowerBuilder
  3. Monday, 15 June 2020 23:08 PM UTC

I have a report window with an empty datawindow control on it used to display reports. A non visual user object determines which report is asked for, retrieves the reports datawindow syntax from the database, creates the datawindow in a work pbl and retrieves the report. It then uses GetFullState from the report and uses SetFullState on the empty datawindow control to display the report to the user. (hope that all made sense and forgive me if I'm asking again).

I'm getting "load of the nested report d_...... failed" at SetFullState.

The report having issues is a composite report with over a dozen nested reports. The datawindow in the error is one of the nested reports.

I guess I'm unclear what SetFullState does that it complains where retrieving the report does not.

Code snippet....

// Retrieve the Report
ids_report.SetTransObject(SQLCA)
ids_report.Retrieve(il_entityid)

ids_report.GetFullState(lblb_data)
li_rc = ldwr_Datawindow.SetFullState(lblb_data)
idw_Datawindow = ldwr_Datawindow


ids_report is a composite report
ldwr_Datawindow is of type datawindow
idw_Datawindow is the datawindow control visible to the user

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 15 June 2020 23:36 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jay;

  You cannot use the Get/SetFullState on either a NESTED or COMPOSITE DataWindow style object. These commands cannot handle the various "Child" DWO's (aka "Nested Reports") inside the one parent DWO.

  You have two alternatives ...

1) Use the DW's DOT notation to load each child DWO's data

   Example:  ds.Object.dw_1.DataObject = dw.dataobject     // One line for each child DWO

2) Save the Composite or Nested DWO as a PDF and then display the PDF to the user.

Comment
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.