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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the DDDW in a Datawindow during runtime?

Status
Not open for further replies.

kaul125

Programmer
Jan 29, 2002
87
US
I want to change/modify a column in my datawindow to set a new dddw. Can I modify this during runtime using the dw.Modify() ?

If so, I'm having trouble setting the proper syntax. Does anyone know what the correct syntax is to set a new dddw and it's data column and display column using the Modify() function? I've tried using the Describe function to get the value but I must be using the wrong properties.

Thanks,

Keith
 
Dear Kaul,

You can change dddw run time.
Consider following code.
you want to set dddw_emp as new dddw with display column emp_name and datacolumn as emp_id.

// Changing the dddw.
<DW Control Name>.Modify(&quot;<Columnname>.DDDW.Name=dddw_emp&quot;)
// Setting display column
<DW Control Name>.Modify(&quot;<Columnname>.DDDW.DisplayColumn='emp_name'&quot;)
// Setting data column
<DW Control Name>.Modify(&quot;<Columnname>.DDDW.DataColumn='emp_id'&quot;)

Or
<DW Control Name>.Object.colname.dddw.name = &quot;dddw_emp&quot;
<DW Control Name>.Object.colname.dddw.displaycolumn = &quot;emp_name&quot;
<DW Control Name>.Object.colname.dddw.datacolumn = &quot;emp_id&quot;

Finally do not forget to call getchild to get new reference of dropdown.
(Any change in dddw or datacolumn or display column always call getchild)

I hope It will work,

Abhijit.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top