[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: retreiving the current record from a data source object

Subject: RE: retreiving the current record from a data source object
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Wed, 20 Sep 2000 20:52:08 +0100
current record
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@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Krishnamurthy, Rama
>Sent: 20 September 2000 16:28
>To: xsl-list@xxxxxxxxxxxxxxxx
>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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.