Skip to main content

I want to add a search bar at the top of the product list screen in the mobile environment, similar to the configuration available on the customer screen. However, since the product list is a list-type screen, I am unable to add an extra field to this screen.

Is there a way to add a filter or search functionality to a list-type screen? If not, is there any alternative solution to achieve this functionality?

Below are screenshots of the product detail screen and customer screen for reference.

Thanks in advance for your help!

Hi ​@rishi.gupta 

You can use the same screen type as the customer screen.

Cheers!


Hi ​@Shneor Cheshin,

Thank you for your suggestion! I have used the same screen type as the customer screen (screen type: "List with Headings"), but unfortunately, I was not successful. Here's what I did:

  • I replicated the complete process, including viewing and adding fields, and followed the same steps as the customer screen setup.
  • The only difference is in the table configuration:
    • I used the table "c_request_products_view" and "request_unit", whereas the customer screen has no primary table attached.

Challenges Faced:

  1. Search Bar Missing:

    • Despite replicating the customer screen configuration, the search bar does not appear on my product screen.
  2. Field Viewing Disabled:

    • In the customer screen, fields can be viewed and customized without a primary table.
    • When I attempted a similar setup without a primary table, the "View Fields" option was disabled, preventing me from adding or modifying fields.

 Any guidance on resolving these issues would be greatly appreciated!

Thank you in advance!


Unfortunately, “List with Headings” is not a configurable screen type.  Unless I’m mistaken, that type of screen requires custom code. 


Hi ​@BrianG ,

Thank you for clarifying that “List with Headings” requires custom code. Could you please guide me on how to implement a search bar for this screen type using custom code? An example or reference would be greatly appreciated!

Thank you for your help!


Hi ​@rishi.gupta ,

Apologies, but I won’t be able to help much.  I’ve been away from FSM Mobile for over 2 years.  At a high level, I would not recommend customizing the code if you are not already using a custom solution.  It makes support and upgrades much more difficult.  

However, if you already have a custom solution, search through the code of any existing baseline screen that has the search bar.  I believe Shneor mentioned the customer screen.  Every coded screen has a class with the same name as the metadata screen name.

If my memory has failed, hopefully the current experts will correct me.  Best of luck!


Reply