fiogf49gjkf0d in Architect.....
Open up the form\plugin desired (System:Account Detail)
Name each of your controls (F4 to see the Properties, click on each control in turn, change the .Name property to txtMyFieldName....)
There should already be an AXFormChange SCRIPT event handler for the form you are looking at, if not add the event handler (click on the form, click on the Property's window EVENTS tab, double click on the OnChange event)
Whatever the name of the status contol is (pklAccountStatus for example) will control the script.
Maybe it's
MyTextField1.ReadOnly = True
MyTextField1.ReadOnly = True
SELECT CASE pklStatus.Text
CASE "Active"
MyTextField1.ReadOnly = True
MyTextField1.ReadOnly = True
CASE "Inactive"
CASE ELSE
END SELECT
or maybe it's
If pklAccountStatus.Text = "Active" Then
MyTextField1.ReadOnly = True
MyTextField1.ReadOnly = True
Else
End If
You should buy the DevLogix book.....or examine examples up here....vbScript is the programming language. Microsoft has tutoring stuff online....
|