Download XLSX File from Salesforce with Data Validation - salesforce

Can anyone confirm if there is the possibility of downloading xlsx file with Data Validation Logic from Salesforce? I know we can download the xls file as XML Spreadsheet but I would like to know if we can do it using the XLSX file.

It seems this is already discussed here.
Note: if you are doing this in VF or are able to execute Javascript, you can easily use something like sheetsJS to convert a json representation of your data to XLSX.

Related

How to display a spreadsheet/csv file in a website with react

I am trying to display a spreadsheet or a CSV file on a website using react.js
The files are uploaded on the website and I just want to display the files inputted to the website. I have tried the popular meduim.com solution but it does not work for me, and it does not do exactly what I'm looking for.
I am not aware of the contents of the file which is uploaded to the website, but I just want to display whatever is uploaded to the website.
EDIT: If you want to parse xls file, you will 100% need a library. I've made a uploader that take excel before and parsing a xls file yourself is just a non starter. Look into this one.
There are many different library that you can use to do this but if you want to do this yourself, you can parse the csv into an array of array, then use map to create html element.
return (
<table>
csvArray.map(row => {
return <tr><td>row[0]</td></tr>
})
</table>
)

How to fix datasets in question to import .csv or geoJSON into Mapbox?

I am trying to import a .csv dataset into Mapbox, but I keep receiving the error: "Input failed. Latitude and Longitude fields are not present." The fields however are listed as X and Y in the first two columns of the .csv document. It similarly did not upload when I altered the fields to 'latitude' and 'longitude' respectively. Any assistance here would be appreciated.
Lastly when all else failed on the .csv front, I tried to download the geoJSON file but it just automatically opened up in my browser with the text scattered rather than as a file. In fact, the file itself did not even download for some reason. I looked this up and the closes solution here was that I needed Xcode. However, I'm having difficulties downloading Xcode and would be grateful if there is another Mac-based application that can enable the downloading of geoJSON files for upload to Mapbox.
The datasets I'm trying are here: https://data.humdata.org/dataset/yemen-healthsites
This CSV file errors troubleshooting guide in our documentation provide full details on the required format of a CSV file to be uploaded to Mapbox Studio.
If you open a GeoJSON file in your browser (such as this one: https://docs.mapbox.com/help/data/stations.geojson), you should be able to right-click on the page and select the "Save page as..." option to save the .geojson file to a local directory. You should then be able to open the file in your text editor of choice.

Drupal 7: Can I use a webform to submit a single record or upload CSV file for multiple records to database?

A client has asked that we come up with a solution to the following scenario.
They would like a webform that would allow for single/multi-line record submission, which is easy enough to do. They would also like to have the ability to have a file upload option that would allow them to upload a CSV file for bulk record submission.
Has anyone else run into something like this? Is this something that can be done using the Drupal Feeds module? If so, how have you done it? If not... how have you done it?
As per my understanding you want to upload multiple CSV files in webform. I don't know why you are going for Feeds module. You have webform specific modules that is webform_multiple and webform_multiple_file. Please have a look into these modules it may resolve your problem.

How to embed excel worksheet in a webpage

I am working on a web application and one of the features I want to add to the application is working with excel within the web app...
the generic idea is basicly : there is an excel file sitting on a server and it can be displayed on the webpage.. people can edit the file and save it back to the server.. (it will have all of the functionality of Excel itself..)..
is there a way to embedd an excel file / any excel plugin exist? or maybe any alternative to excel that will give me the same functionality?
Thank you very much!
*Important - I want to be able to do that on a localhost without a thirdparty like skydrive/google docs or etc... i want their functionality but all within a local host.. (you can edit the sheet, post a save request and it will update the file residing in the server..)
You can use Google Docs. This article explains pretty well, at least, gives
a general idea.

How to convert the uploaded file in Box.com?

https://salesforce.stackexchange.com/questions/45823/how-to-download-uploaded-file-in-box-com/46515#46515
In the above link the code will give an url (in the response) to download the file. But i want the file to be downloaded in HTML format. As per the box.com website i.e., https://developers.box.com/view/ they have given that we can convert the files to HTML. How can i do this using salesforce.
#Srilakshmi B S
If you want to download the file as HTML, you'll have to take the file and send it to the Box View service/API for conversion. The Box content API doesn't by itself allow you to convert documents for preview and download into HTML. That means that you'll need two separate tokens if using both API endpoint. If you are in fact planning to use both, there's some documentation here on how:
https://developers.box.com/using-the-view-api-with-the-content-api/

Resources