Abholen Statusinhalt Forms
Roland Gerweck
Hallo Marco,Danke für Deine neuen FormData-Methoden. Diese muss ich auch sofort einsetzen.
Das funktioniert nun auch so weit gut.
Ich habe jedoch noch ein weiteres Problem:
Ich möchte von meiner Kommissionierliste (Form 85 ) das Feld Status (Item "52") und dessen Inhalt richtig abholen:
form.AddHandler_FormData(Form.FormDataType.ALL, MyFormDataChanged);
}
void MyFormDataChanged(FormData ev)
{
string stat = TextEdit.GetFromUID(form, "52").Value;
if (stat == "C")
btn.Enabled = false;
else
btn.Enabled = true;
}
Der zurückgegebene Wert ist invalid (null) (Zeile mit TextEdid ...) ? Was ist für das Statusfeld zu verwenden, um richtig den Statuscode zurückzuerhalten ?
Gruss,
Roland
Roland Gerweck
Hallo Marco,Ich habe es nun doch heute schon unter Verwendung des ComboBox Typs mit derselben GetFromUID-Methode lösen können:
form.AddHandler_FormData(Form.FormDataType.ALL, null, MyFormDataChanged);
void MyFormDataChanged(FormData ev)
{
string stat = ComboBox.GetFromUID(form, "52").Value;
if (stat == "C")
btn.Enabled = false;
else
btn.Enabled = true;
}
Das geht so gut. Danke.
Gruss,
Roland
0
Please sign in to leave a comment.
Comments
0 comments