Unexpected results in "on edit->on load" event
Can you tell me why the input.Treatment_Diagnosis_1 never gets set in the "on edit->on load" event of the following code? I know this exact code works when used in the "on user input" event of input.HCPCS_Code1. Thanks in advance! ~SirGregory on edit { on load { if ((input.Treatment_Diagnosis_1 == null) && (input.HCPCS_Code1 != null)) { if ((count(Patient_Condition[(Patient == input.Patient && Inactive == false)]) > 0) && (count(HCPCS_ICD9[(HCPCS_Code == input.HCPCS_Code1 && HCPCS_Code.Inactive == false)]) > 0)) { Conditions = Patient_Condition [(Patient == input.Patient && Inactive == false)]; Treatments = HCPCS_ICD9 [(HCPCS_Code == input.HCPCS_Code1 && HCPCS_Code.Inactive == false)]; for each x in Conditions { for each y in Treatments { if (x.Treatment_Diagnosis == y.ICD9_Code) { input.Treatment_Diagnosis_1 = x.Treatment_Diagnosis; } } } } } } Update ( type = submit displayname = "Update" ) Cancel ( type = cancel displayname = "Cancel" ) }