spreadsheet

Google Spreadheets Scripts: check if cell is empty

假如想象 提交于 2019-12-03 17:59:57
问题 I want to input a variable in a cell only if the cell is empty. The if statement, however, does not work. Any advice? var ss=SpreadsheetApp.getActiveSpreadsheet(); var r=ss.getRange("'odpovědi'!A2:J"); var rws=r.getNumRows(); ax=r.getCell(rws-1, 10).getValue(); if (ax == "") { ax = "foo"; r.getCell(rws-1, 9).setValue(ax); } 回答1: No need to extact the value to determine if the cell is empty. Google Spreadsheet API already has a method for this: Range - isBlank method var cell = r.getCell(rws-1

Best way to connect a spreadsheet to web database

人走茶凉 提交于 2019-12-03 16:10:50
I'm using web based database for which I need to add spreadsheet capabilities to its front end. I was thinking that I could use Google Docs Spreadsheets. Their Google App Script seems to have the functionally that I need. In particular I can use the URLFetch service combined with onEdit events to keep the spreadsheet and DB in sync -- AJAX style. It also allows me a lot of flexibility in constructing, saving, and sharing the spreadsheets However some things about Google App Script gave me pause. It runs server-side so it's difficult to debug locally. It doesn't have any sort of debugger with

Generate a spreadsheet file on iOS that is readable both by Excel and Numbers

这一生的挚爱 提交于 2019-12-03 15:24:52
I need to generate a spreadsheet file on iOS that is readable both by Excel and Numbers. CSV file is not sufficient as it does not allow multiple sheets and/or formatting. Which format would work the best? And is there a library/framework that I could use to generate a file in that format? Create a Google docs spreadsheet the Google Data APIs Objective-C Client Library . Then you can import that into Excel/Numbers. 来源: https://stackoverflow.com/questions/5804834/generate-a-spreadsheet-file-on-ios-that-is-readable-both-by-excel-and-numbers

When to switch from Spreadsheet to RDBMS?

心不动则不痛 提交于 2019-12-03 14:43:06
I've volunteered with a Non-Governmental Organization to help with their record-keeping at their community centre. At present, there is only one community centre where all their data is stored. However, this is expected to change by the end of the year. Presently their data is maintained using a workbook with two sheets. Each record in the main sheet may have upto 100 follow-ups in the follow-up sheet. Data is loosely structured, and there are no explicit constraints. Moving all existing data from a spreadsheet to an RDBMS would require effort, but I'm willing to do that; particularly since

Keyboard navigation in GWT CellTable

為{幸葍}努か 提交于 2019-12-03 12:39:32
We are attempting to create an editable grid using CellTable . The use case is fairly high volume data entry for accountants who are used to 10-key entry into spreadsheets. We are trying to replicate spreadsheet- style keyboard navigation as closely as possible. Is there any way to avoid having to hit Enter to get into edit mode for a TextInputCell ? I have tried overriding TextInputCell.onBrowserEvent() to call onEnterKeyDown() when a focus event is received, but that didn't work. Is there any way to use Tab and Shift - Tab to navigate between columns instead of LEFT-ARROW and RIGHT-ARROW?

Saving a PhpSpreadSheet through button click

此生再无相见时 提交于 2019-12-03 10:32:15
I'm trying to get my Laravel app to download an excel file with phpSpreadSheet a continuation of PhpExcel. But so far I'm not having any luck with it. I first tried to make an Axios call through an onClick but that didn't work since JS is not allowed to save things. After that I tried to attach the button to a Laravel action this just opened an empty page. I don't know if anyone here will be able to help me but I will remain hopeful First you need to set an endpoint in your routes to call it using ajax (axios in your case): Route::get('spreadsheet/download',[ 'as' => 'spreadsheet.download',

Create in-cell dropdown with filtered range

怎甘沉沦 提交于 2019-12-03 08:39:45
问题 I'm using Google Spreadsheet. To illustrate my problem, I use the range A2:A8 for the data validation of D2 and E2 . But because in cell D2 , you are supposed to select an animal only, I'd like to filter the range with B2:B8 . What I've tried, is using my own formula which is : =FILTER(A2:A8;IS("B2:B8";"ANIMAL")) but this won't work and I cannot pick the "dropdown" option if I use custom formula. I've also tried my formula in my Range selection, but it's not valid. What is the right formula

Use arrow keys to navigate an HTML table

谁说胖子不能爱 提交于 2019-12-03 04:33:10
问题 I've created a very basic spreadsheet using an HTML table. It works perfectly, except the user must use the mouse to click on every <td> in order to edit it. I'm capturing the click event with jQuery and displaying a dialog to edit it. I would like the user to be able to use the arrow keys to navigate to each cell, with the cell css background changing to indicate focus, and clicking the Enter key would trigger the jQuery dialog event. I'm using jQuery 1.9. Here is a jsfiddle of basically

Need more examples on how to use Spreadsheet::ParseExcel

不羁的心 提交于 2019-12-03 03:42:54
I have been using the Spreadsheet::ParseExcel to list the contents of spreadsheet. I've seen several examples on how to dump the entire spreadsheet. I really would like to see how to use this script more selectively. The example below from IBM basically dumps the content of all cells that have data. #!/usr/bin/perl -w use strict; use Spreadsheet::ParseExcel; my $oExcel = new Spreadsheet::ParseExcel; die "You must provide a filename to $0 to be parsed as an Excel file" unless @ARGV; my $oBook = $oExcel->Parse($ARGV[0]); my($iR, $iC, $oWkS, $oWkC); print "FILE :", $oBook->{File} , "\n"; print

Import Excel into Rails app

天大地大妈咪最大 提交于 2019-12-03 01:59:44
问题 I am creating a small rails app for personal use and would like to be able to upload excel files to later be validated and added to the database. I had this working previously with csv files, but this has since become impractical. Does anyone know of a tutorial for using the roo or spreadsheet gem to upload the file, display the contents to the user and then add to the database (after validating)? I know this is quite specific, but I want to work through this step by step. All I have so far