Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I want to display the data when I upload it through File Upload Widget.
For Example - If I upload a csv file using File Upload Widget, then the uploaded csv file content data should be visible to us.
Solved! Go to Solution.
after user uploaded the file you would need to use service LoadText of the FileRepository, to get the content of the uploaded file. And display the content how you like in the mashup. Looks like currently you show the filepath in your textarea on the right. There you would need to adapt the binding to show result of LoadText service.
For csv files a CSV Parser exists which you maybe could use to display the csv in a grid. I'm not 100% clear if this works for any .csv (with unknown columns) as I only used it with known columns, as csvparser needs a DataShape to parse the csv into.
Hi @Abhishek_Tirkey ,
Let's split this requirement in 2 parts:
I have taken a File Upload Widget and uploaded a currency.csv file.
But could not able to see the content present inside the csv file.
I am not clear with the bindings and services required for this.
after user uploaded the file you would need to use service LoadText of the FileRepository, to get the content of the uploaded file. And display the content how you like in the mashup. Looks like currently you show the filepath in your textarea on the right. There you would need to adapt the binding to show result of LoadText service.
For csv files a CSV Parser exists which you maybe could use to display the csv in a grid. I'm not 100% clear if this works for any .csv (with unknown columns) as I only used it with known columns, as csvparser needs a DataShape to parse the csv into.