Jump to content

Resort a Portal Via Script?


MelJ

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

Recommended Posts

I have a portal that I would like to sort different ways via buttons.

So far, the only way I can see is to create a different layout for each portal since the sort order is set when the portal is created. This would be a huge pain. I'm guessing there's a better way....???

HELP!

Thanks,

Mel

Link to comment
Share on other sites

It may be a pain but it is probably the best in terms of performance you have 2 options that i can see...

1. use an invisible tab and use buttons to switch between the tabs (each tab would have the portal sorted in different ways)

Good performance low effort

2. Create a global field "Sort by" and attach a pop up list of the field names you want to sort by ... create a calculation field "Sort Data" and use the GetField ( ) function and specify the portal be sorted by this calculation field.

bad performance high effort

The second one is more the way you are thinking ... but you may find the first is much friendlier to yourself and your impatient users.

8.5 would also allow you to do this better as you can easily switch tabs via scripts. (you can use the gotofield script step and stick a field on the tab layout to script in v8)

Edited by Guest
Link to comment
Share on other sites

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