You are viewing limited content. For full access, please sign in.

Question

Question

Forms formulas not workin

asked on May 26, 2018 Show version history

hi everybody,

I have a form taht contains 4 formulas (the four currency fields). two of them are working, but not the others.
i tried everything but can't find out the problem.

the two formulas that are not workin "Montant indemnité FGAR_CMT" and "fgar leasing"

use the same variable "taux de garantie" but its a number field that contains "4" so it it cant be the problem.
And it doesn't display anything, neither the result nor an error.not even 0.
any suggestions?

0 0

Replies

replied on May 26, 2018

Hi,

Those which are working are they in the same collection with those not working.?

0 0
replied on May 26, 2018

hi emanuel ,
yes, the same collection.

0 0
replied on May 28, 2018

Hi Hanane,

 

Could you please give us the formula for " Montant indemnité FGAR_CMT " ?

Thanks in advance.

Regards

0 0
replied on May 29, 2018

hi olivier, thanks for the answer


the two formulas are on the pics .
 Montant indemnité FGAR_CMT = "MULT( MULT( Dossier_comité.taux,Dossier_comite.principal),0.4)

 

Regards

0 0
replied on May 29, 2018 Show version history

Have you tried using PRODUCT instead of MULT.??

0 0
replied on May 29, 2018

PRODUCT( PRODUCT( Dossier_comité.taux,Dossier_comite.principal),0.4)

0 0
replied on May 29, 2018

merci emmanuel .

No i didn't because i choose MULT from the dropdown list in forms functions, and its workin for the other formulas. but i will try. thanks for the suggestion.
:)
 

0 0
replied on May 29, 2018

You can try and give us feedback if it works

 

0 0
replied on May 29, 2018

Salut Hanane,

 

Ta formule semble juste ; cependant, elle ne s'applique qu'au lancement du formulaire ; autrement dit, dès que le formulaire est loadé, ta formule calcule MULT de rien avec rien. Le fait de remplir les champs Taux et Principal après le loading ne changera rien. Tu peux faire le test en remplaçant tes variables par des constantes directement et tu verras que ça fonctionne.

=MULT(4,2)

Essaye de passer plutôt par du javascript.

0 0
replied on May 29, 2018

saut olivier,

En fait non parce que les deux champs taux et principal sont déjà rempli dans l'étape précédentes donc au load du formulaire ils sont déjà rempli je ne rempli rien a cette etape.

et avec les constantes ça marche moi je pense plutôt que le problème vient des valeurs avec des virgules mais pas sur.
d'après toi je fais les calculs avec javascirpts? ça ne pose pas de probleme? ceci dit les formules de forms sont la pour ça ça serait dommage de ne pas pouvoir les utiliser. 

0 0
replied on May 29, 2018 Show version history

Hanane,

 

Je viens de faire le test chez moi, les chiffres à virgule ne pose pas de problème.

Ci-dessous mes paramètres.

 

As-tu bien mis le nom de tes variables dans ta fonction ?

0 0
replied on May 29, 2018

this works if the fields are not in collection.. Try it using fields contained in the collection.. As I suggested earlier Hanane you should try using the PRODUCT() as it works for me..

1 0
replied on May 30, 2018

hi guys,
Product works! i'm so happy, i can't' believe it works! have been workin on it for almost two weeks ! and I'm afraid of being disappointed. i tried it on my VM, but  not yet on the client preprod server.
thank you so mutch! ill give you feedback and mark the answer as soon as it's done
Best regards

0 0
replied on May 30, 2018

Merci beaucoup olivier,

j'ai suivi toutes les pistes possibles et imaginables et la dernière en date était le problème de virgule,et oui les noms des variables etaient juste vu que je ne les ai pas écrites mais selectionné depuis la liste déroulante de Forms.
Merci de m'avoir aidé. j'espère que le product marchera chez mon client.
bon courage et bonne continuation :)
 

0 0
replied on May 30, 2018

Heureux pour toi ^^

Tu peux exporter ce que tu as fais de ta VM pour l'importer chez ton client ; tu devras changer quelques paramètres mais ça devrait marcher.

 

Bonne continuation.

 

Cordialement

0 0
replied on May 30, 2018 Show version history

It could be an order of operations thing...

 

Try something like what I have below: 

try sample1: =MULTI((PRODUCT(Field1,Field2)),Value2) or =MULTI((MULTI(Field1,Field2)),Value2)
try sample2: =DIV((MULTI(Field1,Field2)),Value2)

 

The reason for the other set of ()'s is to represent Value1 to your last operation.  Value1 is the first operation that should be performed in the first set of ()'s.  Once that operation is complete the second/last operation would then use Value1, Value2 for your last call operation.  Without the ()'s there may be confusion as to which operation to perform first or which Values to use in which operation.  Hopefully this helps...

 

Also... 

Are you using the field name or the css name?  applying the CSS name to the field and using the CSS name in your formula may give you results you are looking for.  

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.