Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 71d40963b505df4524269198e237b3e3 > files > 924

virtuoso-opensource-doc-6.1.4-2.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 <head profile="http://internetalchemy.org/2003/02/profile">
  <link rel="foaf" type="application/rdf+xml" title="FOAF" href="http://www.openlinksw.com/dataspace/uda/about.rdf" />
  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
  <meta name="dc.title" content="OpenLink Virtuoso Universal Server: Documentation" />
  <meta name="dc.subject" content="OpenLink Virtuoso Universal Server: Documentation" />
  <meta name="dc.creator" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="dc.copyright" content="OpenLink Software, 1999 - 2009" />
  <link rel="top" href="index.html" title="OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="search" href="/doc/adv_search.vspx" title="Search OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="parent" href=".html" title="Chapter Contents" />
  <link rel="prev" href="index.html" title="Home" />
  <link rel="next" href="contents.html" title="Contents" />
  <link rel="shortcut icon" href="../images/misc/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" type="text/css" href="doc.css" />
  <link rel="stylesheet" type="text/css" href="/doc/translation.css" />
  <title>OpenLink Virtuoso Universal Server: Documentation</title>
  <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
  <meta name="author" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="copyright" content="OpenLink Software, 1999 - 2009" />
  <meta name="keywords" content="" />
  <meta name="GENERATOR" content="OpenLink XSLT Team" />
 </head>
 <body>
  <div id="header">
    <a name="vc_data_set" />
    <img src="../images/misc/logo.jpg" alt="" />
    <h1>OpenLink Virtuoso Universal Server: Documentation - data-set</h1>
  </div>
  <div id="navbartop">
   <div>
      <a class="link" href="functions.html">Chapter Contents</a> | <a class="link" href="index.html" title="Home">Prev</a> | <a class="link" href="contents.html" title="Contents">Next</a>
   </div>
  </div>
  <div id="currenttoc">
   <form method="post" action="/doc/adv_search.vspx">
    <div class="search">Keyword Search: <br />
        <input type="text" name="q" /> <input type="submit" name="go" value="Go" />
    </div>
   </form>
   <div>
      <a href="http://www.openlinksw.com/">www.openlinksw.com</a>
   </div>
   <div>
      <a href="http://docs.openlinksw.com/">docs.openlinksw.com</a>
   </div>
    <br />
   <div>
      <a href="index.html">Book Home</a>
   </div>
    <br />
   <div>
      <a href="contents.html">Contents</a>
   </div>
   <div>
      <a href="preface.html">Preface</a>
   </div>
    <br />
   <div>
      <a href="overview.html">Overview</a>
   </div>
   <div>
      <a href="installation.html">Installation Guide</a>
   </div>
   <div>
      <a href="quicktours.html">Quick Start &amp; Tours</a>
   </div>
   <div>
      <a href="sampleapps.html">Sample ODBC &amp; JDBC Applications</a>
   </div>
   <div>
      <a href="concepts.html">Conceptual Overview</a>
   </div>
   <div>
      <a href="server.html">Administration</a>
   </div>
   <div>
      <a href="accessinterfaces.html">Data Access Interfaces</a>
   </div>
   <div>
      <a href="sqlreference.html">SQL Reference</a>
   </div>
   <div>
      <a href="sqlprocedures.html">SQL Procedure Language Guide</a>
   </div>
   <div>
      <a href="hooks.html">Database Event Hooks</a>
   </div>
   <div>
      <a href="repl.html">Data Replication, Synchronization and Transformation Services</a>
   </div>
   <div>
      <a href="webappdevelopment.html">Web Application Development</a>
   </div>
   <div>
      <a href="webandxml.html">XML Support</a>
   </div>
   <div>
      <a href="rdfandsparql.html">RDF Data Access and Data Management</a>
   </div>
   <div>
      <a href="webservices.html">Web Services</a>
   </div>
   <div>
      <a href="runtimehosting.html">Runtime Hosting</a>
   </div>
   <div>
      <a href="internetservices.html">Internet Services</a>
   </div>
   <div>
      <a href="freetext.html">Free Text Search</a>
   </div>
   <div>
      <a href="tpcc.html">TPC C Benchmark Kit</a>
   </div>
   <div>
      <a href="xa.html">Using Virtuoso with Tuxedo</a>
   </div>
   <div>
      <a href="appendixa.html">Appendix</a>
   </div>
   <div>
      <a href="functions.html">Virtuoso Functions Guide</a>
   </div>
    <br />
  </div>
  <div id="text">
    <h2>data-set</h2>
    <div class="refpurpose">Scrollable, multi-row data bound grid.</div>
    <div class="funcsynopsis">
        <span class="funcdef">
            &lt;<a href="vc_data_set.html">
          <span class="function">data-set</span>
        </a> 
            name (required) 
          
            annotation (optional) 
          
            initial-enable (optional) 
          
            enabled (optional) 
          
            instantiate (optional) 
          
            control-udt (optional) 
          
            xsd-stub-xhtml (optional) 
          
            width (optional) 
          
            height (optional) 
          
            sql (optional) 
          
            data-source (optional) 
          
            data (optional) 
          
            meta (optional) 
          
            nrows (optional) 
          
            scrollable (required) 
          
            cursor-type (optional) 
          
            edit (optional) 
          
            debug-srcfile (optional) 
          
            debug-srcline (optional) 
          
            debug-log (optional) 
 /&gt;</span>
    </div>
  
  
  
  <div class="refsect1">
    <div class="refsect1title">Description</div>
    <p>
      <p>A container for displaying and/or editing the content of a resultset.
This is the generic multi-row database view control. It is used to show repeating data, as from tables
or procedure views. Allows scrolling (paging) editing the data; adding a row or removal of existing rows.
Usually this control generates a PL scrollable cursor of type. The number of rows shown is
configurable via nrows attribute. Note also that column children elements are optional; they can be omitted
so then VSPX engine will compute them from the specified SQL statement in &#39;sql&#39; attribute.</p>

<p>This control has the same functionality as the data-grid control but has different syntax, better suited for editing via plugins for 3-d party WYSWYG HTML authoring tools (as Addobe GoLive and similar).</p>

<p>Specific to this control is to have several templates to present repeating and non-repeating groups of children elements. These templates are as follows: two generic templates to represent header and footer sections and one repeating template to enclose edit, add, not-exists and row (browse) sections. All of those templates are optional and their usage can be seen in examples.</p>

<p>Also following the convention for names of controls must be followed: for scrolling buttons - [data-set name]&#39;_prev&#39;, [data-set name]&#39;_next&#39;, [data-set name]&#39;_first&#39; and [data-set name]&#39;_last&#39;; for editing buttons - [data-set name]&#39;_edit&#39; and [data-set name]&#39;_delete&#39;.</p>
      </p>
  </div>
  <div class="refsect1">
    <div class="refsect1title">Attributes</div>
  <div class="formalpara">
   <strong>name = <a href="vc_type_SqlName.html">SqlName</a>
   </strong>
      <p>A page level unique name identifying a control.</p>
  </div>
  <div class="formalpara">
      <strong>annotation</strong>
      <p>A human readable comment.</p>
  </div>
  <div class="formalpara">
   <strong>initial-enable = <a href="vc_type_CalculateableValue.html">CalculateableValue</a>
   </strong>
      <p>Determines  whether  a control is initially visible. True by default. Could be data-bound to an SQL expression.</p>
  </div>
  <div class="formalpara">
   <strong>enabled = <a href="vc_type_CalculateableValue.html">CalculateableValue</a>
   </strong>
      <p>Determines  whether  a control is visible. True by default. Could be data-bound to an SQL expression.</p>
  </div>
  <div class="formalpara">
   <strong>instantiate = <a href="vc_type_CalculateableValue.html">CalculateableValue</a>
   </strong>
      <p>Determines whether a control instantiate its children. It is true by default. It could be data-bound to an SQL expression. Unlike most of calcucateable attributes, the value of this attribute for a control is calcluated before calling &#39;on-init&#39; event handler of the control; other values are calculated before calling &#39;before-data-bind&#39; event handler.</p>
  </div>
  <div class="formalpara">
   <strong>control-udt = <a href="vc_type_SqlName.html">SqlName</a>
   </strong>
      <p>At run time every control is represented as an instance of some user-defined type (UDT). VSPX compiles selects the UDT to use depending on name of the XML element that represents the control and maybe some of its attributes. In some specific cases the application developer may instruct VSPX compiler to use some other UDT, e.g. an application-specific UDT that is derived from the preset one. If specified, the value of &#39;control-udt&#39; attribute should be equal to the name of the desired target UDT.</p>
  </div>
  <div class="formalpara">
      <strong>xsd-stub-xhtml</strong>
      <p>This attribute is for internal use only. It has no effect if added to the source VSPX file.</p>
  </div>
  <div class="formalpara">
      <strong>width</strong>
      <p>Visible width of the control when it is displayed in WYSIWYG tools when the source VSPX text is edited.
The value of this attribute will not be used when the resulting HTML is rendered.</p>
  </div>
  <div class="formalpara">
      <strong>height</strong>
      <p>Visible width of the control when it is displayed in WYSIWYG tools when the source VSPX text is edited.
The value of this attribute will not be used when the resulting HTML is rendered.</p>
  </div>
  <div class="formalpara">
   <strong>sql = <a href="vc_type_SqlCode.html">SqlCode</a>
   </strong>
      <p>The select statement that gets the data.
Parameters to the statement MUST be specified as SQL identifiers prefixed with a colon.
The values are given in the control&#39;s vspx:param children.  These specify the parameter name and a data bound expression for the value.
</p>
  </div>
  <div class="formalpara">
   <strong>data-source = <a href="vc_type_SqlName.html">SqlName</a>
   </strong>
      <p>A reference to a data-source, which wil lbe used to bind the data in data-set grid.
</p>
  </div>
    <div class="formalpara">
   <strong>data = <a href="vc_type_CalculateableValue.html">CalculateableValue</a>
   </strong>
      <p>When this attribute is specified it must be an
expression returning array of arrays. This is an alternative to specifying an
SQL expression or data-source. The result then will be used to instantiate
the repeating group. An example of such data is the result returned by &#39;exec&#39; function:</p>
<div>
          <pre class="programlisting">
(
  (&quot;ALFKI&quot; &quot;Alfreds Futterkiste&quot; &quot;030-0074321&quot; )
  (&quot;ANATR&quot; &quot;Ana Trujillo Emparedados y helados&quot; &quot;(5) 555-4729&quot; )
)
</pre>
        </div>
</div>
    <div class="formalpara">
   <strong>meta = <a href="vc_type_CalculateableValue.html">CalculateableValue</a>
   </strong>
      <p>This attribute is used together with &#39;data&#39;, so when is
specified it needs to be an expression returning a meta-data for columns corresponding to the
these returned by &#39;data&#39; expression. In practice it&#39;s same as 1-st element of metadata returned by &#39;exec()&#39; :
</p>

<div>
          <pre class="programlisting">
(
  (&quot;CustomerID&quot; 182 0 5 0 1 1 &quot;Demo&quot; &quot;CustomerID&quot; &quot;demo&quot; &quot;Customers&quot; 0 )
  (&quot;CompanyName&quot; 182 0 40 1 1 1 &quot;Demo&quot; &quot;CompanyName&quot; &quot;demo&quot; &quot;Customers&quot; 0 )
  (&quot;Phone&quot; 182 0 24 1 1 1 &quot;Demo&quot; &quot;Phone&quot; &quot;demo&quot; &quot;Customers&quot; 0 )
)
</pre>
        </div>

<p>for details of metadata see &#39;exec()&#39; function description.</p>
</div>
  <div class="formalpara">
   <strong>nrows = <a href="vc_type_CalculateableValue.html">CalculateableValue</a>
   </strong>
      <p>The maximum number of replicas of the row template to be made for rows selected.
It is like the rowset size for a scrollable cursor.
</p>
  </div>
  <div class="formalpara">
      <strong>scrollable</strong>
      <p>The setting controls whether next and previous page buttons are presented.  This can be on even if the cursor is not scrollable as such.</p>
  </div>
  <div class="formalpara">
      <strong>cursor-type</strong>
   <table class="data">
        <caption>Table: 12.4.9.1. Allowed values of the &#39;cursor-type&#39; attribute</caption>
    
     
      <tr>
              <td class="data">static</td>
       <td class="data">
                <p>A static cursor is used.</p>
       </td>
      </tr>
      <tr>
              <td class="data">dynamic</td>
       <td class="data">
                <p>A dynamic cursor is used.</p>
       </td>
      </tr>
      <tr>
              <td class="data">keyset</td>
       <td class="data">
                <p>A keyset cursor is used.</p>
       </td>
      </tr>
     
    
   </table>
        <br />
  </div>
  <div class="formalpara">
      <strong>edit</strong>
      <p>Flags whether editing features are enabled on data grid control</p>
  </div>
  <div class="formalpara">
      <strong>debug-srcfile</strong>
      <p>URI of the source document where the tag comes from.</p>
  </div>
  <div class="formalpara">
      <strong>debug-srcline</strong>
      <p>Line number in the source document where the tag comes from.</p>
  </div>
  <div class="formalpara">
      <strong>debug-log</strong>
      <p>This defines what sort of data are saved to the debugging log.
</p>
  </div>
  </div>
  <div class="refsect1">
    <div class="refsect1title">Declaration of type vspx_data_set</div>
    <p>
</p>
    <div>
        <pre class="screen">
create type vspx_data_set under vspx_form
as (
    ds_nrows int,     -- how many rows to show on single page
    ds_scrollable int,      -- scroll on form is enabled
    ds_editable int default 1,          -- disable edit/add on whole grid
    ds_row_meta any,      -- metadata
    ds_row_data any,      -- data coming from a function, rowset
    ds_current_row vspx_row_template,   -- current row template
    ds_rowno_edit int default null, -- last edited row in result set, to re-display the edit box on error
    ds_rows_fetched int default 0,  -- how many rows are fetched for current page
    ds_rows_total int default 0,  -- how many data rows do we have in total (for vector)
    ds_rows_offs    int default 0,  -- this is the zero-based index of the first row of the current page in the whole list
    ds_rows_offs_saved int default 0,  -- this is the value of ds_rows_offs that was saved in the page state.
    ds_scrolled     int default 0,
    ds_has_next_page int default 0,	-- Flag if there are rows after the current page (so &#39;next page&#39; button should be enabled).
    ds_prev_bookmark any default null, -- Bookmark of the record that was at the beginning of previous retrieval of the page (bmk of the first row of the displayed page)
    ds_last_bookmark any default null, -- Bookmark of the record that was at the end of previous retrieval of the page (bmk of the last row of the displayed page)
    ds_rows_cache any,
    ds_data_source vspx_data_source default null
   )  temporary self as ref
  method vc_templates_clean () returns any,
  method vc_reset () returns any,
  method ds_column_offset (name varchar) returns any,
  method ds_iterate_rows (inx int) returns any,
  constructor method vspx_data_set (name varchar, parent vspx_control),
  overriding method vc_set_view_state (e vspx_event) returns any,
  overriding method vc_view_state (stream any, n int) returns any
</pre>
      </div>
  </div>
  <div class="refsect1">
    <div class="refsect1title">Examples</div>
   <a name="vc_ex_data_set__0" />
      <div class="example">
      <div class="exampletitle">
  Editable multi-row data grid based on data-set control
</div>
      <p>
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!--
 -  
 -  $Id: data_set__0.vspx,v 1.2 2006/08/16 00:04:15 source Exp $
 -
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2006 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  


This example will show a list of customers from the Northwind demo database.
Allows editing, addtion and removal of existing records.

</p>
      <div>
          <pre class="screen">
&lt;v:page name=&quot;data_set__0&quot; xmlns:v=&quot;http://www.openlinksw.com/vspx/&quot;&gt;
&lt;html&gt;
  &lt;body&gt;
      &lt;v:data-set name=&quot;ds&quot; sql=&quot;select CustomerID, CompanyName, Phone from Demo.demo.Customers&quot; nrows=&quot;10&quot; scrollable=&quot;1&quot; cursor-type=&quot;keyset&quot;&gt;
        &lt;v:template name=&quot;t1&quot; type=&quot;simple&quot;&gt;
          &lt;div&gt;
            Action
            &lt;v:label name=&quot;l1&quot; value=&quot;CustomerID&quot; format=&quot;%s&quot; width=&quot;80&quot;/&gt;
            &lt;v:label name=&quot;l2&quot; value=&quot;CompanyName&quot; format=&quot;%s&quot; width=&quot;80&quot;/&gt;
            &lt;v:label name=&quot;l3&quot; value=&quot;Phone&quot; format=&quot;%s&quot; width=&quot;80&quot;/&gt;
          &lt;/div&gt;
        &lt;/v:template&gt;
        &lt;v:template name=&quot;t2&quot; type=&quot;repeat&quot;&gt;
          &lt;v:template name=&quot;t7&quot; type=&quot;if-not-exists&quot;&gt;
            &lt;div&gt;No rows selected&lt;/div&gt;
          &lt;/v:template&gt;
          &lt;v:template name=&quot;t5&quot; type=&quot;edit&quot;&gt;
            &lt;v:form name=&quot;u1&quot; type=&quot;update&quot; table=&quot;Demo.demo.Customers&quot; if-not-exists=&quot;insert&quot;&gt;
              &lt;v:key column=&quot;CustomerID&quot; value=&quot;--self.ds.ds_current_row.te_rowset[0]&quot; default=&quot;null&quot;/&gt;
              &lt;v:template name=&quot;template6&quot; type=&quot;simple&quot;&gt;
                &lt;div&gt;
                  &lt;v:button name=&quot;upd_button&quot; action=&quot;submit&quot; value=&quot;Update&quot;/&gt;
                  &lt;input type=&quot;submit&quot; name=&quot;ds_cancel&quot; value=&quot;Cancel&quot;/&gt;
                  &lt;v:text name=&quot;c_id1&quot; column=&quot;CustomerID&quot;/&gt;
                  &lt;v:text name=&quot;c_name1&quot; column=&quot;CompanyName&quot;/&gt;
                  &lt;v:text name=&quot;c_phone1&quot; column=&quot;Phone&quot;/&gt;
                &lt;/div&gt;
              &lt;/v:template&gt;
            &lt;/v:form&gt;
          &lt;/v:template&gt;
          &lt;v:template name=&quot;t8&quot; type=&quot;add&quot;&gt;
            &lt;v:form name=&quot;a1&quot; type=&quot;update&quot; table=&quot;Demo.demo.Customers&quot; if-not-exists=&quot;insert&quot;&gt;
              &lt;v:key column=&quot;CustomerID&quot; value=&quot;--&#39;&#39;&quot; default=&quot;null&quot;/&gt;
              &lt;v:template name=&quot;template9&quot; type=&quot;simple&quot;&gt;
                &lt;div&gt;
                  &lt;v:button name=&quot;add_button&quot; action=&quot;submit&quot; value=&quot;Add&quot;/&gt;
                  &lt;v:text name=&quot;c_id2&quot; column=&quot;CustomerID&quot;/&gt;
                  &lt;v:text name=&quot;c_name2&quot; column=&quot;CompanyName&quot;/&gt;
                  &lt;v:text name=&quot;c_phone2&quot; column=&quot;Phone&quot;/&gt;
                &lt;/div&gt;
              &lt;/v:template&gt;
            &lt;/v:form&gt;
          &lt;/v:template&gt;
          &lt;v:template name=&quot;t4&quot; type=&quot;browse&quot;&gt;
            &lt;div&gt;
              &lt;v:button name=&quot;ds_edit&quot; action=&quot;simple&quot; value=&quot;Edit&quot;/&gt;
              &lt;v:button name=&quot;ds_delete&quot; action=&quot;simple&quot; value=&quot;Delete&quot;&gt;
                &lt;v:on-post&gt;
                      delete from Demo.demo.Customers where CustomerID = self.ds.ds_current_row.te_rowset[0];
                      self.ds.vc_data_bind(e);
                    &lt;/v:on-post&gt;
              &lt;/v:button&gt;
              &lt;v:label name=&quot;l5&quot; value=&quot;--(control.vc_parent as vspx_row_template).te_rowset[0]&quot;/&gt;
              &lt;v:label name=&quot;l6&quot; value=&quot;--(control.vc_parent as vspx_row_template).te_rowset[1]&quot;/&gt;
              &lt;v:label name=&quot;l7&quot; value=&quot;--(control.vc_parent as vspx_row_template).te_rowset[2]&quot;/&gt;
            &lt;/div&gt;
          &lt;/v:template&gt;
        &lt;/v:template&gt;
        &lt;v:template name=&quot;t3&quot; type=&quot;simple&quot;&gt;
          &lt;div&gt;
            &lt;v:button name=&quot;ds_prev&quot; action=&quot;simple&quot; value=&quot;&amp;lt;&amp;lt;&quot;/&gt;
            &lt;v:button name=&quot;ds_next&quot; action=&quot;simple&quot; value=&quot;&amp;gt;&amp;gt;&quot;/&gt;
          &lt;/div&gt;
        &lt;/v:template&gt;
      &lt;/v:data-set&gt;
  &lt;/body&gt;
&lt;/html&gt;
&lt;/v:page&gt;
</pre>
        </div>
   </div>
   <a name="vc_ex_data_set__1" />
      <div class="example">
      <div class="exampletitle">
  Simple multi-row data grid based on data-set control
</div>
      <p>
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!--
 -  
 -  $Id: data_set__1.vspx,v 1.2 2006/08/16 00:04:15 source Exp $
 -
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2006 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  


This example will show a list of customers from the Northwind demo database.
Allows scrolling only of existing records.

</p>
      <div>
          <pre class="screen">
&lt;v:page name=&quot;data_set__0&quot; xmlns:v=&quot;http://www.openlinksw.com/vspx/&quot;&gt;
&lt;html&gt;
  &lt;body&gt;
      &lt;v:data-set name=&quot;ds&quot; sql=&quot;select CustomerID, CompanyName, Phone from Demo.demo.Customers&quot; nrows=&quot;10&quot; scrollable=&quot;1&quot; cursor-type=&quot;keyset&quot;&gt;
        &lt;v:template name=&quot;t1&quot; type=&quot;simple&quot;&gt;
          &lt;div&gt;
            &lt;v:label name=&quot;l1&quot; value=&quot;CustomerID&quot; format=&quot;%s&quot; width=&quot;80&quot;/&gt;
            &lt;v:label name=&quot;l2&quot; value=&quot;CompanyName&quot; format=&quot;%s&quot; width=&quot;80&quot;/&gt;
            &lt;v:label name=&quot;l3&quot; value=&quot;Phone&quot; format=&quot;%s&quot; width=&quot;80&quot;/&gt;
          &lt;/div&gt;
        &lt;/v:template&gt;
        &lt;v:template name=&quot;t2&quot; type=&quot;repeat&quot;&gt;
          &lt;v:template name=&quot;t7&quot; type=&quot;if-not-exists&quot;&gt;
            &lt;div&gt;No rows selected&lt;/div&gt;
          &lt;/v:template&gt;
          &lt;v:template name=&quot;t4&quot; type=&quot;browse&quot;&gt;
            &lt;div&gt;
              &lt;v:label name=&quot;l5&quot; value=&quot;--(control.vc_parent as vspx_row_template).te_rowset[0]&quot;/&gt;
              &lt;v:label name=&quot;l6&quot; value=&quot;--(control.vc_parent as vspx_row_template).te_rowset[1]&quot;/&gt;
              &lt;v:label name=&quot;l7&quot; value=&quot;--(control.vc_parent as vspx_row_template).te_rowset[2]&quot;/&gt;
            &lt;/div&gt;
          &lt;/v:template&gt;
        &lt;/v:template&gt;
        &lt;v:template name=&quot;t3&quot; type=&quot;simple&quot;&gt;
          &lt;div&gt;
            &lt;v:button name=&quot;ds_prev&quot; action=&quot;simple&quot; value=&quot;&amp;lt;&amp;lt;&quot;/&gt;
            &lt;v:button name=&quot;ds_next&quot; action=&quot;simple&quot; value=&quot;&amp;gt;&amp;gt;&quot;/&gt;
          &lt;/div&gt;
        &lt;/v:template&gt;
      &lt;/v:data-set&gt;
  &lt;/body&gt;
&lt;/html&gt;
&lt;/v:page&gt;
</pre>
        </div>
   </div>
  </div>
  <div class="tip">
    <div class="tiptitle">See Also: Reference Material in the Tutorial:</div>
   <p>
      <a href="/tutorial/web/vx_s_3/data_set.vspx">VX-S-3</a>
   </p>
  </div>
</div>
  <div id="footer">
    <div>Copyright© 1999 - 2009 OpenLink Software All rights reserved.</div>
   <div id="validation">
    <a href="http://validator.w3.org/check/referer">
        <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" />
    </a>
    <a href="http://jigsaw.w3.org/css-validator/">
        <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" />
    </a>
   </div>
  </div>
 </body>
</html>