Google app maker 如何在app maker';s建议框
我需要对SuggestBox中的选项进行过滤。 我尝试过用不同的方式,但没有一次成功:Google app maker 如何在app maker';s建议框,google-app-maker,Google App Maker,我需要对SuggestBox中的选项进行过滤。 我尝试过用不同的方式,但没有一次成功: 使用模型而不是选项/值;创建计算SQL模型并传递过滤参数: 不起作用:suggestBox在加载数据之前没有要调用的事件或任何东西,因此,如果在中键入任何内容之前为查询传递param,则不会出现错误: Please provide value for the parameter ":Param" used in the query Error: Please provide value for the par
Please provide value for the parameter ":Param" used in the query Error: Please provide value for the parameter ":Param" used in the query
Query for record suggest oracle: (Error) : Please provide value for the parameter ":Param" used in the query
Query for record suggest oracle failed.
谢谢 我也有同样的问题。我放弃了建议框,创建了一个弹出表单。使用数据源的查询生成器模型。我唯一不喜欢的是它似乎区分大小写 比如:
YourFilterColumn startsWith? :Param
添加表视图,然后可以添加文本框并将oninputchange事件设置为:
widget.datasource.query.parameters.Param = widget.value;
widget.datasource.load();
然后,您可以开始键入选择所需的记录,并用按钮将其传递回表单
如果是关系字段,则如下所示:
app.pages.YourPage.children.YourForm.datasource.item.YourItem =
widget.datasource.item;
或者,如果您只需要一个值(尚未测试此值),请执行类似操作:
可能需要添加几行来清除表单:
widget.root.descendants.TextBox1.value = "";
widget.datasource.query.parameters.Param = "";
widget.datasource.load();
我也有同样的问题。Suggestbox,似乎限制太多,我尝试使用带有入站参数的计算sql模型,但不起作用。在第一步中使用带有筛选器的下拉列表。禁用下拉列表,直到选择筛选值。
widget.root.descendants.TextBox1.value = "";
widget.datasource.query.parameters.Param = "";
widget.datasource.load();