lookup field in Form field
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Thank you for the good question. Actually, you can configure filtering by a lookup field of the form but you need to do extra work here. First, configure filtering in the Data source dialog of the Related items control. Next, drop HTML-control onto your form and turn its CDATA property into False. Then insert the following code into its Content property:
Please, replace the highlighted text (LookupColumn) with the internal name of the lookup field from the form.
Code: Select all
<xsl:variable name="LookupValue" select="substring-before(substring-after(@LookupColumn,'>'),'<')"/>
<xsl:comment>
<xsl:value-of select="ddwrt:GenFireConnection(concat('*', '@LookupColumn=', ddwrt:ConnEncode(string($LookupValue))), '')" />
</xsl:comment>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests