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.

Featured Replies

  • Author

Hello,

I am posting a list of active and inactive members. I would like to sort first by last name and then by their active status. The result would be:

Jane Doe, Active

Bob Jones, Active

Bill Adams, Inactive

How do I configure multiple sort parameters in FX.PHP? Here is my code:


// Connect to DB

$ShowAll = new FX($serverIP,$webCompanionPort);

$ShowAll->SetDBData('TheDatabase.fp7','TheLayout');

$ShowAll->SetDBPassword('xxxx','xxxx');

$ShowAll->AddSortParam('LastName','ascend');

$ShowAll->AddSortParam('ActiveFlag','descend');



// Search Parameters

$ShowAllResult=$ShowAll->FMFindAll();

So far, I can only sort by last name or by active flag, but not both. I know I could hit the db twice and return two results, but I'm hoping for a more efficient solution.

Thank you,

Shannon

-=-=-

Hello,

I am posting a list of active and inactive members. I would like to sort first by last name and then by their active status. The result would be:

Jane Doe, Active

Bob Jones, Active

Bill Adams, Inactive

How do I configure multiple sort parameters in FX.PHP? Here is my code:


// Connect to DB

$ShowAll = new FX($serverIP,$webCompanionPort);

$ShowAll->SetDBData('TheDatabase.fp7','TheLayout');

$ShowAll->SetDBPassword('xxxx','xxxx');

$ShowAll->AddSortParam('LastName','ascend');

$ShowAll->AddSortParam('ActiveFlag','descend');



// Search Parameters

$ShowAllResult=$ShowAll->FMFindAll();

So far, I can only sort by last name or by active flag, but not both. I know I could hit the db twice and return two results, but I'm hoping for a more efficient solution.

Thank you,

Shannon

-=-=-

  • Author

Hello,

I am posting a list of active and inactive members. I would like to sort first by last name and then by their active status. The result would be:

Jane Doe, Active

Bob Jones, Active

Bill Adams, Inactive

How do I configure multiple sort parameters in FX.PHP? Here is my code:


// Connect to DB

$ShowAll = new FX($serverIP,$webCompanionPort);

$ShowAll->SetDBData('TheDatabase.fp7','TheLayout');

$ShowAll->SetDBPassword('xxxx','xxxx');

$ShowAll->AddSortParam('LastName','ascend');

$ShowAll->AddSortParam('ActiveFlag','descend');



// Search Parameters

$ShowAllResult=$ShowAll->FMFindAll();

So far, I can only sort by last name or by active flag, but not both. I know I could hit the db twice and return two results, but I'm hoping for a more efficient solution.

Thank you,

Shannon

-=-=-

Try it this way:

$ShowAll->AddSortParam('ActiveFlag','descend');

$ShowAll->AddSortParam('LastName','ascend');

All the best.

Garry

Try it this way:

$ShowAll->AddSortParam('ActiveFlag','descend');

$ShowAll->AddSortParam('LastName','ascend');

All the best.

Garry

Try it this way:

$ShowAll->AddSortParam('ActiveFlag','descend');

$ShowAll->AddSortParam('LastName','ascend');

All the best.

Garry

  • Author

Uhhhhh. Hmm. That worked.

I tried that before this post, but didn't realize it worked with such a small data set. I since added a dozen entries and it's more obvious.

LOL - I hope this thread at least helps someone see how FX.php can handle multiple sorts.

Thanks, Garry!

  • Author

Uhhhhh. Hmm. That worked.

I tried that before this post, but didn't realize it worked with such a small data set. I since added a dozen entries and it's more obvious.

LOL - I hope this thread at least helps someone see how FX.php can handle multiple sorts.

Thanks, Garry!

  • Author

Uhhhhh. Hmm. That worked.

I tried that before this post, but didn't realize it worked with such a small data set. I since added a dozen entries and it's more obvious.

LOL - I hope this thread at least helps someone see how FX.php can handle multiple sorts.

Thanks, Garry!

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.