Add the value of a single field to a lockup

Add the value of a single field to a lockup

I would write on a single field and the value of lockup were the same as the single field, then do a fetch automatically. I wish I could do this because I'll make a public view and not to display data from the lockup to the public, Thanks!


if (input.Alta_de_vendedores  ==  null)
{
    if (input.Correo_electronico  !=  null)
    {
        ALTA = input.Alta_de_vendedores.toString();
        ALTA = input.Correo_electronico;

      x  =  Alta_de_vendedores  [ID == input.Alta_de_vendedores];
        input.Verificacion_Correo = x.Email;
        input.verificacion_contrasena = x.contrasena1;
        input.Numero_de_vendedor = x.ID.toString();
    }
}