Hi,
I am trying to change a dddw datacolumn and displaycolumn
dynamically and then I want to see the value of the new datacolumn I have tried a number of things but nothing seems to work. It gets the original datacolumn value. Even though I change the datacolumn in the middle of the code. I have to make another selection from the dropdown to get the new value. It is as if the itemchanged event is starting from the top and reassigning the dataobject variable, data,
to the ls_data variable (with new value). Is there anyway to set data to the new value as soon as I change the datacolumn.
Could someone please help me with this.
This is being done in the itemchanged event. The code is below:
// Get the name of the field changed
ls_column_name = dwo.name
// Set a variable to the data coming in
LS_DATA = data
// Describe the data column which will be order_id (the original datcolumn)
ls_DataColumn1 = dw_1.Describe(ls_column_name + ".DDDW.DataColumn"
// Change the data column from order_id to category_id;
dw_1.object.ls_column_name.dddw.datacolumn = "category_id"
// Describe the new datacolumn
ls_DataColumn2 = dw_1.Describe(ls_column_name + ".DDDW.DataColumn"
// Get the new value of the new datacolumn
LS_DATA = data
getjbb
I am trying to change a dddw datacolumn and displaycolumn
dynamically and then I want to see the value of the new datacolumn I have tried a number of things but nothing seems to work. It gets the original datacolumn value. Even though I change the datacolumn in the middle of the code. I have to make another selection from the dropdown to get the new value. It is as if the itemchanged event is starting from the top and reassigning the dataobject variable, data,
to the ls_data variable (with new value). Is there anyway to set data to the new value as soon as I change the datacolumn.
Could someone please help me with this.
This is being done in the itemchanged event. The code is below:
// Get the name of the field changed
ls_column_name = dwo.name
// Set a variable to the data coming in
LS_DATA = data
// Describe the data column which will be order_id (the original datcolumn)
ls_DataColumn1 = dw_1.Describe(ls_column_name + ".DDDW.DataColumn"
// Change the data column from order_id to category_id;
dw_1.object.ls_column_name.dddw.datacolumn = "category_id"
// Describe the new datacolumn
ls_DataColumn2 = dw_1.Describe(ls_column_name + ".DDDW.DataColumn"
// Get the new value of the new datacolumn
LS_DATA = data
getjbb