Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jul 12 at 10:26 AM

    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 ?

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 12 at 02:12 PM
    "{path: 'main>/Rowset(QueryTemplate=\'App/Query/XQry\',RowsetId=1)/Row', parameters:{custom:{parametetgoeshere}}}"
    
    
    give it a try
    Add comment
    10|10000 characters needed characters exceeded