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

Filter a Portal with a Calculation Field


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

Recommended Posts

Posted

I’m trying to setup a portal that filters records with a calculation field.

I have a set of Disk table records that have the fields Disks::Title and Disks::FirstLetter = Left(Title,1).


The user selects a letter from a value list attached to a global field gFirstLetter. A dropdown displays values A through Z.

The portal TO, FilterDisks, is a self join, using the “x” operator. It uses the filter criteria FilterDISKS::FirstLetter=FilterDISKS::gFirstLetter.
When a value (A to Z) is selected by the user I expect the portal to display only records beginning with that letter.
However, it does not display the records properly. Sometimes, but nor always, by clicking outside gets it to work.


I guess my question is: can portals be filtered with a calculation field?

 

  • 1 month later...
Posted (edited)

Via Layout View you can Set Script Trigger to the field where user types first letter, choose OnObjectKeystroke. And create a script with 2 steps: Commit Record and Refresh.

Also I would recommend in field properties on Inspector Window choose the right tab (Data) and click on a check-box that says "Select entire contents on entry"

Edited by Pavlk

This topic is 2495 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.