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

Search returns wrong results when running in server/client environment. No problems in stand alone.


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

Recommended Posts

Posted

Search returns wrong results when running in server/client environment. No problems in stand alone.

I have two related tables: Items(ID,...) and Transactions(ItemID, Date, Quantity). I want to compute the total quantity of transactions of an item before a specific date. So I add a global in Items (gEndDate) and add another relationship Transactions_OnDate where ID=ItemID AND gEndDate >=Date

I then add a calculated field in Items Qty_OnDate = Sum(Transactions_OnDate::Quantity.

Everything works perfectly. I see correct records in both portals. I am also able to search in the calculated field Qty_OnDate.

BUT when I move the database to server, portals and records display correct amounts but when I search for Qty_OnDate >0 after changing global gEndDate I get the wrong results: I get results of previous search, as if the Qty_OnDate has not updated even though I see correct results. If I make any changes to a record, then Qty_OnDate is updated properly and that record appears correctly after find.

Any ideas?

I enclose the simple example file.

Server FMS9 (9.0.3.326) (Mac), Client: FMPro 9.0v3 (Mac)

InventorySimplest.zip

Posted

imho, the field Qty_OnDate cannot be searched. It is dependent on a relationship that does not resolve in Find mode.

Posted

I've seen a similar issue reported here:

http://forum-en.filemaker.com/fm/board/message?board.id=FM-en-4&thread.id=18608

I am curious to know what happens if you change the formula of Qty_OnDate to =

Let ( trigger = gEndDate ; Sum ( Transactions_OnDate::Quantity ) )

Posted

I have already tried that, it made no difference.

By the way, I forgot to mention, in case you try to server the file, that the example I uploaded had the "Don't Display in Open Remote File Dialog" checked

  • 3 weeks later...

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