A window inside the print preview button code is
S_print ls_print
Ls_print. Dw_name="temp. PSR"
Dw_1. Saveas (". \ temp. PSR ", psreport! , true)
Openwithparm (w_print_sy00 ls_print)
Preview window with compound inside the open style is
S_print ls_print
Ls_print=message. Powerobjectparm
Dw_1. Object. Dw_2. DataObject=ls_print. Dw_name
Dw_1. Settransobject (sqlca)
Dw_1. Retrieve ()
A window of the database to the compound style window DW_2, why the red box in the preview window into digital,
No coming, this is made of DropDownDW???????
How should do??????? Ask for help??
CodePudding user response:
After using getchild first find the DDDW, let settransobject and retrieve itCodePudding user response:
preview window open event to change this, also still won't do, what is the problem?? ,,,S_print ls_print
Ls_print=message. Powerobjectparm
Dw_1. Object. Dw_1. DataObject=ls_print. Dw_name
Dw_1. Settransobject (sqlca)
Dw_1. Retrieve ()
Datawindowchild dw1, dw2
Dw_1. Getchild (' dw_1, dw2)
Dw2. Settransobject (sqlca)
Dw2. Retrieve ()
If it's not compound style window is hers, showed normal,,,?? , what is the problem?
CodePudding user response:
Your DW_2 settransobject are set inside, you are will DW_1 share to or COPYROWS DW_2 in the past, to manually load the various chiledw