Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/12/2008, 14:46
Rosario2
 
Fecha de Ingreso: diciembre-2008
Mensajes: 3
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Problema con grabar item de combobox en Explorer

Hola, el resultado de eso es un combo q tiene x default el Optional Selection y como opciones el Primary y Secondary.

Ahi te muestro la parte q va en el template, donde indico q variables hay


<?xml version="1.0" encoding="UTF-8"?>
<PTLAdditionalInformation>
<Application id="1" />
<Parameters>
<data name="- Optional Selection -"/>
<data name="Primary Service Line"/>
<data name="Secondary Service Line"/>
</Parameters>
</PTLAdditionalInformation>


Esta es la parte del edit completa


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:xalan="http://xml.apache.org/xslt" xmlns:tns="http://www.w3.org/1999/xhtml">
<xsl:param name="dynFormHandler" select="'dynForm'" />
<xsl:param name="xmlContainerId" select="'txt_DynFormXML'" />
<xsl:template match="/">
<table border="0" style="font-size: 11px">
<tr>
<td>
<label class="tlabel">Application</label>
</td>
<td>
<select name="some" id="application" >
<xsl:for-each select="/PTLAdditionalInformation/Parameters/data">
<option>
<xsl:attribute name="value">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:value-of select="$dynFormHandler" />.setNodeById('1', this.value)
</xsl:attribute>
<xsl:value-of select="@name"/>
</option>
</xsl:for-each>
</select>
</td>
</tr>
</table>
<br />
</xsl:template>
</xsl:stylesheet>


Y esta es la parte de Read


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:xalan="http://xml.apache.org/xslt" xmlns:tns="http://www.w3.org/1999/xhtml">
<xsl:param name="dynFormHandler" select="'dynForm'" />
<xsl:param name="xmlContainerId" select="'txt_DynFormXML'" />
<xsl:template match="/">
<div class="hrule-dots"></div>
<br />
<table border="0" style="font-size: 11px">
<tr>
<td>
<label class="tlabel">Application</label>
</td>
<td>
<xsl:element name="text">
<xsl:value-of select="//Application" />
</xsl:element>
</td>
</tr>
</table>
<br />
</xsl:template>
</xsl:stylesheet>


Espero sea mas entendible :D
Gracias