Skip to main content

I want to add a filter in product list screen(baseline screen). Due to base line screen i am not able to add search filter over there. So i added a new custom screen for filter . there i want to add product id . so that based upon product id product list should be visible. 

 

Is it possible ? if yes please suggest how to do and how i write the script for that.

 

please suggest

thank you in advance

 

Hi ​@aishwarya 

Seems like your requirement is feasible. However, can you please elaborate? or rephrase?

I did not follow your requirements 100%.

Maybe providing an example could be helpful.

Cheers!


Hi ​@aishwarya 

Seems like your requirement is feasible. However, can you please elaborate? or rephrase?

I did not follow your requirements 100%.

Maybe providing an example could be helpful.

Cheers!

Hi ​@Shneor Cheshin 

Thank you for the response

The Model ID field is a dropdown with many values. I want to apply a filter to the Model ID field so that the dropdown shows only the filtered values.

find the attachment for your reference

Could you please suggest how to achieve this using a client script or any other approach?

 

 Thanks in advance


Hi ​@aishwarya 

If you want to show only part of the values on mobile, you could filter them in the sync rule.

If you want all the values available in mobile, but filter according to some logic, a client script can be a good solution.

You will need to follow these steps

  1. Query the values you wish to present
  2. Populate the control with these values.

Pseudocode

...
modelIdQuery = stringFormat("select model_id from <TABLE> where <FIELD1> = '{0}' and active = 'Y'",paramater);
populateListFromQuery('product', 'model_id', modelIdQuery , true);
...

Amend the SQL query according to your logic.

Cheers!


Hi Team,

The requirement has been changed again. I want to add filter on the top of the product detail screen in mobile application. But not able to add column due to list type screen. Is there any other way to add filter in the list type screen.

below find the screen shot of my mobile product list screen

Please suggest the solution

 

Thank you in advance


Reply