Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

setting optionFilterContext to SelectItem

$
0
0
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
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}
                    ],

in version 8.2 to set optionFilterContext you could use this as follows:

Code:


componentID.optionFilterContext={data: {pageSize: isc.MpxGeneralProperties.dataPageSize,
codDelegacion: "someDelegation",codEmpresa: "someCompany",codProducto: "someProduct"}},

now it seems not to work, seems a datapath,name "imposible to resolve field" issue
tried this:

Code:


componentID.optionFilterContext={data: {pageSize: isc.MpxGeneralProperties.dataPageSize,
delegacion:{codigoProvincia: "someDelegation"},codEmpresa: "someCompany",producto:{codigoEstructura: "someProduct"}}}

Doesn't work
please could you give an advice?is it something we're doing wrong?
thank you in advance

Viewing all articles
Browse latest Browse all 4756

Trending Articles