1 Reply Latest reply on Dec 16, 2015 6:55 AM by Mike_Mitchell

    Strange script behavior on iOS - Enter Find Mode malfunction?

    Mike_Mitchell

      Good day, all. I am having a very strange issue running a solution on iOS (iOS 9.2, FileMaker Go 14.0.4). From what I can tell, somehow, a scripted Find is modifying record data instead of creating a Find request. Here's the script:

       

      Screen Shot 2015-12-15 at 7.43.48 PM.png

       

      The trouble seems to be coming from line 19. Here's the weird part: The problem only crops up when the database is run on iOS. I can run it on the desktop (Mac), even through the debugger, and it works flawlessly. I have a near-copy of the database on Server, and it runs flawlessly. It's only when I run it on iOS that strange things happen. I end up with line items in the wrong categories after this script runs.

       

      I've hunted high and low (including a BaseElements analysis), and this is the only place I can find where the lineItem::categoryID field is being monkeyed with at all during the process. I even added lines 10 - 17 in an attempt to give the OS time to get into Find mode appropriately, but it doesn't seem to matter.

       

      Anyone have a clue what might be going on here?

       

      TIA

       

      Mike