The name of the DataWindow object that is the nested report within the main DataWindow object.
Report controls
PowerBuilder dot notation:
dw_control.Object.reportname.DataObject
Describe and Modify argument:
"reportname.DataObject = ' dwname ' "
Parameter |
Description |
---|---|
reportname |
The name of the Report control in the main DataWindow object for which you want to get or set the nested DataWindow object |
dwname |
A string naming a DataWindow object in the application’s libraries that is the DataWindow object for the report within the main DataWindow object |
Select the control and set the value in the Properties view, General tab, Report option.
setting = dw1.Object.rpt_1.DataObject
dw1.Object.rpt_1.DataObject = "d_empdata"
setting = dw1.Describe("rpt_1.DataObject")
dw1.Modify("rpt_1.DataObject='d_empdata'")