Code: Select all
evtroutine handling(#SaveIcon.Click)
if (#COM_OWNER.Validate( Update #xContacts ))
#COM_OWNER.Save
endif
endroutine
Are these used to perform client side validation like in VLWeb's Dialog and View?
How do you use them?
Can client side repository validation be done in VLF-ONE or are we stuck doing it the old way. viewtopic.php?f=3&t=193&p=2388
EDIT
I've been experimenting with the avValidate methods but not getting expected results.
I track the controls in the uInitialize
Code: Select all
mthroutine name(uInitialize) options(*REDEFINE)
* Do any initialization defined in the ancestor
#COM_ANCESTOR.uInitialize
#ASCSRHObjectManager.Register command(#COM_OWNER)
* Build collection of Editable fields
#COM_OWNER.CollectEditableControls( #COM_OWNER.ComponentControls )
#COM_OWNER.avTrackControlChanges incontainer(#ContainerPanel)
#SaveButton.Enabled := False
endroutine
Code: Select all
evtroutine handling(#SaveButton.Click)
if (#COM_OWNER.avValidateAllTrackedMDControls( UPDATE ))
#COM_OWNER.avQueueAsyncOperation busystatetext('Saving') operationid(SAVE)
endif
endroutine