1 Reply Latest reply on Jun 24, 2013 2:56 AM by Mike_Mitchell

    SEARCH FUNCTION IN IWP

    lyntech

      I have a database - see image below consisting of customers, names addresses phone numbers etc...I have created a search button which creates the pop-up box "What do you want to find" - which allows the user to search for a customer by inputting anything pertaining to that customer...(phone number) last name etc....Below I have shown the script for creating it.

      -Show Custom dialog ["what do you want to find?"; "Enter your search settings below

      -Perform Quick Find [Table::SEARCH]

      -Set Field [Table::SEARCH;""]

      is there anyway to have this function work in IWP - It works fine in my filemaker program but not in IWP - I am using FM Pro 11

        • 1. Re: SEARCH FUNCTION IN IWP
          Mike_Mitchell

          Your difficulty stems from the fact that the Show Custom Dialog script step is not IWP compatible. (You can check compatibility at the bottom left of your Edit Script window.) In order to make this work, you'll need to create a layout for use in IWP that mimics the same functionality.

           

          You can use a pair of global fields, one editable in browse mode (to hold the user's query string), and one not (to hold your message). Put a couple of buttons on the layout (one for "Continue", one for "Cancel"). Set your message field, go to the appropriate layout, and display it to the user.

           

          I usually like to do such things in two stages - one script to set it up, another set of scripts (one for each option - "Continue", "Cancel", etc.) to finish. But you can use a "Pause Script" if you like; I just prefer to have more control.

           

          HTH

           

          Mike