Field visible/invisible
Jerome Morges
Hi,I would like that a field is visible or invisible depending the value of a other field.
But I do not find how to do ?
For exemple, in the business partner master data windows, I would like that the field "foreign description" will not appear about "supplier".
PS : I developp in VB code.
Best regards
J. MORGES
Manuel Marhold
Hi Jerome,take a look at this not very old post: http://www.coresystems.ch/forum.html?&tx_mmforum_pi1[action]=list_post&tx_mmforum_pi1[tid]=3969
Jerome Morges
Hi Manuel,I read the other topic.
We speak about the seem thing.
But I do not arrive to do what I want.
My two message box are OK and I show the two message box when I launch my rules.
So, the development go to the "if" instruction but the field "42" does not disappear and I do not understand why.
Do you have an idea ?
Best regards
J. MORGES
Dim Test As String
Test = ComboBox.GetFromUID(pVal.form, "16").Value
MessageBox.Show("Visible 2 : " + Test, "OK")
If Test = 102 Then
MessageBox.Show("IF", "OK")
TextEdit.GetFromUID(pVal.Form, "42").Visible = False
pVal.Form.Update()
End If
Manuel Marhold
Hi Jerome,when do "go" into you code? which event?
Jerome Morges
Hi Manuel,When I modify the Business partners code.
Best regards
Jerome
Michael Egloff
Hej Jerome,this should work. Below you find my testing code (in c#)
if(TextEdit.GetFromUID(pVal.Form, "4").Value == "C1000")
{
TextEdit.GetFromUID(pVal.Form, "14").Visible = false;
}
else
{
TextEdit.GetFromUID(pVal.Form, "14").Visible = true;
}
0
Please sign in to leave a comment.
Comments
0 comments