3388_fr-FR
Fenêtre interactiveOk, cela se trouve peut-être quelque part dans la documentation et je viens de la trouver, mais je suis curieux de savoir si je peux faire ce qui suit (ou quelque chose de très similaire).
Présenter à l'utilisateur une fenêtre modale. Dans la fenêtre, il y a 4 cases à cocher, en bas, une zone d'affichage. Pour chaque case cochée par l'utilisateur, il présente la somme de la valeur associée à cette case. C'est-à-dire que si les cases à cocher sont étiquetées 1-4, vérifier les deux premières retournera 1 + 2 = 3 et ensuite, si l'utilisateur coche la troisième case, la fenêtre d'affichage se mettra automatiquement à jour (ou, après avoir appuyé sur un bouton update) pour afficher 1 + 2 + 3 = 6.
Est-ce possible? Merci!Re: fenêtre interactiveMerci beaucoup! C'est parfait!Re: fenêtre interactive
style = "font-size: 10pt; font-family:" Arial "," sans-serif "; color: black;"> Voici
comment le faire en utilisant
NOUVELLE FENETRE:
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: noir;"> nw
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: rgb (0, 0, 221);"> nouveau
la fenêtre
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: purple;"> "Case à cocher
démo "
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; couleur: rgb (0, 0, 221);"> panelbox
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: purple;"> "Check
cases pour additionner les valeurs "
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
number_cbox
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: rgb (0, 0, 221);"> case à cocher
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> ({
style = "font-size: 10pt; font-family:" Courier New "; couleur: violet;"> "1"
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: violet;"> "2"
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: violet;"> "3"
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: violet;"> "4"
style = "font-size: 10pt; font-family:" Courier New "; couleur: noir;">}
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
num_list
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
number_cbox
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
être sélectionné
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
somme totale
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: teal;"> 0
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; couleur: rgb (0, 0, 221);"> pour
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
( je
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: sarcelle;"> 1
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
je
style = "font-size: 10pt; font-family:" Nouveau courrier "; color: navy;"> <=
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: rgb (0, 0, 221);"> nitems
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Nouveau courrier "; color: black;"> num_list )
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
je
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> ++,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
somme totale
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
somme totale
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;"> +
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: rgb (0, 0, 221);"> num
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Nouveau courrier "; color: black;"> num_list [ je ])
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
)
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
sum_tb
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Définir le texte (
style = "font-size: 10pt; font-family:" Courier New "; couleur: rgb (0, 0, 221);"> char
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> total_sum ))
style = "font-size: 10pt; font-family:" Courier New "; color: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
)
style = "">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
)
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
sum_tb
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> zone de texte
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; couleur: violet;"> ""
style = "font-size: 10pt; font-family:" Courier New "; couleur: noir;">>
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; couleur: rgb (0, 0, 221);"> bouton
boîte
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: purple;"> "OK"
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
maintenant
style = "font-size: 10pt; font-family:" Courier New "; color: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
Fermer la fenêtre )
style = "font-size: 10pt; font-family:" Courier New "; couleur: marine;">,
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;">
style = "">
style = "font-size: 10pt; line-height: 115%; font-family:" Courier New "; couleur: noir;">>
style = "font-size: 10pt; line-height: 115%; font-family:" Courier New "; couleur: marine;">;
Comments
There are no comments yet