/// <summary> /// Creates a new context binding for the given path, context and parameters. /// /// This binding is inactive and will not know the bound context initially. You have to call {@link sap.ui.model.Binding#initialize} to get it updated asynchronously and register a change listener at the binding to be informed when the bound context is available. /// </summary> /// <param name="sPath">The binding path in the model; must not end with a slash</param> /// <param name="oContext">The context which is required as base for a relative path</param> /// <returns>The context binding</returns> public extern virtual sap.ui.model.odata.v4.ODataContextBinding bindContext(string sPath, sap.ui.model.odata.v4.Context oContext);
public extern virtual es5.Promise <object> requestCanonicalPath(sap.ui.model.odata.v4.Context oEntityContext);
/// <summary> /// Creates a new context binding for the given path, context and parameters. /// /// This binding is inactive and will not know the bound context initially. You have to call {@link sap.ui.model.Binding#initialize} to get it updated asynchronously and register a change listener at the binding to be informed when the bound context is available. /// </summary> /// <param name="sPath">The binding path in the model; must not end with a slash</param> /// <param name="oContext">The context which is required as base for a relative path</param> /// <param name="mParameters">Map of binding parameters which can be OData query options as specified in "OData Version 4.0 Part 2: URL Conventions" or the binding-specific parameters as specified below. Note: The binding creates its own data service request if it is absolute or if it has any parameters or if it is relative and has a context created via {@link #createBindingContext}. The following OData query options are allowed: <ul> <li> All "5.2 Custom Query Options" except for those with a name starting with "sap-" <li> The $count, $expand, $filter, $levels, $orderby, $search and $select "5.1 System Query Options"; OData V4 only allows $count, $filter, $levels, $orderby and $search inside resource paths that identify a collection. In our case here, this means you can only use them inside $expand. </ul> All other query options lead to an error. Query options specified for the binding overwrite model query options.</param> /// <returns>The context binding</returns> public extern virtual sap.ui.model.odata.v4.ODataContextBinding bindContext(string sPath, sap.ui.model.odata.v4.Context oContext, sap.ui.model.odata.v4.ODataModel.BindContextInfo mParameters);