Book a Demo

Author Topic: Model Search: How to inhibit null <Search Term>  (Read 3892 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Model Search: How to inhibit null <Search Term>
« on: September 20, 2017, 04:55:08 pm »
Is there any way through the normal Model Search mechanism to stop the user running the search with a null <Search Term>?

A user accidentally did that and the search returned a result set and it took us a while to figure out why.  Because the result set with the <Search Term> and without the <Search Term> were the same it looked like a bug, but it's not (just a coincidence).  However, the lack of the <Search Term> might not be noticed.  This particular search NEEDS a <Search Term>.  How can we make sure the user provides one?

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Model Search: How to inhibit null <Search Term>
« Reply #1 on: September 20, 2017, 05:40:48 pm »
If you are using an SQL search you can make sure that there is no result when the user doesn't fill in the search term.
Otherwise I don't think there is much you can do.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Model Search: How to inhibit null <Search Term>
« Reply #2 on: September 20, 2017, 06:08:57 pm »
If you are using an SQL search you can make sure that there is no result when the user doesn't fill in the search term.
Otherwise I don't think there is much you can do.

Geert
Thanks, Geert,

That's what I thought.  I'll await any reply from the Sparxians.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!