this problem is a migration from smartclient 8.2
Version SC_SNAPSHOT-2012-02-16_v8.2p/PowerEdition
to
SmartClient Version: v10.0p_2015-02-02/Pro Development Only (built 2015-02-02)
google chrome Versión 43.0.2357.130 m
i expose the problem:
with a select item with this definition
in version 8.2 to set optionFilterContext you could use this as follows:
now it seems not to work, seems a datapath,name "imposible to resolve field" issue
tried this:
Doesn't work
please could you give an advice?is it something we're doing wrong?
thank you in advance
Version SC_SNAPSHOT-2012-02-16_v8.2p/PowerEdition
to
SmartClient Version: v10.0p_2015-02-02/Pro Development Only (built 2015-02-02)
google chrome Versión 43.0.2357.130 m
i expose the problem:
with a select item with this definition
Code:
pickListFields:[
{name:"codCompuestoSubproyecto", formatCellValue: function (value, record) {
return formatSubprojectCode(record.secuencial, record.lineaVenta.codigoEstructura, record.proyecto.codigoProyecto);
}, title: isc.Mpxi18nProperties.sequential, canSort: false},
{name: "descripcion"},
{name: "codCliente", dataPath: "cliente/codigoCliente", title: isc.Mpxi18nProperties.customer, canSort: false},
{name: "codProyecto", dataPath: "proyecto/codigoProyecto", title: isc.Mpxi18nProperties.project, canSort: false},
{name: "codProducto", dataPath: "producto/codigoEstructura", title: isc.Mpxi18nProperties.product, canSort: false},
{name: "codLineaVenta", dataPath: "lineaVenta/codigoEstructura", title: isc.Mpxi18nProperties.saleLine, canSort: false},
{name: "codDelegacion", dataPath: "delegacion/codigoProvincia", title: isc.Mpxi18nProperties.delegation, canSort: false},
{name: "fechaInicio", dateFormatter: "toEuropeanShortDate", canFilter: false},
{name: "fechaFin", dateFormatter: "toEuropeanShortDate", canFilter: false}
],Code:
componentID.optionFilterContext={data: {pageSize: isc.MpxGeneralProperties.dataPageSize,
codDelegacion: "someDelegation",codEmpresa: "someCompany",codProducto: "someProduct"}},tried this:
Code:
componentID.optionFilterContext={data: {pageSize: isc.MpxGeneralProperties.dataPageSize,
delegacion:{codigoProvincia: "someDelegation"},codEmpresa: "someCompany",producto:{codigoEstructura: "someProduct"}}}please could you give an advice?is it something we're doing wrong?
thank you in advance