Hi,
I'm trying to connect to a SQL server. I followed the above tutoriel :
Referencing the Data Server as a DLL • Flexmonster
I also downloaded the "flexmonster-data-server-dll" example. I used the same code and added my own new container below the one called "pivotContainer". The issue that I have is I'm having an error message "Unable to connect to the custom data source API endpoint 'http://locahost:51718/fields'. I included in this ticket some images.
Can you help me please ?
Thank you
Hello, Laurier!
Thank you for contacting us.
We managed to reproduce your error on the "flexmonster-data-server-dll" example. Please, try to add '/api' to the URL in the dataSource
object:
dataSource:{
Type:"api",
index:"boa-index",
url:"http//localhost:51718/api"
}
To check the request URL, you need to open browser developer tools(press F12), go to the network
tab, and explore, e.g., "fields" request.
Kidly note that the componentFolder
property should be specified when creating new Flexmonster instances to avoid issues in the future.
Please, let us know if it helps.
Regards,
Solomiia.
Hello Solomiia,
Thank you for reaching out. I added the "/api" and the componentFolder property set at "flexmonster/" as you mentionned and it is now working.
Thank you
Hello again!
Thank you for your quick feedback.
We are glad to hear that it works for you.
Please, feel free to ask if any further questions arise.
Best regards,
Solomiia.