title: PeopleSoft Rowset copy current row only
body: <p>I have a record with several child records on a page.  I have a button on the page that triggers a report through XML Publisher via rowset.  The problem I am having is the rowset I am passing to the report contains everything in the buffer -- I want only the current context to show on the report.  What I have right now:</p>
  
  <pre><code>&amp;rs_resp = CreateRowset(Record.AVZ_JD_RESP_TBL);
  &amp;rs_expr = CreateRowset(Record.AVZ_JD_EXPR_TBL);
  &amp;rs_skls = CreateRowset(Record.AVZ_JD_SKLS_TBL);
  &amp;rs_dtl = CreateRowset(Record.AVZ_JD_DTL_TBL, &amp;rs_resp, &amp;rs_expr, &amp;rs_skls   
  </code></pre>
  
  <p>&amp;RS0 = GetLevel0().GetRow(1).GetRowset(Scroll.AVZ_JD_DTL_TBL);<br>
     &amp;RS0.CopyTo(&amp;rs_dtl);</p>
  
  <p>Then I kick off the report:</p>
  
  <pre><code>&amp;oReportDefn.SetRuntimeDataRowset(&amp;rs_dtl);   
  &amp;oReportDefn.ProcessReport(&amp;MyTemplate, &amp;LanguageCd, &amp;AsOfDate, &amp;OutFormat);
  </code></pre>
  
  <p>I was previously using a Rowset.Fill on each of the rowsets (parent and child), but I the copyto method somehow seemed "cleaner" (certainly less code :-) ).  Is there a way to copy the current context only?</p>
  
  <p>Thanks</p>