Sorry for stupid question, but how do I set a value to some field?
I tried many different things, here are some examples of what I tried:
txtJobStatus = “Completed”;
forms.jobticket.elements.txtJobStatus = “Completed”;
I cannot get it to work
Sorry for stupid question, but how do I set a value to some field?
I tried many different things, here are some examples of what I tried:
txtJobStatus = “Completed”;
forms.jobticket.elements.txtJobStatus = “Completed”;
I cannot get it to work
you can’t set values to a element.
You have to set the dataprovider under int.
so if the element name = txtJobStatus and the dataprovider under it:
jobStatus then you must do:
jobStatus = “Completed”
elements are there for UI properties not data properties
Yes, I got that to work, but now I was trying to change color of the same field:
elements.txtJobStatus.bgcolor = ‘ffcccc’;
and it doesn’t work, but works for button, why?
If the field is transparent it will show no background
elements.txtJobStatus.bgcolor = ‘#ffcccc’;
#xxxxxx is the way to set a color.
(see what the color chooser in the method editor generates)