14
Views
6
Comments
Solved
i need a filter when i select phone only phone will come in gallery list.
Application Type
Reactive

i need a filter when i select phone only phone will come in gallery list.or i select laptop only laptop will come in gallery list and same goes with moniter


Screenshot 2022-11-17 101618.png
2022-08-03 04-32-50
Ravi Punjwani
Solution

Hi Shubham,

Find the solution OML attached with this.

I want you to understand how I prepared the single Category_OnClick client action, instead of keeping 3 separate actions for each category. I've passed a parameter and then assigned it to the current category on the screen. Refreshing the data just does the job.

Also see that in your data aggregate I've added a new filter. Find it out and understand what is it for.

Cheers!

PRODUCTSTORE_v54.oml
UserImage.jpg
vikas sharma
Champion

Hi,

For above scenario I would suggest you can create one static entity for tags, in this static entity you can store values like laptop, mobile, monitor.... etc. Then when adding product details attach this tag with product. Something like in product details table you can take one tag identifier, possible values will be value of static entity so laptop, mobile.......

Then when filter is required you can filter the records on the basis of this static entity.

regards

UserImage.jpg
Girivasan m

How to pass the value from aggregate to screen. Suggest assigning in action something like this. The record filter is already done.

UserImage.jpg
vikas sharma
Champion

Assuming currently for getting the product listing on screen you have some aggregate or data action. So in this aggregate or data action you just need to create one join with static entity. Then you can apply the filter on the  basis of static entity values.

If still am not able to clear then please help to share the screenshot of data action or OML.

regards

UserImage.jpg
Shubham kushwah
PRODUCTSTORE_v54.oml
2022-08-03 04-32-50
Ravi Punjwani
Solution

Hi Shubham,

Find the solution OML attached with this.

I want you to understand how I prepared the single Category_OnClick client action, instead of keeping 3 separate actions for each category. I've passed a parameter and then assigned it to the current category on the screen. Refreshing the data just does the job.

Also see that in your data aggregate I've added a new filter. Find it out and understand what is it for.

Cheers!

PRODUCTSTORE_v54.oml
UserImage.jpg
Shubham kushwah
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.