Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sorting a Portal with A-Z Radio Buttons

Featured Replies

I have a portal with many customers.

On the same layout i would like to have 26 Radio Buttons (A-Z) and be able to view only the selected letter in the Customer portal.

Is there a way to do this. It's gotta be some sort of Sort, but i cannot figure it out.

Please Help. TIA

Mike

It's not a sort, it's done with remote keys.

In the Customers file, create a calc field that contains the letter the company is to be listed under: this might be something like "Left( Company Name ; 1 ) but you might want to make it smarter so it ignors "The" at the start of company names.

In the layout displaying the portal, have a global field. Relate this global to the calc field in customers that has the first letter. Base the portal on this relationship or TO.

  • Author

It's not a sort, it's done with remote keys.

In the Customers file, create a calc field that contains the letter the company is to be listed under: this might be something like "Left( Company Name ; 1 ) but you might want to make it smarter so it ignors "The" at the start of company names.

In the layout displaying the portal, have a global field. Relate this global to the calc field in customers that has the first letter. Base the portal on this relationship or TO.

Still lost!

I did the first part of what you said,(calc field for customer), but you lost me after that. You are very helpful, but i definitely need it spelled out for me. Please help if u can. Thanks so much.

... here's how it works...

Table 1 Table 2

Global field = calc field for customer

Global field... where its attached to a value list of your 26 letters...

  • Author

Lee,

Once again...your knowledge is greatly appreciated.

Mike

  • Author

Lee,

i have attched the file you sent me with one modification (Radio Buttons instead of drop down). Take a look if you don't mind.

What i would like to do as well is sort not only by the first letter, but also have an "ALL" Radio Button choice to display all customers in the portal. TIA.

Mike

A_Z_Relate_CO_Names.zip

okay,

I made a couple of changes.

First, change your calculation of Left( to

Left(Company; 1) & "¶" & "All"

Next, change the relationship so that it sorts by company

HTH

Lee

p.s. if you need a sample let me know

  • Author

Lee,

That was it. It's perfect. Thank you , thank you.

Is there any books you can recommend to teach me both Calculations & Scripting? I have been usin FMpro for about 8-10 months. I would be lost on alot of things if it were not for this Forum.

TIA.

Mike

Hi Mike,

I could recommend some books, but this becomes difficult due to the different skill levels they address. Better that you review the references and recommendations that are in the [color:blue] FileMaker Marketplace » FileMaker Resources Topic Area that is located towards the bottom of the Index page.

Some that are recommend are old, covering versions 3/4 and 5/6, but are still good reference books. Because they are old, you can sometimes buy them cheap at the auctions like Ebay, and Amazon.

You can not beat this Forum as a reference though.

HTH

Lee

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.