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

Sort portal contents by external field


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

Recommended Posts

Posted

Hi,

Can anyone tell me how i can sort the contents of a Portal by a field in a related table?

For example,

I have master table and layout with a portal showing data relating to the LINE ITEMS table.

The LINE ITEMS table has a primary key, ProductID Foreign Key, Quantity, etc. and a separate PRODUCTS table from which i import the contents of of the primary key ProductID into the foreign key ProductID in the LINE ITEMS table.

Thus the LINE ITEMS table is populated every time i run the import script with say 100 records (for 100 products) placing the ProductID in the aforementioned foreign key field. I have chosen not to show the ProductID in the portal, but instead display the Product name field PRODUCT::Product name (from the related PRODUCT table) so that for each line a human readable product name is shown.

My question is how do i sort the contents of the portal by the Product name, given that this is not a field contained within the LINE ITEMS table from which the portal was created.

Is there an obvious way that i haven't discovered or does this involve some workaround and possibly scripting?

Thanks in advance

Andy.

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