cancel
Showing results for 
Search instead for 
Did you mean: 

OData parse parameters for content (sap.ui.layout).

pablosilva80
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos
"{path: 'main>/Rowset(QueryTemplate=\'App/Query/XQry\',RowsetId=1)/Row', parameters:{custom:{parametetgoeshere}}}"


give it a try
garreth_kelly
Explorer
0 Kudos

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 ?