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!

DDDW changing at runtime

Status
Not open for further replies.

raghu439

Programmer
Apr 14, 2009
1
US
Hi
I am trying to use the following syntax
dw_1.Object.<col name>.dddw.Name= <object>
dw_1.Object.<col name>.dddw.displaycolumn= <>
dw_1.Object.<col name>.dddw.datacolumn= <>
along with this , I am also using getchild in the same event
the problem is I am not retrieving any rows.I am missing data .can somebody suggest me any event which triggers for retrieval during run time.
 
The easiest method to handle dddw's is simply using DataWindowChild's, in my opinion.

Long ll_row
DataWindowChild ldwc

// get the child and load its values (insert new as well)
dw_1.GetChild( 'some_column', ldwc )
ldwc.SetTransObject( Some_trans_object )
ldwc.Retrieve( )
ll_row = ldwc.InsertRow( 0 )
ldwc.SetItem( ll_row, 'dddw_display_column', '--CHOOSE--' )
ldwc.SetItem( ll_row, 'dddw_value_column', '-' )

//set the drop-down to show the '--CHOOSE--' option
dw_1.SetItem( 1, 'some_column', '-' )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top