Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 将单元格数据从Google工作表拉至Google App Maker中的文本框或标签_Javascript_Html_Google App Maker - Fatal编程技术网

Javascript 将单元格数据从Google工作表拉至Google App Maker中的文本框或标签

Javascript 将单元格数据从Google工作表拉至Google App Maker中的文本框或标签,javascript,html,google-app-maker,Javascript,Html,Google App Maker,我正在Google app maker中开发一个应用程序,我想将表格中的特定单元格值拉入该应用程序 我尝试过使用像Sheetsu这样的API,结果发现输入数据的唯一方法是使用iFrame作为图表。当输入到Tryit Editor v3.6的测试窗口时,下面的代码可以工作,但当输入到App Maker中的HTML小部件时,将无法正确提取值 <table> <thead> <th>Pending Matters</th> <t

我正在Google app maker中开发一个应用程序,我想将表格中的特定单元格值拉入该应用程序

我尝试过使用像Sheetsu这样的API,结果发现输入数据的唯一方法是使用iFrame作为图表。当输入到Tryit Editor v3.6的测试窗口时,下面的代码可以工作,但当输入到App Maker中的HTML小部件时,将无法正确提取值

<table>
  <thead>
    <th>Pending Matters</th>
    <th>Closed Matters</th>
    <th>Risk Meter</th>
    <th>Closing %</th>
  </thead>
  <tbody sheetsu="https://sheetsu.com/apis/v1.0su/386ed1faa5dc" sheetsu-limit="3">
    <tr>
      <td>{{Pending Matters}}</td>
      <td>{{Closed Matters}}</td>
      <td>{{Risk Meter}}</td>
      <td>{{Closing %}}</td>
    </tr>
  </tbody>
</table>

<script src="//load.sheetsu.com"></script>

未决事项
封闭事项
风险计
收盘价%
{{未决事项}
{{已结束事项}
{{Risk Meter}}
{{关闭%}}

我以前没有使用过API或sheetsu,但是对sheets/gmail/etc的GAS基本调用与在常规GAS中的工作方式相同

我解决你问题的办法是

  • Appmaker:使用与工作表相同的字段创建数据源

    Appmaker服务器脚本:打开工作表,读取值,然后写入 将它们发送到数据源(使用电子表格应用程序)

    AppmakerPage:使用表小部件显示数据源

    AppmakerPage:在页面或应用加载上调用服务器脚本


我以前没有使用过API或sheetsu,但是对sheets/gmail/etc的GAS基本调用与在常规GAS中的工作方式相同

我解决你问题的办法是

  • Appmaker:使用与工作表相同的字段创建数据源

    Appmaker服务器脚本:打开工作表,读取值,然后写入 将它们发送到数据源(使用电子表格应用程序)

    AppmakerPage:使用表小部件显示数据源

    AppmakerPage:在页面或应用加载上调用服务器脚本


是否已将App Maker外部库中的脚本源置于“设置”下?是否已将//load.sheetsu.com添加到外部库中,是否还应添加其他内容?我不确定首先添加的内容是否正确您是否将App Maker外部库中的脚本源置于“设置”下?已将//load.sheetsu.com添加到外部库中,是否还应添加其他内容?我不确定这是不是一开始就应该添加的内容