Warning in server connect "Field is required"

I`m want to bind a select dropdown to Server Connect
When I try to select the (query_all_country) which is the server action file,(image 1)
I get the warning “Field is required”
That I dont understand ?? I saw a video where the server action file is chosen, and not any single field
There is 2 fields countryid and countryname.
Also in the select proterties in the select, (image 2)the data link is orange, and the text and id link is blue
Is it supposed to be those colors ?

I think wappler is absolute great, but there is just not enough documentation to support this software.
I think a lot more users would use this software, if indeed you could get info, on how to use all the
features and bells this software has to offer…either as videos or and as docs.! field_required|359x500

!

Can you explain a little more detailed where do you open this data picker dialog on your last screenshot from? And what are you trying to bind there?

If the data item has children, clicking it first expands the tree rather than putting it in the data picker. A second click will add it to the data picker. Is it the second click that you’re missing?

1 Like

Hi bpj… No children I got it to add with a double click, but its still orange…

I have made a API action (query_all_country)that gets all the countrys in the country table
This is called country_dropdown.

I have made a Server Connect (conn_country) and the action for this is under properties to
select the (country_dropdown) from the API action.

I then select the select box field, and on the right side under Prooerties I try to bind the
server action by clicking the orange lightning bolts for Data Source, Text Field and Value Field and bind
to the server connect

I choose (query_all_country) for Data source
I choose (Country) for Text Field and Country_id for Value Field.

Can you share the code you have on the page for the select element? On your screenshots all 3 of the properties have values so it’s a little confusing which property you’re trying to adjust by opening the data picker (lightning bolt)

Sure…

<div class="form-group row">

                                <label for="select_country" class="col-sm-2 col-form-label">Select</label>

                                <div class="col-sm-10">

                                    <select id="select_country" class="form-control" optiontext="Country" optionvalue="country_id" dmx-bind:options="conn_country.data.query_all_country">

                                        <option value="0">Select Country</option>

                                    </select>

All three have populated so what are you trying to add/change?

Sorry I don’t really understand what is the issue. You click the query once to expand it and then second time I’d you want to select it as a source.

I`m just trying to list as text (country names) and value as numbers, from the table with countrys.
Should they not all be filled to do that ?? data source field, text field, value field .

in the properties for the select box, I have orange for data source, blue for text field, and blue for value field
If that the correct way, then its working… I just wanted to know if this is the way, and was wondering why I got the “Field is required” message, but a double click solved the message…

But that is also what I mean, that nowhere there is documentation on how it should be done…

https://docs.wappler.io/t/dynamic-select-menu/2867

Thats it… Thanks Teodor…
So the colors mean what ?? blue and orange is okay ?

image

Anything with an arrow in the tree can be expanded further. The first click expands, the second adds to the data selection.

Get ready, sometimes the set dynamic data is :green_square:! :joy:
From what I understood, colors just define the type of binding visually. So they are not that important. Bleu for example seems to be for direct binding to a data, green is for binding within a flow, orange seems for binding within a parent-children relationship.