Saved Search Broken After I Changed a Field Name

Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch Forums Using Tap Forms 5 Saved Search Broken After I Changed a Field Name

Viewing 1 reply thread
  • Author
    Posts
  • March 9, 2017 at 8:06 PM #21409

    Mike Schwartz
    Participant

    Just noticed that a saved search was no longer working properly. Upon examining the Filter pop-up, I saw that one of the Search Rules was missing and quickly realized that it involved a field whose name I recently changed.

    The search rule did not update itself to reflect the renamed field, so the rule basically referenced a field that didn’t exist any more. Easy to fix by adding back the search rule with the new field name.

    Not sure if that would be considered a bug or a feature, but I thought it would be worth airing out so that people would be careful about renaming fields. I’m wondering if there would be similar issues if a calculation field refers to a field whose name is changed.

    Thanks,
    Mike

    March 9, 2017 at 10:54 PM #21410

    Brendan
    Keymaster

    Unfortunately for Saved Searches, the way the NSPredicate code works, it’s based on the field name. But in Calculation fields I store the field’s internal ID, so if you rename a field that’s used in a Calculation it’s ok. Tap Forms will display whatever the current field name is. But not for Saved Searches.

Viewing 1 reply thread

You must be logged in to reply to this topic.