I am not doing anything special to get the Nested DW's data.
My export code - dw_rpt_fo_noc.SaveAs("C:\PBXML\XMLNOC.XML",
XML!, TRUE)
My Import code to show in the DW -
dw_rpt_fo_noc.ImportFile("C:\PBXML\XMLNOC.XML", XML!)
If I look @ the XML file generated, I see the data only on
the Header (Main) DW but absolutley no data for any of the
Nested DWs. But somehow ehrn I use ImportFile, I am seeing
all the data.
anil
> There are templates for the import and export.
>
> Within the export templates, you need to add a reference
> to the nested datawindow. At that point, the parent
> datawindow will use the template information from the
> child datawindow to generate it's XML and insert that
> information into the XML exported for the parent.
>
> As far as I know, there is no such capability for
> importing XML. The DataWindow only allows you to import
> into the parent. I have no idea how you're getting it
> into the children.
>
> On 3 Dec 2008 06:59:03 -0800, AR wrote:
>
> >I exported a Nested DW into a XML & was viewing the XML
> file >in TextPad & found that only the contents of the
> main DW are >stored in the XML. I could not find any
> reference to the >nested DWs in the XML. But whn I load
> the XML into the DW, >the data for all the Nested DWs are
> showing correctly. >Where is the Nested DW info stored.
> Can you pl. provide >links that will explain the XML usage
> in PB? >thnx
> >AR
>