{"id":4269,"date":"2014-03-17T23:00:23","date_gmt":"2014-03-17T14:00:23","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4269"},"modified":"2014-03-17T23:00:23","modified_gmt":"2014-03-17T14:00:23","slug":"google-apps-script%e3%82%b9%e3%83%97%e3%83%ac%e3%83%83%e3%83%89%e3%82%b7%e3%83%bc%e3%83%88%e4%b8%8a%e3%81%ab%e3%82%a6%e3%82%a3%e3%83%b3%e3%83%89%e3%82%a6%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b-2","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4269","title":{"rendered":"[Google Apps Script]\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3059\u308b(2)"},"content":{"rendered":"<ul>\n<li>Google Apps Script\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u30a6\u30a3\u30f3\u30c9\u30a6(\u30d1\u30cd\u30eb)\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/li>\n<li><span style=\"color: #ff0000; font-weight: bold;\">createVerticalPanel<\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u30d1\u30cd\u30eb\u3092\u751f\u6210\u3057\u3001<span style=\"color: #ff0000; font-weight: bold;\">add<\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u30dc\u30bf\u30f3\u7b49\u306e\u30d1\u30fc\u30c4\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<li><span style=\"color: #ff0000; font-weight: bold;\">createServerHandler<\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u30af\u30ea\u30c3\u30af\u6642\u306b\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u7d50\u3073\u4ed8\u3051\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function onOpen(e){\r\n    showContentApp();\r\n}\r\n\r\nfunction showContentApp(){\r\n    var app = UiApp.createApplication().setTitle('Sample App');\r\n    var pnl = app.createVerticalPanel();\r\n    var btn = app.createButton('OK', app.createServerHandler('onClick'));\r\n    pnl.add(btn);\r\n    app.add(pnl);\r\n    SpreadsheetApp.getActiveSpreadsheet().show(app);\r\n}\r\n\r\nfunction onClick(e){\r\n    SpreadsheetApp.getActiveRange().setValue(e);\r\n}<\/pre>\n<ul>\n<li>createApplication()<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-app?hl=ja#createApplication%28%29\" target=\"_blank\" title=\"createApplication()\">https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-app?hl=ja#createApplication%28%29<\/a><\/li>\n<li>Class UiInstance<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-instance?hl=ja\" target=\"_blank\" title=\"Class UiInstance\">https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-instance?hl=ja<\/a><\/li>\n<li>Class VerticalPanel<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developers.google.com\/apps-script\/reference\/ui\/vertical-panel?hl=ja\" target=\"_blank\" title=\"Class VerticalPanel\">https:\/\/developers.google.com\/apps-script\/reference\/ui\/vertical-panel?hl=ja<\/a><\/li>\n<li>createButton()<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-instance?hl=ja#createButton%28%29\" target=\"_blank\" title=\"createButton()\">https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-instance?hl=ja#createButton%28%29<\/a><\/li>\n<li>createButton(html, clickHandler)<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-instance?hl=ja#createButton%28String,Handler%29\" target=\"_blank\" title=\"createButton(html, clickHandler)\">https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-instance?hl=ja#createButton%28String,Handler%29<\/a><\/li>\n<li>createServerHandler(functionName)<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-instance?hl=ja#createServerHandler%28String%29\" target=\"_blank\" title=\"createServerHandler(functionName)\">https:\/\/developers.google.com\/apps-script\/reference\/ui\/ui-instance?hl=ja#createServerHandler%28String%29<\/a><\/li>\n<\/ul>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_04_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_04_01.jpg\" alt=\"GoogleAppsScript_04_01\" width=\"681\" height=\"525\" class=\"alignnone size-full wp-image-4270\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_04_01.jpg 681w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_04_01-300x231.jpg 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/a><\/p>\n<h4>\u3010\u7de8\u96c6\u5f8c\u8a18\u3011<\/h4>\n<p><a href=\"\/\/www.ka-net.org\/blog\/?p=4266\" title=\"[Google Apps Script]\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3059\u308b\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u30a6\u30a3\u30f3\u30c9\u30a6(\u30d1\u30cd\u30eb)\u306e\u5185\u5bb9\u3092HTML\u304b\u3089\u8aad\u307f\u8fbc\u3080\u5f62\u306b\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306fcreateVerticalPanel\u30e1\u30bd\u30c3\u30c9\u3067\u30d1\u30cd\u30eb\u3092\u751f\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u30dc\u30bf\u30f3\u30af\u30ea\u30c3\u30af\u6642\u306e\u53cd\u5fdc\u306f\u4eca\u56de\u306e\u65b9\u304c\u901f\u3044\u306e\u304b\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u308b\u3068\u305d\u3053\u307e\u3067\u5dee\u306f\u306a\u3044\u3088\u3046\u306b\u601d\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3067\u3042\u308c\u3070\u3001\u500b\u4eba\u7684\u306b\u306fHTML\u3067\u4e2d\u8eab\u3092\u4f5c\u3063\u3066\u3057\u307e\u3063\u305f\u65b9\u304c\u697d\u306a\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u3042\u305f\u308a\u306fGAS\u306b\u8a73\u3057\u3044\u65b9\u306f\u3069\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3055\u308c\u308b\u306e\u304b\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Google Apps Script\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u30a6\u30a3\u30f3\u30c9\u30a6(\u30d1\u30cd\u30eb)\u3092\u8868\u793a\u3057\u307e\u3059\u3002 createVerticalPanel\u30e1\u30bd\u30c3\u30c9\u3067\u30d1\u30cd\u30eb\u3092\u751f\u6210\u3057\u3001add\u30e1\u30bd\u30c3\u30c9\u3067\u30dc\u30bf\u30f3\u7b49\u306e\u30d1\u30fc\u30c4\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 createS [&hellip;]","protected":false},"author":1,"featured_media":7113,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[126],"tags":[],"class_list":["post-4269","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Google.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-16R","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4269"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4269\/revisions"}],"predecessor-version":[{"id":4272,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4269\/revisions\/4272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7113"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}