Reputation: 3
I've the latest version of 2sxc (8.11) and I can't use an App Settings value in a filter on the Visual Query.
I've tried using [App:Settings:VariableName] but it keeps giving a bad request error message ("Input string was not in a correct format"). I've tried to change the variable type (text and number) but the error is always the same.
I want to use the App Setting to send some static information to a lot of queries (the AppId of an App, for example) and, if needed, change that information in only one place.
Can someone help me please? Thanks in advance.
Upvotes: 0
Views: 74
Reputation: 5638
Good question!
There is no special feature for this, but it's still easy to do :).
The App Settings is a content-item of the type "App-Settings" in the same-named scope "2SexyContent-App". If you ever want to look into it directly, just change scopes to "2SexyContent-App" - here's how to do it: http://2sxc.org/en/Blog/post/advanced-dynamic-data-content-understanding-content-type-scopes
To use it as a parameter, you would need use a content-type-filter to get "all" of these (there is only one), and use the result as an In-parameter for another part - here's how: http://2sxc.org/en/Docs/Feature/feature/4544
That should do it :)
Upvotes: 0