[英]appmaker mismatch error, how do i resolve?
I have an error and i cant seem to resolve it: 我有一个错误,我似乎无法解决它:
Type mismatch: element at [0] should be string, but was: undefined Error:
Type mismatch: element at [0] should be string, but was: undefined at
datasources.SitesByld.script:1
Executing query for datasource SitesByld: (Error) : Type mismatch: element
at [0] should be string, but was: undefined
at datasources.SitesByld.script:1
at Object.success (AppStart:11:14)
Executing query for datasource SitesByld failed.
var record =
app.models.Sites.getRecord(query.parameters.SitesId);
if (record !== null) {
return [record];
}
return [];
I am fairly new to coding so forgive me if this is simple 我是编码的新手,如果这很简单,请原谅我
At the end of your code, you have a if clause but there is no else clause? 在代码的末尾,您有一个if子句,但没有else子句? It seems like the function will always return an empty array. 似乎该函数将始终返回一个空数组。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.