Search options using 2 rows

Title: AppSheet — How to search a child record using either of two phone-number columns?

I am building a simple AppSheet application for a pediatric clinic to identify existing children safely.

My table, UUID_UPTO_1002, contains these columns:

  • UUID — unique child identifier

  • NAME

  • SEX

  • DOB

  • PHONE

  • PHONE 2

Both phone columns are stored as Text.

Required workflow:

  1. Enter a parent’s phone number.

  2. Find all records where either [PHONE] or [PHONE 2] matches the entered number.

  3. Display the candidate child’s UUID, name, sex and DOB.

  4. Verify DOB and other details before a human confirms the correct UUID.

I have created a slice named UUID_PHONE_SEARCH, sourced from UUID_UPTO_1002.

My question: What is the simplest recommended AppSheet design for a user-entered phone-number search across two columns? Can this be done with User Settings and a slice, or is a separate one-row search/filter table required?

I would prefer not to add unnecessary tables or modify the existing patient records. I am using the current AppSheet editor.

Thank you.

It can be done with a slice, I would however consider the possibility of another field because I think the phone number is prone to change (a father get a new line). Is there another unique field you can use?

But yes, slices are a good option.

I agree with @Jose_Arteaga, it can be done with a slice. Your preference to not use a separate another table, but to use User Settings instead is workable, but wouldn’t be my preference. But if you aren’t using User Settings for anything else, sure, why not?

The Row filter expression for the slice might be something like this for an exact match:

AND(
  ISNOTBLANK(USERSETTINGS("Phone number")),
  OR(
    (USERSETTINGS("Phone number") = [PHONE]),
    (USERSETTINGS("Phone number") = [PHONE 2])
  )
)

Thank you for your reply and.i will try and get back
Thanks once again
Arulalan

Você pode usar sua tabela em um dashboard e pesquisar pela lupa em qualquer campo da sua tabela