Skip to Content

Bind model to objectheader


i try to do this"/DetallesSet?$filter=Sucursal eq " + "'" + sucursal + "'", {
	success: function(oData, response) {
	var oResults = oData.results;
	sap.ui.getCore().setModel(oModel, "Modelo");

this the result

this is my view:

<ObjectHeader title="Detalles de Cita"/>
				path: 'timestamp',
				formatter: '.formatter.fecha_f'
			numberUnit="{path: 'timestamp',
							formatter: '.formatter.hora_f'}" >
					text="Observación: {Esp_servicio}"
					state="Success" />
					text="Sucursal: {Sucursal}"
					state="Success" />
				<ObjectAttribute text="Datos de Vehículo:  {DbmLicext}" />
		<Text text="{Cli_nombre}" />

do i forgot something ? or miss ?

model.png (32.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 23, 2018 at 09:38 AM

    Your data binding does not contain the model name "Modelo". Change the below lines to include the model name.

    text="Observación: {Modelo>Esp_servicio}"
    text="Sucursal: {Modelo>Sucursal}"
    <ObjectAttribute text="Datos de Vehículo:  {Modelo>DbmLicext}" />
    <Text text="{Modelo>Cli_nombre}" />
    Add comment
    10|10000 characters needed characters exceeded