Using NT 12.17
I have a form that allows a client record to be attached to a record in one of 2 ways, either select from an existing list (lookup) or add one on the fly that gets saved to a separate table to be validated later by another user.
So the form has a radio choice of existing or new then:
If new there are a selection of client fields to be entered manually including a drop list for titles from a Titles table (work perfectly)
If existing is selected an existing client a drop list is displayed and the client related entry fields become read only to display the selected client details. Again it all works perfectly, well most of the time on odd occasions the client fields are cleared after selection. I have narrowed this down to a drop list field, in this case the client title which is file loaded drop list (actually set to read only if existing client).
Here is a snippet of code from the Validate::lvClientCode Routine with the extra assign fields, the drop list field is lvClientTitleGUID. When the error occurs all the fields after lvClientTitleGUID in the list are blank, so if I moved it down several lines the fields above populate correctly, unfortunately I can't move it any lower than just before the pushevent so the clientcode is blanked. I have changed it to a queue loaded drop and all is well, could it relate to the fact that the title field drop value::.. routine opens and closes all the files including clients?
p_Web.SetValue('lookupfield','lvClientCode')
do AfterLookup
do Refresh::lvClientTitleGUID
do Refresh::lvClientSurname
do Refresh::lvClientFirstname
do Refresh::lvClientDoB
do Refresh::lvClientGender
do Refresh::lvClientAddr1
do Refresh::lvClientAddr2
do Refresh::lvClientAddr3
do Refresh::lvClientAddr4
do Refresh::lvClientAddr5
do Refresh::lvClientPostcode
do Refresh::lvClientHomePhone
do Refresh::lvClientMobilePhone
do Refresh::lvClientEmail
p_web.PushEvent('parentupdated')
do Refresh::lvClientCode ! Field is auto-validated
do SendMessage
p_web.ntForm(loc:formname,'ready')
p_web.PopEvent()
I hope someone can shed some light, if not I'll try to modify an example to recreate the problem, however it is very intermittent.
Gordon