简体   繁体   English

Google脚本电子表格范围返回未知

[英]Google Script Spreadsheet range returns unidentified

Basically, Im getting a spreadsheet from my drive and trying to read a range. 基本上,我从驱动器中获取电子表格并尝试读取范围。 Logging its name works perfectly, Logging any information like sheet-names etc works fine, But when i try to do getRange("A1") or getDataRange() on a sheet, it returns unidentified. 记录其名称可以完美地工作,记录工作表名称等任何信息都可以,但是当我尝试在工作表上执行getRange(“ A1”)或getDataRange()时,它将返回未知状态。 Im 100% sure the given range(es) have data in them, its like the script cant find it, or has no acces to it. 我100%地确定给定范围在其中包含数据,就像脚本找不到它一样,或者没有访问权限。

Please help. 请帮忙。 Thanks. 谢谢。 (If someone wants code to look at, just ask.) (如果有人想要查看代码,请询问。)

The UiApp Class is now deprecated as of December 11, 2014. Existing scripts should still function through June 30, 2015. UiApp类现已从2014年12月11日起弃用。现有脚本仍应在2015年6月30日之前起作用。

Google Sunset Schedule Google日落时间表

This may not be the problem with your code, but I'm guessing that sooner or later you'll need to change that code. 这可能不是代码的问题,但我猜测您迟早需要更改该代码。

When I try to run the myClickHandler() function, I get an error on this line: 当我尝试运行myClickHandler()函数时,此行出现错误:

if(e.parameter["foldertextbox"] != ""){

The error states: 错误状态:

无法读取属性

The code dies at that point. 该代码在此时死亡。 When I VIEW the EXECUTION TRANSCRIPT , the last line is this error: 当我查看 EXECUTION TRANSCRIPT时 ,最后一行是此错误:

Execution failed: TypeError: Cannot read property "parameter" from undefined. 执行失败:TypeError:无法从未定义中读取属性“ parameter”。 (line XXX, file "Code") [0.465 seconds total runtime] (XXX行,文件“代码”)[总运行时间0.465秒]

So, I'm guessing there is something wrong with that line of code. 因此,我猜这行代码有问题。 It looks like you are trying to get the value out of the text box named foldertextbox with an e event object property, but there seems to be something wrong with the syntax. 似乎您正在尝试从具有e事件对象属性的名为foldertextbox的文本框中获取值,但语法似乎有问题。 I can't find any documentation that supports e.parameter["text box name"] 我找不到任何支持e.parameter["text box name"]文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM