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

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

Recommended Posts

Posted

I know how to do dynamic sorting based upon a global field, but what I want to try and do, is sort on different tables by the same field. The different tables is what's throwing me.

An example:

I have a few different tables all containing a field "Name"

When the user clicks on a button to view the list, the scriptparameter chooses the correct layout/table to view i.e

LIST_[color:red][get(scriptparameter)]

[color:purple](e.g LIST_Legal)

What I want to do, is go to the appropriate list, and have it sort dynamically. I have created the same field in each table (e.g name) so what I want to do is this.

GO TO LAYOUT - LIST_[color:red][get(scriptparameter)]

SORT FIELD - [color:red][get(layoutablename)]:):Name

i.e I'm trying to get away from a whole stack of

[color:purple]if get(scriptparameter) = "Legal" then sort LEGAL::Name

else if

get(scriptparameter) = "Business" then sort BUSINESS::Name

etc etc

Hope this makes sense

TIA

Posted

Unfortunately, they don't let us sort by calculation. You're stuck with "hard-coded" sorts. You'll need a sort script step for each context.

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