Radiobuttons
Verfasst: 22.07.2011, 09:49
Sali,
ich habe ein Radiobutton mit 6 optionen
--, - , ok, +, ++, n.a.
1, 2, 3, 4, 5, 6
ich möchte wenn einer der optionen 1- 5 ausgewählt wird, dass eine fehlermeldung kommt ( msg += "\n - Missing Objectives 1 Weighting";). Falls aber der Option 6 also n.a. ausgewählt wird dass es nichts passiert. Ich weiss nicht was ich in meinem If Anweisung falsch mache.
objna1 = xfa.resolveNode("root.P1.obj1.radio.radioObjective1.#field[5]").rawValue;
if(field1 !=null & field2!=null & nrField== 0 & objna1 !="")
{
msg += "\n - Missing Objectives 1 Weighting";
xfa.host.setFocus(root.P3.obj1.objectiveWeighting1.somExpression);
}
LG
Dimdi
ich habe ein Radiobutton mit 6 optionen
--, - , ok, +, ++, n.a.
1, 2, 3, 4, 5, 6
ich möchte wenn einer der optionen 1- 5 ausgewählt wird, dass eine fehlermeldung kommt ( msg += "\n - Missing Objectives 1 Weighting";). Falls aber der Option 6 also n.a. ausgewählt wird dass es nichts passiert. Ich weiss nicht was ich in meinem If Anweisung falsch mache.
objna1 = xfa.resolveNode("root.P1.obj1.radio.radioObjective1.#field[5]").rawValue;
if(field1 !=null & field2!=null & nrField== 0 & objna1 !="")
{
msg += "\n - Missing Objectives 1 Weighting";
xfa.host.setFocus(root.P3.obj1.objectiveWeighting1.somExpression);
}
LG
Dimdi