Discussions
How to use Select2 for getting data from another module
about 7 years ago by Robert-Jan
I want to get the data of an OpenContent Razor template called our team to use in a handlebars template. When I investigate the POST request the respons is [ ]. The author object in the options.json looks like:
"Author": {
"type": "select2",
"dataService": {
"data": {
"moduleId": "495",
"tabId": "107",
"valuefield": "Id",
"textfield": "Name"
},
"action": "Lookup"
}
},
If I investigate the POST request in the console the response keeps empty, which result in an empty dropdown list.
How can I receive the right data?