This Search screen (UI) allows users to view all the posts.
They can select district and venue (if they select district, they must select venue), or even select a specific date. Then, they press the ‘Find’ button to view the corresponding posts.
For example, users ‘Find’ ‘Central and Western’ and ‘AAA Sport Centre’, only Post 1 should be seen while Post2 should be invisible.
The 3 main tag_name (Yellow-circled blocks) in the database are:
district
venue
date
For the logic of the filter,
I think when users ‘Find’ the specific venue and date, those unmatched posts should be invisible.
But, I have no ideas what blocks I should use for them since I am not familiar with the blocks…
Could anyone help me to fill in the rest of the blocks (red circle blocks?)? Thank you
you should us give us some demo db else, see how can we test it… also you are using multiple tags… so create one demo project in firebase , add elements then share us… so you will get solution faster
Myself believe that you are complexing your self the app. I showed earlier a simple approach for your first query to have a simple design. But now you are go on with the available result which mean everything need to change totally.
That’s why we always say please ask properly.
You must use separate list for every tags then only it will function properly and you can use filter. Also you are looking for three filter , which mean you must go the filter 2 from the filter 1 result likewise you need filter 3 from filter then only you achieve the result.
Or you can use and logic three times with the event block of for each number from to by
If district with index 1 = district selc and
Date with index 1 = date picker and venue with index 1 = venue selection
Then with this number add items into a local variable and from this variable create the Dyna components
Don’t use contains text use select list item from the list block
Update
Please test this aia. I have tried to simplify your logics
Thank you super much for your help!!!
Your solution is so smart! I should simplify the logic that lets users select all those filters.
Now, I can successfully filter the post. Thank you again!
I am so sorry again.
I cannot use the json extension since other extensions will be used in another screen later on, which reach the max (I should have a better communcation with my school teammates to do the project).
So, I need to change it back to use firebase components…
Because I see some discussion using this extension to read data from the database…
And also, my app requires users to signup and login, so it is better to have authentication (not use web1).
I think I find some guidelines about how the database reads the data. Please give me 15 mins to try to figure it out by myself…If I still cannot, please help me
But, it seems my schema template is not suitable for this(?), which I cannot find any similar examples… And I do not want to delete the blocks you made as they are still useful in my mind
Here is the aia. Please help me to change it to firebase. Thank you. FilterPostFB.aia (153.2 KB)
hey it is so simple, what you are using as web url just put it in tag value just like this
if it is web url you will use www.abcx.firebaseio.com/Posting.json but in fb blcoks just call the value of Posting and move all the blocks from when web got text to when fb got value and make changes… simple