Hi all
I have spent hours trying to get this done but to no avail.
Here is what I have
I have a dw control (let's call it dw_main) within it there is a column ('trouble') that is of edit style dddw (dropdowndatawindow).
I also have a datawindowchild (dwc_trouble) that has the reference to column 'trouble'. The property auto retrieve is off and it is retrieved from script with parameters.
Issue at hand
After I do a dw_main.Reset(), dw_main.Insertrow(0), AND dwc_trouble.Reset(), the dw_main got refreshed (clean slate). However, when I clicked on the column 'trouble' it still has the rows from previous retrieve. I also tried a dwc_trouble.retrieve(somebogusvalue) it still showed the old rows.
This is all in dw_main's itemchanged event.
Could you provide your insight/solutions?
Thanks
CJ
Here is what the app should be doing
- user inputs into one other column in dw_main, say Color
- when they tab out of the Color column, the column 'trouble' should then populate (retrieve with value from Color) a list of product names of such color (dwc_trouble will have a list of names)
- If there is no row retrieved into dwc_trouble, both dw_main and dwc_trouble will get reset (but dwc_trouble still retains previous records)
- I just tried to call the dwc_trouble.reset() from a button control (clicked!) in the same window. It didn't rid of those previously retrieved rows in dwc_trouble
I hope this will help you help me
Thank yuo
1. If no rows in the dddw for column "trouble" are retrieved, you want to clear the entire dw_main datawindow, or clear the column "color"?
2. If no rows in the dddw for column "trouble" are retrieved, the dddw for column "trouble" will be empty. You want reset the child DW but somehow the child DW retains previous records? This sounds to me like you want the dddw to be empty and populated at the same time. Which is it???? Very confusing.