Set Value AutoCompleteBox via DataWorkSpace with "id" of the SQL Server in Light Switch? RRS feed

  • Question

  • Hello, I'm creating a screen to register new customers in lightswitch, but have an AutoCompleteBox, to "TipoCadastro", I want so that the screen for new registration open, already come filled with "client" of "TipoCadastro", in the AutoCompleteBox, think that I am wrong in this code,

     partial void ScreenNewCliente_Created()
               var tipoCadastro = from m in this.DataWorkspace.IberahControleData.TipoCadastroEntidades.where(CadastroProperty.TipoCadastroEntidade.id_TipoCadastro == "36a31008-3805-44eb-aa3e-e8ca0e4909e3").FirstOrDefault();
               if (String.IsNullOrEmpty(CadastroProperty.TipoCadastroEntidade.TipoCadastro) || (CadastroProperty.TipoCadastroEntidade.TipoCadastro != null)) 
                      this.CadastroProperty.TipoCadastroEntidade = tipoCadastro;

    could check, or rather help me in this error!Await Response! Thank you....

    Sunday, July 14, 2013 12:45 AM