on 05-28-2019 3:59 PM
I can execute a query without parameters, but when I add a parameter of the error. Does anyone know how to do this in XML View.
OK (Value fixed in query)
<layout:HorizontalLayout allowWrapping="true" content="{path: 'main>/Rowset(QueryTemplate=\'App/Query/XQry\',RowsetId=1)/Row'}">
ERROR
content="{path: 'main>/Rowset(QueryTemplate=\'App/Query/XQry\',RowsetId=1)/Row?Param.1=jsarto'}">
List Binding is not bound against a list for /Rowset(QueryTemplate='App/Query/XQry',RowsetId=1)/Row?Param.1=jsarto -
Does anyone know how to pass Param.1 parameter in the view xml?
Thanks.
Pablo Silva
"{path: 'main>/Rowset(QueryTemplate=\'App/Query/XQry\',RowsetId=1)/Row', parameters:{custom:{parametetgoeshere}}}"
give it a try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you explain what you are trying to achieve , where you have
content="{path: 'main>/Rowset(QueryTemplate=\'App/Query/XQry\',RowsetId=1)/Row'}"
you are setting the content to a specific path in the model main that you have already filled with data .
Have you looked in the console to see what is present in your loaded model ?
I am curious as to why you would want to bind to a parameter , surely if you are passing a parameter you need to requery your model and include the parameter passed in the resulting output of the query and then bind to path ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.