i am searching for a way to upload an Excel File and show it in a Table Widget. And after that create an MSSql Table from the shown table.
I already fail at the first step. The Excel data from the filepicker are obviously not suitable for displaying them in the table. Is there a possibility here ?
To make it work today, you’ll need to first upload the file to a DB, convert it into JSON or an array, create a query to fetch the response, and then display the response in a table. Is it possible for you to first upload the file somewhere to convert it?
One more possibility related to Nikhil’s suggestion is to convert your excel to a google sheet.
Advantage of doing this is that Appsmith today offers Google Sheets as a datasource. You can connect your appsmith app to your sheet and set up the two way communication using queries.
This is amazing thank you. Has anyone on the team taken this to the next step and implemented validation?
A basic check that data loaded from CSV into a staging table complies with validation rules (Data type (e.g.: integer, float, string), Range (e.g.: number between 35-40), Uniqueness (ex. Postal code), Regional phone number in correct format, Consistent expressions (ex. Using one of St., Str, Street), No null values, etc etc).
Ultimately we want to prevent submission of bad data before it gets to the database.
Hey @MagnumPI you have to ideally write rules on top of the data and highlight cells which have errors. While we don’t have a demo for it, it should be straightforward if you use a JS object to write a custom validation function and conditionally change colors of cells which have problems.
Do let us know if you need any help building this and we will assist you.