Plands.com Logo  Business Internet Services 
Main Menu
Home
Planetary CRM
  Benefits
  Features
  Demo
E-Mail Services
  E-mail Hosting
  Newsletters
  Discussion Lists
Web Hosting
Server Co-location
and Administration
Web Applications
Technical Support
Contact Us
DXP Samples
 
DxpHome  ||   Samples  ||   Details  ||   Docs  ||   Trees  ||   xml-xsl  ||   Links
// RecordSet.java package com.plands.dxp; import com.plands.dbutil.RecordSetUtil; import java.io.; import org.xml.sax.Attributes;

The RecordSet tag is used to create String[][] matrix where each col is created from values supplied by a ArrayParameter tag. The longest input array will determin the number of rows. Arrays that are shorter will have their values repeated to fill the remaining rows in their col.

In this example there is one orderid value but the item value is already stored as an array of values. The first Ap tag will create an array with one element to store the orderid. The next Ap tag will get item array. The RecordSet tag will combine these into a number of rows where all values in the orderid col are the same but the values in the item col are all different.

<dxp:RecordSet store="oderitems">
   <dxp:Ap name="orderid" require="true"/>    <!-- single orderid -->
   <dxp:Ap name="item" require="true"/>       <!-- multiple items -->
</dxp:RecordSet>


@author Mark Ashworth
@version 0.2, 2001-08-30

Return to Index

Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments, suggestions, or problems should be sent to info@plands.com.