I am currently working on a website, and would like to display data from an excel sheet on it.
Excel sheet format:
Each row contains an 'item', and each column contains properties of that instance of the item.
What I'm trying to do:
I'm trying to display an item (row in excel sheet of columns that I pick) one at a time to a user from the sheet, and upon clicking left or right buttons, it goes to the next or prev item.
I'd like to only display certain properties, so I'm not using all cols in spreadsheet(so if a row had an image in col A, a name in col B, and a summary in Col 3, etc)
So, my question:
How should I go about implementing this into my website?
I have read its possible use javscript to import excel data and manipulate it (so I guess I'd instantiate an object which contains the data I need from the sheet and display it on the website, each time the user clicks I would just replace the object)
I also read about importing the excel sheet into a database (mySQL), and then getting the data from the database and instantiating the object that way with PHP. I haven't learned SQL yet, but I read it's not too complex for simple things and I do plan on learning it regardless.
Thanks for any suggestions!
This thread may help you:
How to parse Excel (XLS) file in Javascript/HTML5
Personally, I hate working with excel sheets and convert them to csv whenever I can. Then parse the csv and convert the rows to JSON format.
Related
I need to make website that will display information from .csv (or whatever you will advice). That information should look like: every string is individual card.
scheme of design
sample of csv
i tried to search information of DOM and d3js, but doesnt understand how to create every object individually and how to pic only on part of Table
I want to read data from excel sheet with typography. Currently , I am using xlsx npm library to read data. It help us to get data in plain JSON format.
For example, if a user added a text in cell like this =>
List item 1
List item 2
List item 3
List item 4
then I will be able to get this list with same typography in stringify HTML format so that user can view data in browser with same typography as he/she entered in excel sheet.
Can someone help me with this?
Thanks.
How do I create a web form that accepts input that would be copied and pasted from Excel? Basically, I have a table on my website I use for managing my project every now and then it makes sense to just copy and past a section from excel and paste it into the website. However standard form fields just put all the values inside one input.
Is there a way to set up a form with rows and columns that would accept values from Excel and parse it into the same structure in rows and columns to be updated on my website?
I'm following the doc (https://dev.office.com/reference/add-ins/excel/excel-add-ins-reference-overview) to build an Excel add-in. The add-in needs to populate an Excel table column with either dropdown or checkbox for the user to select actions to be done on the table row. I can't seem to find any API to insert dropdown/checkbox in Excel spreadsheet. Could someone advise how I could do that? Thanks!
UI controls such as text box, check box, button, etc. are not supported in Office-js. You'd instead need to accept such user inputs within your task pane or dialog box. Alternatively, you could accept inputs within Excel cells as well (though that is bit hard) and drop down values within cells can be included using data validation API (still in beta) to help with controlling input values.
Try getting the cell and calling
cell.dataValidation = {
type: 'list',
allowBlank: true,
formulae: ['"Selected,Rejected,On-hold"'],
};
based on How to add data validation list in excel using javascript
Just looking to be pointed in the right direction about how I should do this.
Background: Creating a program which will automatically fill out excel pricing files for our customers from our database based on the UPC. However, there's over a hundred different sheets because customers want them sent in their own format. Some in very weird formats. I don't want to hard code the columns/locations for UPC, price, etc. (sections that need to be filled out), as the sheets sometimes change and we get new customers. Therefore, I'm going to put the power in the users hands to map the locations of the UPC column, etc. I currently use excel interop in C# to do the excel file reading/filling out, however the mapping user panel is what I need help with.
What I would like to do: I'm comfortable with modifying an excel file in the background. However, I would like the mapping to work as such. I could easily say: "UPC Column Header" and the user puts in B10 in a text box and so on. What I would rather do is have the previous mappings for that customer in the text boxes, a check to see if the text is the same (same cell text value as before), and then an error if the column header cell text doesn't match the previous mapping stored in a db. I'm fine and dandy with the database portion to store/check the mappings, but here is my conundrum... and I may be putting more work on myself.
The conundrum is: I would like the user to be able to view the selected excel sheet and click on a cell to select a new mapping in the program, or to map a new excel sheet. So it would say: "Click the UPC header," and so on in order to fill out the mapping form. How would you go about this?
I'm a C#/ASP.NET web developer with decent Javascript experience and would like to keep it as a web app (to avoid having to update the program based on my changes for the user). However, I'm willing to go down different avenues/languages.