Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

199
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda