NT 6.38
I have a Form with a drop field. On that field's Client Side Tab, I checked the Send New Value to Server checkbox, and entered this server side code:
!*** get the other fields from the Campaign File ***
Access:Campaign.Open()
Access:Campaign.Usefile()
PCN:CampaignName = PLE:PledgeCampaignName
PCN:PledgeFromDate = '0'
SET(PCN:Key_CampaignNameFromDate,PCN:Key_CampaignNameFromDate)
if Access:Campaign.Next() = Level:Benign
p_web.SSV('PledgeFromDate',PCN:PledgeFromDate)
p_web.SSV('PledgeToDate',PCN:PledgeToDate)
p_web.SSV('TypeCampaign',PCN:TypeCampaign)
End
Access:Campaign.Close()
PLE:PledgeFromDate = p_web.GSV('PledgeFromDate')
PLE:PledgeToDate = p_web.GSV('PledgeToDate')
PLE:TypePledge = p_web.GSV('TypeCampaign')
!** note-message displays here verify the Pledge fields are loaded correctly
Back on the Client Side tab, I added the three Pledge fields (PLE:PledgeFromDate, PLE:PledgeToDate, and PLE:TypePledge) to the Reset Fields list.
The result is that when I select the Campaign on the drop list, the PLE:PledgeCampaignName field is updated, and the server side code is executed, and the three Pledge fields are loaded in the server side code, BUT the form fields are not updated and the display of the fields does not change from the previous values.
What am I doing wrong?
Mike Springer