I get an error when the following code is executed. I'm trying to re-set a field as "un-editable" on a form.
if ( globals.returnedNameId )
{
tknameid=globals.returnedNameId
globals.fn=timekeeper_to_name.namefirst
globals.ln=timekeeper_to_name.namelast
globals.mn=timekeeper_to_name.namemiddle
forms.tkAdd.elements.fn.edit=false <--- Error says Java class "com.servoy.j2db.dataui.DataField" has no public instance field or method named "edit".
}
else
{
answer=plugins.dialogs.showDialog( 'Name record was not entered or selected...', 'Do you want to try again?', 'No', 'Yes' )
if ( answer= 'Yes' )
{
tkSearchNames();
}
else
{
return
}
}
It does not work with "editable" either. Can someone please tell me the correct syntax?