Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

198
Vistas
ExtJS - Sync with a repeating ID

I have a special use case where data come from a single table column containing a JSON. I'm loading the contents of this JSON into a ExtJS store and after changing or adding new items to the store I have to sync with the server.

The front end send a JSON array like this: {"data":[{"name":"Tony","age":"10","id":"users.1"}]}.

ExtJS sends the generated internal ID, is it possible to every time I sync I always send the same ID, lets say 10 instead of the generated ID?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can set a property in which ExtJS will send it's own generated id, and ignore it on the server side, and put your desired value (10) in the id field.

To do so, add this to your Model definition:

Ext.define('MyModel', {
     clientIdProperty: 'clientId',
});
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda