Skip to main content
Question

How to format the where condition from search dialog?

  • April 19, 2022
  • 4 replies
  • 111 views

Forum|alt.badge.img+8
  • Sidekick (Partner)
  • 32 replies

In a screen [frmWindow], open the search dialog, enter a value for any column and hit search. When clicked on search, I need to format the value given and use this formatted value to populate the screen.

For example: In Customer Order screen, I enter value for Customer as “ABC” and hit search. But in the background, I need to format the “ABC” as “%ABC%” and search for this.

We can achieve this using Saved Search but I need to implement it in the form level. I found QueryWhereStatementFormat but came to know that this can be used only for child sources.

Any suggestions?

4 replies

Forum|alt.badge.img+28
  • Superhero (Customer)
  • 1482 replies
  • April 19, 2022

You can only modify the underlying search behavior of the form with a paid modification from IFS - which I would not recommend.  It is much better to teach the users how to use the search, even if it is with a saved search as the basis.


Forum|alt.badge.img+8
  • Author
  • Sidekick (Partner)
  • 32 replies
  • April 19, 2022

Hi @ShawnBerk ,

IFS has given the feasibility to modify the underlying search for child windows. Then why not provide it for the parent form?


Forum|alt.badge.img+28
  • Superhero (Customer)
  • 1482 replies
  • April 19, 2022

I don’t know why technically, I’m just offering my understanding from experience.  We’ve had forms (IFS Views) that actually had a bug in the opening query from IFS and it had to be fixed by IFS, we couldn’t change it. If I understand your intent, it seems the same for your situation, so someone from IFS would have to explain further.


Forum|alt.badge.img+8
  • Author
  • Sidekick (Partner)
  • 32 replies
  • April 20, 2022

@ShawnBerk Thank you for the info.