Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I am create dropdownlist data type with database datatype as integer..
I added prevalues.. and at page select proper value..
now in xslt i want to get value field of dropdown. It gives me text...
Text Value
Home 22
Live 23
Article 24
i want value field that is 22 instead of Home.
i m using this in XSLT
<xsl:if test="$county = current()/resourceCounty" >
resourceCounty is generic properties that i created.
Thanks...
Hi. You can get a full list of datatype prevalues with the library.GetPreValues() method and than to resolve the prevalue ID by its text.
Solve problem
<xsl:variable name="topicList" select="umbraco.library:GetPreValues('1176')"/> <xsl:for-each select="$topicList//preValue"> <xsl:value-of select="current()"/> </xsl:for-each>
Thanks..
Hi Guys,
Need help in getting selected value or ID of DD, tried above code it gives all the prevalues of DD not the selected one.
Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
dropdownlist data type selected value instead of text
Hello,
I am create dropdownlist data type with database datatype as integer..
I added prevalues.. and at page select proper value..
now in xslt i want to get value field of dropdown. It gives me text...
Text Value
Home 22
Live 23
Article 24
i want value field that is 22 instead of Home.
i m using this in XSLT
<xsl:if test="$county = current()/resourceCounty" >
resourceCounty is generic properties that i created.
Thanks...
Hi. You can get a full list of datatype prevalues with the library.GetPreValues() method and than to resolve the prevalue ID by its text.
Solve problem
<xsl:variable name="topicList" select="umbraco.library:GetPreValues('1176')"/>
<xsl:for-each select="$topicList//preValue">
<xsl:value-of select="current()"/>
</xsl:for-each>
Thanks..
Hi Guys,
Need help in getting selected value or ID of DD, tried above code it gives all the prevalues of DD not the selected one.
Thanks
is working on a reply...