Hi,
I have a profile for User and user Details is an associated table.
I seem to be able to get it to work in one part of the application by doing the following:
protected function btnSave_Click($strFormId, $strControlId, $strParameter) {
$this->objUser->UserDetail->BackupEmail = $this->txtBackupEmail->Text;
$this->objUser->UserDetail->Title = $this->txtTitle->Text;
$this->objUser->UserDetail->City = $this->txtCity->Text;
$this->objUser->UserDetail->Save();
$this->objUser->Save();
}
I excerpted some things out from this controller for the button but I believe these are the essentials.
I have another application which is a “popup” in a lightbox but I assume it should still work:
$this->objUserDetails->LName = $this->txtLastName->Text;
$this->objUserDetails->Title = $this->txtTitle->Text;
$this->objUserDetails->City = $this->txtCity->Text;
$this->objUser->AccountIdObject->Name = $this->txtCompany->Text;
$this->objUserDetails->Save();
$this->objUser->Save();
IN this case I have:
$this->objUserDetails = UserDetails::LoadById($this->objUser->UserDetailId);
Yes, I did use the same objUser->UserDetail and that didn't work either.
Thoughts?