This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: retreiving the current record from a data source object
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: retreiving the current record from a data source object
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Wed, 20 Sep 2000 20:52:08 +0100
- Reply-To: xsl-list at mulberrytech dot com
Rama,
This has nothing to do with XSL and is off topic
But here is a pointer
<script for="customerTemplate" event="onclick">
resultdso.recordset.AbsolutePosition = this.recordNumber;
var pnumber = resultdso.recordset.fields("policy number").value;
//now do something with pnumber
</script>
<TABLE id=dsotable border=0 cellPadding=0 cellspacing=0 dataSrc=#resultdso
datapagesize=15>
<TR id="customerTemplate">
<TD width="120">
<SPAN dataFld=insured_last_name_1></SPAN>
<SPAN dataFld=insured_first_name_1></SPAN>
</TD>
<TD width="160">
<SPAN dataFld=street_number></SPAN>
<SPAN dataFld=street_name></SPAN>
<SPAN dataFld=second_street_name></SPAN>
</TD>
<TD width="110">
<SPAN dataFld=city></SPAN>
<SPAN dataFld=state_code></SPAN>
</TD>
</TR>
what you do with pnumber in the script is up to you
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
>-----Original Message-----
>From: owner-xsl-list@mulberrytech.com
>[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Krishnamurthy, Rama
>Sent: 20 September 2000 16:28
>To: xsl-list@mulberrytech.com
>Subject: retreiving the current record from a data source object
>
>
>Hi,
> My table looks like
>
><TABLE id=dsotable border=0 cellPadding=0 cellspacing=0 dataSrc=#resultdso
>datapagesize=15>
>
> <TR>
> <TD width="120">
> <a href="javascript:assignCustomerValues();">
> <SPAN dataFld=insured_last_name_1></SPAN>
> <SPAN dataFld=insured_first_name_1></SPAN>
> </a>
> </TD>
>
> <TD width="160">
>
> <SPAN dataFld=street_number></SPAN>
> <SPAN dataFld=street_name></SPAN>
> <SPAN dataFld=second_street_name></SPAN>
> </TD>
>
> <TD width="110">
> <SPAN dataFld=city></SPAN>
> <SPAN dataFld=state_code></SPAN>
> </TD>
>
> </TR>
> </TABLE>
>
>'resultdso' is the table' data source and the table uses the 'Data binding'
>technique to
>display all the records in the data source.
>
>The function 'assignCustomerValues()' in the first column should have the
>current record's
>'policy number' column value as its argument.
>
>How do I access the current record' column values for each row in the data
>source?
>
>Thanks in advance.
>
>Rama.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list