[英]Google Apps Script: how to use data in a spreadsheet to query a external database?
I want to build an app that use data in a selected row in my google spreadsheet to make a query in an external site whose source code is something like this: 我想构建一个使用Google电子表格中选定行中的数据的应用程序,以在源代码如下所示的外部站点中进行查询:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"><html dir="ltr">
<head><title>NAME_SITE</title><meta name="name" content="Oracle ADF Faces"><link rel="stylesheet" charset="UTF-8" type="text/css" href="/name_query/adf/styles/cache/mycompany-desktop-10_1_3_4_0-webkit.css"><script>var _AdfWindowOpenError='Pop error message.';</script><script src="/name_query/adf/jsLibs/Common10_1_3_4_0.js"></script><script>_defaultTZ()</script>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<script language="JavaScript" src="../js/functions.js"></script>
</head>
My goal is to automate the task of having to visit an external site and put the search term in it. 我的目标是使必须访问外部站点并将搜索词放入其中的任务实现自动化。 I would simply use a function to do the query and show to user the page with the result of the query.
我只是使用一个函数进行查询,并向用户显示查询结果页面。 Can I do this with GAS?
我可以使用GAS做到这一点吗? What are the first steps?
第一步是什么?
You question is too vague to answer properly. 您的问题太含糊,无法正确回答。 Your HTML fragment is not even a full page and contains no query code.
您的HTML片段甚至不是整页,也不包含查询代码。
I suggest you find out if your external database has a RESTful API available. 我建议您找出您的外部数据库是否具有可用的RESTful API。 You can then use App script to march through your spreadsheet and make queries on after another using that API.
然后,您可以使用App脚本浏览电子表格,然后使用该API进行查询。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.