Discussions

Ask a Question
Back to All

Use select2 to query data from a dropdown list

For some reason we cannot seem to get the select2 data out of another open content module.

This is the options json.

{
"fields": {
"items": {
"fields": {
"location": {
"type": "string"
}
}
}
}
}

And this is the schema.json
{
"type": "object",
"properties": {
"Locations":{
"type": "array",
"items": {
"location": {
"type": "text"
}
}
}
}
}

we are trying to extract a list of locations from this array using:
"Locations": {
"type": "select2",
"dataService": {
"data": {
"moduleId": "3833",
"tabId": "76",
"valuefield": "Id",
"textfield": "Location",
},
"action":"Lookup"
}

Admin

Hi,
I check your issue ans it sound there is an issue in opencontent with your usecase.

For now, what you can do is to use a list template for the Locations (like articles standard template).

Regards,
Sacha

This comment has been deleted

This comment has been deleted

This comment has been deleted

This comment has been deleted

This comment has been deleted

This comment has been deleted

ο»Ώ