Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Livelink XSLT Custom View Problem

Status
Not open for further replies.

menu

Technical User
Apr 25, 2001
24
AE
Greeting All:

I'm developing a form with XSLT custom view. One of the fields in this view is the "Amount" field [real data type], which I will use it to evaluate\test later in the workflow to route the form accordingly. Everything looks fine the field appear normally and when I submit the data stored in the database normally too. But I have three problems:
1. When I call the "Amount" field, says have the value "123123" I got something like this "G123123" and really I don't know from where this G comes from.
2. When I refresh the screen the value I entered disappears.
3. And of course when I try to test the Amount value "123123" in the workflow saying for example something like "if Amount >= 100000" the bloody G jumps in and I think the equation change to ""if G123123 >= 100000" the workflow crash.

Could anyone tells me what is wrong with the following script

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:fo=" xmlns:webform=" <xsl:template name="Amount_rw">
<xsl:param name="AmountRequired" select="string('false')"/>
<![CDATA[
<!-- XSL File: Amount_rw.xsl -->
]]>
<xsl:variable name="Amount" select="//webform:content/webform:set/webform:field[@name='Amount']"/>
<table border="0" width="100%" cellpadding="3" cellspacing="0">
<tr>
<td width="71%" align="left">
<font face="Arial" size="2">
<b>Amount : </b>
<input type="text" maxlength="255" size="25" >
<xsl:attribute name="name"><xsl:value-of select="$Amount/@fieldname" /></xsl:attribute>
<xsl:value-of select="$Amount/text()"/>
</input>
<xsl:if test="$AmountRequired = 'true'">
<script language="Javascript">
validationRoutines[validationRoutines.length] = 'checkStatus( document.myForm.<xsl:value-of select="$Amount/@fieldname" />.value!="", "The <xsl:value-of select="/webform:webform/webform:content/webform:set/@displayname"/> must have <xsl:value-of select="$Amount/@displayname"/> specified." )'
</script>
</xsl:if>
</font>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>




Thanks

Alshreef
New to Livelink and XSLT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top