2sxc 如何在 Visual Query 中使用应用程序设置中的值?

2sxc How to use a value from the App Settings in Visual Query?

我有最新版本的 2sxc (8.11),但我无法在 Visual Query 的过滤器中使用应用程序设置值。

我试过使用 [App:Settings:VariableName],但它一直显示错误请求错误消息 ("Input string was not in a correct format")。我尝试更改变量类型(文本和数字),但错误始终相同。

我想使用应用程序设置向大量查询发送一些静态信息(例如应用程序的 AppId),如果需要,只在一个地方更改该信息。

有人可以帮我吗?提前致谢。

问得好!

这没有什么特别的功能,但它仍然很容易做到:)。

App Settings 是同名范围“2SexyContent-App”中类型 "App-Settings" 的内容项。如果您想 直接 查看它,只需将范围更改为“2SexyContent-App” - 方法如下:http://2sxc.org/en/Blog/post/advanced-dynamic-data-content-understanding-content-type-scopes

要将其用作参数,您需要使用内容类型过滤器来获取其中的 "all" 个(只有一个),并将结果用作另一部分的输入参数- 方法如下:http://2sxc.org/en/Docs/Feature/feature/4544

应该这样做:)