What will be the method of choice for ForeUI to interface with a database for lets say, populating a table from live data?
Alternatively, the ability to interact with an exported database table in a form of a csv file will be helpful too.
Thank you ,
1 answer
Hi aneeman, ForeUI simulation is all about the frontend, so it could not interface database (which is backend) directly. However you can indirectly interface to backend by creating APIs and using correct actions in ForeUI simulation.
If you wrap the database processing into a JSONP API, you could use the “Get JSON Object” action to call it.
If you wrap the database processing into a simple endpoint (for example, a PHP file that prints out the result as plain text), you could use the “Get Remote Content” action to call it.
By searing this forum and our blog, you can find some related Q&A for API creation.
-
Once applied that can be very powerful. I will attempt that. Thank you again