Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change a property of a datawindow inside a datawindow composite

Status
Not open for further replies.

montjoile

Programmer
May 23, 2011
23
CO
hi. I have a grid datawindow which is inside a datawindow composite. I need to insert a row in that datawindow, but I don't know how to do it.

I do can change the properties of a object in that datawindow, but I cannot access to the properties

This is what I tried and didnt worK:
integer li_correlativo
li_correlativo=w_reporte.dw_1.object.dw_2.insertrow(0)

 
Try the GetChild method
Code:
 datawindowchild ldwc
integer li_rc
// the dw inside dw_1 is named "dw_2"
li_rc = w_report.dw_1.getchild("dw_2", ldwc)
// check the return, -1 is a failure
// if success 
ldwc.insertrow(0)

Matt


"Nature forges everything on the anvil of time"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top