Structr version 4.1.2 on Structr managed Sandbox (Community edition)
I'm investigation Structr and I have hit a problem related to the way an "html" select operates on a Structr built page.
I have a table of 'consultants' and one of 'countries' with an isBasedIn relation set between them: a 'consultant' 'is-based-in' a 'country'. I have a 'page' displaying a 'consultant' record where a user can update its properties, one of which is this isBasedIn relation.
I've come across three problems related to filling and use a 'select' html widget(?) which if resolved will give me a better understanding of data management in 'pages' built with Structr.
Q1) I build a 'select' widget using a function query ${'Country'}
but on the page the 'select' widget has many "blank" rows. How do I enable the 'select' widget to show the "Country.name" property. I have tried setting the "value" property to ${current.id}
, or ${Country.id}
or ${dataKeyName.id}
, and other "randomly" chosen settings, with no luck.
Q2) I want the user to assign/update which country the 'consultant' 'is-based-in'. How to I implement this so the Country ID is assigned to the isBasedIn property of the current 'consultant' record?
Q3) I want a user to assign a list of countries the 'consultant' hasWorked. Is this done by replicating the single choice 'select' widget and adding "multiple" to the style property?
So far the documentation and YouTube channel doesn't appear to offer any pointers on these questions.