X : Integer
N : Calculated
N = X + X' (X from the previous record)
Can this be done?
That page tells you about triggers and the JavaScript objects that support them. If you click on the link to the Libraries Examples in the companion page Trigger Examples, you'll see a code snippet you should be able to use. If you know a smattering of JavaScript, you should be able to doctor that code to do what you want.


Thanks for the tip.



--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/39ba0f3b-def5-4979-b99e-1e1531b474a8o%40googlegroups.com.






OláO script não pertence a um campo, mas: você desliza da borda direita para a esquerda. Uma barra de menus é exibida -> selecione JS -> azul mais -> selecione gatilho -> evento = crie uma entrada / fase = abra um cartão de confirmação de entrada / no script à qual a cópia pertence.Olá
O script não pertence a um campo, mas sim: você desliza da borda direita para a esquerda. Aparece uma barra de menus -> selecione JS -> azul mais -> selecione gatilho -> evento = crie uma entrada / fase = abra um cartão de confirmação de entrada / no script em que a cópia pertence.
Na sexta-feira, 10 de julho de 2020 22:57:21 UTC + 2 Lucidio Ferreira escreveu:OláSou iniciante e estou tendo dificuldades para resolver esta situação. Eu criei um campo em java como anexado, mas não funcionou.
Em quinta-feira, 9 de julho de 2020 17:45:41 UTC-3, Ernst Moser escreveu:
OláExperimente o script pré-pós. Ele deve ser inserido em "Criar uma entrada / Abrir um cartão de confirmação de entrada".Olá
Experimente o script pré-pós. Ele deve ser inserido em "Criar uma entrada / Abrir um cartão de confirmação de entrada".
Na quinta-feira, 9 de julho de 2020 22:41:36 UTC + 2, Ernst Moser escreveu:função LS (local) {
var local1 = local
var libclients = lib (); // chama este banco de dados
var inputs = libclients.entries (ort1); // obtém todos os dados do nome
var entry = entradas [0];
var l = entradas.length; // L é o número de dados
if (l> 1) {
var number = entry [0] .field (place1);
número de retorno;
}
}
// Ligue para
var e = entry ()
var Va1 = "odometro atual"
var Va2 = "odometro anterior"
e.set (Va1, LS (Va2))
na quinta-feira, 9 de julho de 2020 21:30:38 UTC + 2 escreveu Lucídio Ferreira:Amigo Timothy LeungEu gostaria de saber como você resolveu esse cálculo com o campo anterior, veja no anexo que eu preciso que a milhagem anterior seja puxada para o cálculo com a milhagem atual, sabe? Aqui está o que estou tentando fazer.
Em domingo, 5 de fevereiro de 2017 01:41:35 UTC-3, Timothy Leung escreveu:
Obrigado pela dica.
--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/c801ca18-a940-42e3-ad2f-baf73abcbd8ao%40googlegroups.com.





Lucidio, from your screenshot you still have not added JavaScript libraries. Once you fix your code with Ernst help it still won't work if you have not done this.- Beth
On Thu, Jul 9, 2020, 3:30 PM Lucidio Ferreira <luci...@gmail.com> wrote:
--Friend Timothy LeungI would like to know how you solved this calculation with the previous field, see in the annex I need the previous mileage to be pulled into the calculation with the current mileage, you know? Here's what I'm trying to do.
Em domingo, 5 de fevereiro de 2017 01:41:35 UTC-3, Timothy Leung escreveu:Thanks for the tip.
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memento...@googlegroups.com.


Lucidio, from your screenshot you still have not added JavaScript libraries. Once you fix your code with Ernst help it still won't work if you have not done this.- Beth
On Thu, Jul 9, 2020, 3:30 PM Lucidio Ferreira <luci...@gmail.com> wrote:
--Friend Timothy LeungI would like to know how you solved this calculation with the previous field, see in the annex I need the previous mileage to be pulled into the calculation with the current mileage, you know? Here's what I'm trying to do.
Em domingo, 5 de fevereiro de 2017 01:41:35 UTC-3, Timothy Leung escreveu:Thanks for the tip.
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memento...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/cf8a54d7-7ebf-495e-9ef4-1f58c0e75c09o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/cf8a54d7-7ebf-495e-9ef4-1f58c0e75c09o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/6875c2f4-fdad-4468-8052-4256f0e8e855o%40googlegroups.com.
or then in a Javacript field ??To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/6875c2f4-fdad-4468-8052-4256f0e8e855o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/751fcf84-c1a1-4707-b80c-54f809105168o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/2b5b3141-3b8a-49aa-9a2c-5146bd52406fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/ab326359-744d-4dfe-b9fe-c33bf05872d3n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/2edce54c-e90f-4ed2-8832-f6203f5c23dbn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/31b2e36f-bf55-4bc7-93ae-75fd960468a7n%40googlegroups.com.