Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Sort Portals by clicking on field header link?


This topic is 7255 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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>

  • 1 month later...
Posted

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

This topic is 7255 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.