Hey Guys! First of all I am sorry for my bad english.
Overview:
I created a list of Presents with multiple propertys as an app variable.
Now I created a selection page.
And to show all the prensents I created a output page.
Intention:
select for example hobby1 and hobby2 in the multi combo box
press the button to open the output page
show all the presents with the property hobby = hobby1 or hobby = hobby2
Maybe somebody can help me? Thank you!
dwidge
June 10, 2022, 10:28pm
#2
Output page
Add page parameter hobbys
type text.
Set repeat with of card to formula.
SELECT_BY_REGEX(appVars.presents, "hobbys", params.hobbys)
Bind card title and content to repeated item.
Combo box page
Add page variable selected
(list of objects with token text property).
Attach Set page variable
and Open page
to button tap.
Set page variable selected
to selected tokens of combo box.
Set Open page
to output page, set hobbys
parameter to formula.
JOIN(PLUCK(pageVars.selected, "token"), "|")
Set combo box list of options to formula.
GROUP(PLUCK(appVars.presents, "hobbys"),item,{token: key})
1 Like
Thank you, you are the best!!
Hey @dwidge I have followed your instruction and it works well.
But now there is an little new problem, because I want to get all results if there is no option selected.
At the moment I get no result if I do not select an option.
Thank you for your time!!!
dwidge
June 19, 2022, 11:17pm
#5
Set Open page
to output page, set hobbys
parameter to formula.
JOIN(PLUCK(pageVars.selected, "token")||[], "|")