November 30, 200421 yr I have an xsl template that displays a record detail with a portal table. The portal table has 5 columns. I would like the user to be able to sort by column by clicking on the header link, but I don't know if it is possible to sort on portals. If it is possible, what would the syntax be to sort by a portal column? I tried this but it didn't work xsl:if test="fmrs:resultset/@fetch-size != 0"/> td valign="top" class="class"> a> xsl:attribute name="href"> xsl:variable name="sort"> xsl:text disable-output-escaping="yes">browserecord.xsl? xsl:text>-db=Tradebook+Titles&-lay=Entry& xsl:text>-sortfield.1=Reserves::Name&-sortorder.1=ascend /xsl:variable> xsl:value-of select="fmxslt:session_encode_url($sort)"/> /xsl:attribute> b>Name/b> a>
January 10, 200521 yr If you just type the URL manually in your browser, does it sort or not? E.g. ....xsl?-grammar=fmresultset&-db=Tradebook+Titles&-lay=Entry&-sortfield.1=Reserves::Name&-sortorder.1=ascend&fieldname=findcriteria&-find Probably it's this part missing: &fieldname=findcriteria&-find Martin
Create an account or sign in to comment