Okay. I got this.
I’ve already finished this step too.
OK.
So, lets go on our page now…
You have added the serverconnect with the serveraction we just talked on steps 5,6,7. Right?
And has an input parameter called “countries”. Right?
(what is the id of your tagify that filters the countries?)
There you bind the “tagifyID”.values.
we are not finished buddy…
Why you run? 
(that’s because on page load, tagify is empty…)
Finished with the serverconnect input parameter?
Sorry my friend.
Let’s go.
Ready for the next step
BELOW!!!
Not inside it…
Ok. It’s already below
OK?
For the DataView:
- Datasourse is the serveconnect query from the step 7.
- The filter is what does all the work… (I paste my code in order to guide you, ignore it)
filter="srvc_products_contains_AnyTag.data.query_products_copy&&tagify1.values.hasItems()?(srvc_products_contains_AnyTag.data.tagsList.existInArrays(prd_Tags)):prd_id>=0"
we start with a condition:
- if the serverconnect query has successfully returned values and our tagify has at least a value
then
we use the custome formatter to compare
the setValue Array (step6) to the JSON Array column (pct_code_pais it is for you?) - else
just all trpids with id>=0 (this is true anyway, because there is no way an id to be <=0)
Please show me your serverconnect to help you build it
OK. I will do this part calmly. I’ll let you know then
OK buddy!
Take your time.
I’m almost ready to go to sleep…
Please pay attention to the explaining I gave you and if you have any question drop it here and first thing in the morning I’ll answer you!
One more time with simple words:
filter=
step7_Query && tagify1.values.hasItems()
?
(step6_Array.existInArrays(yourJsonArrayColumn) )
:
yourPac_id >= 0 )
I’m trying to get this to work on my test for @marcosvinicios
<dmx-serverconnect id="sc_countries" url="/api/Other/countries"></dmx-serverconnect>
<dmx-serverconnect id="sc_tours" url="/api/test_for_marco"></dmx-serverconnect>
<dmx-data-view id="dv_tours_filter" dmx-bind:data="sc_tours.data.query" filter="sc_tours.data.query&&tagify1.values.hasItems()?sc_tours.data.query.countries.existInArrays(c) : test_id>=0"></dmx-data-view>
<input is="dmx-tagify" id="tagify1" name="tagify1" dmx-bind:data="sc_countries.data.query" tag-value="iso3" min-chars="0" tag-text="iso3">
<div id="masonry1" is="dmx-masonry" dmx-bind:repeat="dv_tours_filter.data">
<article><small class="text-muted" dmx-text="title"></small>
<small class="text-muted" dmx-text="countries"></small>
</article>
</div>
@famousmag can you see where I’m going wrong? There are no conditions om the query, btw.
Thx.
Ok. Thank you very much for now.
We’ll talk tomorrow morning.
@Heather_Mann can you check the true part of the inline if?

sc_tours.data.query.countries = the Json Array column?
c = the setValue Array from the $_GET.countries?
If yes, then try to check the output on dev tools fo these 2 values to see what you have there…
The values of the tagify are “CHI”, “ARG” etc… or IDs?
The same with the JSON Array column, what it stored there?
*You got what I mean… maybe you compare [“ARG”,“CHI”,“FRA”] with [123, 11, 46]








