PB 12.5
We have a global function that is called which finds SSN columns on a DataWindow and applies an editmask if the user doesn't have the proper permissions to see SSN.
Now I am trying to extend this to nested reports.
I have a free form DataWindow that has several nested reports. The SSN on the main DataWindow is being masked as expected. I added code which lists all the nested reports which works correctly.
The problem is that GetChild is not working. If it were working, I would loop through the columns and apply the editmask the same way I am already doing for the main DataWindow.
I was hoping to not have to modify the nested DataWindow itself to check permissions in the editmask expression.
I think the reason for the restriction is, that a nested report (child) in a "normal" datawindow is not distinct. Remember that the child contains not only the design information but also the data. For each row there is a separate instance that contains its own data.
In a composite datawindow is only one row so there is only one instance for each report.
Regards .... René
I am pretty sure that its just because that feature was not properly finished. A DDDW is a nested child within a parent DWO. Another DWO within a nested DWO should not be a problem. Especially, where Ronnie's code works to get the DW Child, the GetChild() could just to the same internally.
Regards ... Chris