[{"id":"ff9bd47a-cd46-472d-af43-366f35920ef1","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"f674ca00-4cf2-4f53-9a08-4aa596ff5f02","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"5f9ed446-5e43-4e35-b070-bbedb3095625","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"c8f61bda-f911-4c26-aa5c-cf046d91d345","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"ffcf2b4f-0e46-41d0-b0b7-0cc510a2a482","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"4200be12-4188-42f3-9cf4-5fcaebbc57f7","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"7bc4edb3-af3c-4fe3-8820-973c7b43d825","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"af815243-c00f-4782-b362-bb52a9129e99","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"bd8aaf4e-1ba8-4025-8ba9-d57cfbefbc58","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"874f311d-9a12-4e41-9c01-e7aaa99ab496","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"5811b0f0-9142-4dec-87d5-11fbd1e001ec","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"cef428a7-3494-4942-81f6-6712e4b9d1e7","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"3be03770-5428-4ad4-8ebc-09708a22e209","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"563145bf-65b2-4718-851d-594d1b9cf1f6","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"b273295a-e4a0-45ad-be8a-5c3a2322d22c","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"76f8df3f-5d71-4244-8fa6-6be30e10170f","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"7990d3f5-9c4c-4c37-9a96-7e7b1cf0e531","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"a5d052e6-ac14-4b26-b51d-2042af4bd88c","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"4a6e9860-0849-40aa-8cdb-c16c5fb52ef4","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"b02661dd-4bf2-4e6a-94c0-c85827e19c52","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"06c9877a-acd0-49b6-8a35-52d10c942e21","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"b9cc95e6-4c7e-4ae6-9168-6270c8b9df48","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"81742c3e-102a-44f5-8e12-83cdddf79651","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"f6568a5c-eb38-4edb-af3a-8af10e64b122","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"f30f3e16-1db8-48eb-b7a8-de189c306e42","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"c38d9bd1-ec29-4861-bea2-e9939a1d40b8","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"c7f7e6eb-630d-4851-ab1a-eeafb6882ff9","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"e82078d4-d506-4d51-83ea-129c35f610c2","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"2cf396a7-8e6d-4ece-867e-2a346c855b76","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"7fdf2b77-d2f1-440f-8bde-79873ae161be","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"4bfbb7a7-db6a-4e62-9bb9-043090f29e06","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"4acb1bbe-766a-4271-a1e7-156999bf6da7","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"e2476b8f-2102-441c-9f8c-bbd9ca5f94c8","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"eeba73bc-77fb-4e4c-addd-f365b53e009b","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"604aae49-9273-455c-813b-c2c97aa713c7","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"fd995bda-fac2-4ef5-ab75-d8f6840b937a","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"24dbdbdf-1539-4e43-8f9f-036adaf28f36","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"6896e627-8625-484c-9487-48803c13019b","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"035cce7b-7cfc-405b-b003-419583668944","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"139bcd73-12b9-4e78-843c-dd63933e35b8","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"f38fe005-cfd6-4f25-9c83-f5a545aaa911","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"5fa9f1d8-ed73-4642-82cd-cb4f7a9a145a","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"09b280d0-fc2f-438a-8d57-e87c6ef02d8b","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]}]
Spread.Sheetsを使用すると、ユーザーはワークシートの列にデータ(数式および値)を自動的に入力できます。ユーザーは、選択したセルのフィルハンドルをダブルクリックするだけで、セルの内容を列全体に入力することができます。フィルハンドルは、4つのオプションを使用してデータを入力することができます(セルのコピー、連続データ、書式のみコピー、書式なしコピー)。
ビジネスアプリケーションでは、数百行または数千行のデータを含むワークシートを場合があります。ダブルクリックでオートフィルを行うと、マウスを使用して手動でドラッグ入力しなくてもすばやく簡単に自動入力でき、エンドユーザーの時間を節約するとともに、入力ミスを減らすことができます。
フィルハンドルをダブルクリックすると、startRangeの内容(すでにデータが含まれているセル範囲)に応じて、列の下の空のセル(fillRangeと呼ばれます)がフィルされます。
以下、ダブルクリックでオートフィルできる操作について説明します。
数値 :startRangeに数値が含まれる場合、フィルハンドルは、以下に示すように、数値を自動入力します。数値列は、対応するパターン、およびフィルハンドルのオプションに基づいてフィルされます。
日付 :startRangeに日付値が含まれる場合、フィルハンドルは、以下に示すように、日付を自動入力します。デフォルトの動作は、「セルのコピー」アクションを実行します。連続した日付でフィルする場合は、ドラッグフィルのスマートタグを開いて、「連続データ」オプションを選択してください。
数式 :startRangeに式が含まれる場合、フィルハンドルは、以下に示すように、式を自動入力します。
注 :以下は、制限事項となります。
オートフィルは、フィルハンドルの隣の列に空でないセルがある場合にのみ動作します。
列のデータをフィルするためにフィルハンドルをダブルクリックすると、現在の列の最後の空でないセルまでしかフィルされません。
また、隣接する列に空のセルが含まれている場合は、フィルハンドルをダブルクリックすると、隣接する列の最後の空でないセルまでフィルされます。
ダブルクリックして値や数式をオートフィルするには、以下のサンプルコードを参照してください。
// 数値および数式をオートフィルする
var spread = new GC.Spread.Sheets.Workbook(document.getElementById('ss'), {
sheetCount: 4
});
var sheet = spread.getActiveSheet();
// デフォルトのワークシートに値を設定します
sheet.setValue(0, 0, 'Name');
sheet.setValue(1, 0, 'Jack');
sheet.setValue(2, 0, 'Lily');
sheet.setValue(3, 0, 'Linda');
sheet.setValue(4, 0, 'John');
sheet.setValue(5, 0, 'Bob');
sheet.setValue(6, 0, 'Ming');
sheet.setValue(7, 0, 'Gorge');
sheet.setValue(8, 0, 'Kobe');
sheet.setValue(9, 0, 'James');
sheet.setValue(10, 0, 'Faker');
sheet.setValue(11, 0, 'Tai');
sheet.setValue(12, 0, 'Peter');
sheet.setValue(0, 1, 'Index');
sheet.setValue(1, 1, 1);
sheet.setValue(2, 1, 2);
var sheet1 = spread.getSheet(1);
// "sheet1"ワークシートに値を設定します
sheet1.setValue(0, 0, 'Product');
sheet1.setValue(1, 0, 'P1');
sheet1.setValue(2, 0, 'P2');
sheet1.setValue(3, 0, 'P3');
sheet1.setValue(4, 0, 'P4');
sheet1.setValue(5, 0, 'P5');
sheet1.setValue(6, 0, 'P6');
sheet1.setValue(7, 0, 'P7');
sheet1.setValue(8, 0, 'P8');
sheet1.setValue(9, 0, 'P9');
sheet1.setValue(10, 0, 'P10');
sheet1.setValue(11, 0, 'P11');
sheet1.setValue(12, 0, 'P12');
sheet1.setValue(0, 1, 'Price');
sheet1.setValue(1, 1, 1.1);
sheet1.setValue(2, 1, 1.5);
sheet1.setValue(3, 1, 1.6);
sheet1.setValue(4, 1, 1.2);
sheet1.setValue(5, 1, 1.5);
sheet1.setValue(6, 1, 0.8);
sheet1.setValue(7, 1, 0.8);
sheet1.setValue(8, 1, 1.0);
sheet1.setValue(9, 1, 2.2);
sheet1.setValue(10, 1, 2.0);
sheet1.setValue(11, 1, 0.7);
sheet1.setValue(12, 1, 1.5);
sheet1.setValue(0, 2, 'Units');
sheet1.setValue(1, 2, 11);
sheet1.setValue(2, 2, 13);
sheet1.setValue(3, 2, 10);
sheet1.setValue(4, 2, 9);
sheet1.setValue(5, 2, 8);
sheet1.setValue(6, 2, 5);
sheet1.setValue(7, 2, 10);
sheet1.setValue(8, 2, 16);
sheet1.setValue(9, 2, 9);
sheet1.setValue(10, 2, 7);
sheet1.setValue(11, 2, 10);
sheet1.setValue(12, 2, 14);
sheet1.setValue(0, 3, 'Comment');
sheet1.setValue(0, 4, 'Revenue');
sheet1.setFormula(1, 4, '=B2*C2');
var sheet2 = spread.getSheet(2);
// "sheet2"ワークシートに値を設定します
sheet2.setValue(0, 0, 'Product');
sheet2.setValue(1, 0, 'P1');
sheet2.setValue(2, 0, 'P2');
sheet2.setValue(3, 0, 'P3');
sheet2.setValue(4, 0, 'P4');
sheet2.setValue(5, 0, 'P5');
sheet2.setValue(6, 0, 'P6');
sheet2.setValue(7, 0, 'P7');
sheet2.setValue(8, 0, 'P8');
sheet2.setValue(9, 0, 'P9');
sheet2.setValue(10, 0, 'P10');
sheet2.setValue(11, 0, 'P11');
sheet2.setValue(12, 0, 'P12');
sheet2.setValue(0, 1, 'Price');
sheet2.setValue(1, 1, 1.1);
sheet2.setValue(2, 1, 1.5);
sheet2.setValue(3, 1, 1.6);
sheet2.setValue(4, 1, 1.2);
sheet2.setValue(5, 1, 1.5);
sheet2.setValue(6, 1, 0.8);
sheet2.setValue(7, 1, 0.8);
sheet2.setValue(8, 1, 1.0);
sheet2.setValue(9, 1, 2.2);
sheet2.setValue(10, 1, 2.0);
sheet2.setValue(11, 1, 0.7);
sheet2.setValue(12, 1, 1.5);
sheet2.setValue(0, 2, 'Units');
sheet2.setValue(1, 2, 11);
sheet2.setValue(2, 2, 13);
sheet2.setValue(3, 2, 10);
sheet2.setValue(4, 2, 9);
sheet2.setValue(5, 2, 8);
sheet2.setValue(6, 2, 5);
sheet2.setValue(7, 2, 10);
sheet2.setValue(8, 2, 16);
sheet2.setValue(9, 2, 9);
sheet2.setValue(10, 2, 7);
sheet2.setValue(11, 2, 10);
sheet2.setValue(12, 2, 14);
sheet2.setValue(0, 3, 'Comment');
sheet2.setValue(0, 4, 'Revenue');
sheet2.setValue(7, 4, 'STOP');
sheet2.setFormula(1, 4, '=B2*C2');
var sheet3 = spread.getSheet(3);
// "sheet3"ワークシートに値を設定します
sheet3.setValue(0, 4, 'Product');
sheet3.setValue(1, 4, 'P1');
sheet3.setValue(2, 4, 'P2');
sheet3.setValue(3, 4, 'P3');
sheet3.setValue(4, 4, 'P4');
sheet3.setValue(5, 4, 'P5');
sheet3.setValue(6, 4, 'P6');
sheet3.setValue(7, 4, 'P7');
sheet3.setValue(8, 4, 'P8');
sheet3.setValue(9, 4, 'P9');
sheet3.setValue(10, 4, 'P10');
sheet3.setValue(11, 4, 'P11');
sheet3.setValue(12, 4, 'P12');
sheet3.setValue(0, 3, 'Price');
sheet3.setValue(1, 3, 1.1);
sheet3.setValue(2, 3, 1.5);
sheet3.setValue(3, 3, 1.6);
sheet3.setValue(4, 3, 1.2);
sheet3.setValue(5, 3, 1.5);
sheet3.setValue(6, 3, 0.8);
sheet3.setValue(7, 3, 0.8);
sheet3.setValue(8, 3, 1.0);
sheet3.setValue(9, 3, 2.2);
sheet3.setValue(10, 3, 2.0);
sheet3.setValue(11, 3, 0.7);
sheet3.setValue(12, 3, 1.5);
sheet3.setValue(0, 2, 'Units');
sheet3.setValue(1, 2, 11);
sheet3.setValue(2, 2, 13);
sheet3.setValue(3, 2, 10);
sheet3.setValue(4, 2, 9);
sheet3.setValue(5, 2, 8);
sheet3.setValue(6, 2, 5);
sheet3.setValue(7, 2, 10);
sheet3.setValue(8, 2, 16);
sheet3.setValue(9, 2, 9);
sheet3.setValue(10, 2, 7);
sheet3.setValue(11, 2, 10);
sheet3.setValue(12, 2, 14);
sheet3.setValue(0, 1, 'Comment');
sheet3.setValue(0, 0, 'Revenue');
sheet3.setFormula(1, 0, '=C2*D2');