Home » Javascript » Uncaught ReferenceError: Operadores_lst is not defined

Uncaught ReferenceError: Operadores_lst is not defined

Posted by: admin November 1, 2017 Leave a comment

Questions:

Good afternoon all i have a little problem. Im creating this function on JS to create a search filter. This is the JS code for the filter. Sorry but the code is in Spanish.

function FiltrarOperador() {
var filtro = $("#txtFiltroOperador").val().toUpperCase();
if (filtro == "") {
    LlenarCombo({ Combo: "cboOperador", Resultado: Operadores_lst, CampoId: "idOperador", CampoValor: "Nombre", TextoNull: Recursos["NotAny"] });
} else {
    LlenarCombo({ Combo: "cboOperador", Resultado: Operadores_lst.where(function (a) { return a.Nombre.toUpperCase().indexOf(filtro) != -1; }), CampoId: "id", CampoValor: "Nombre" });
}

}

When im debuggin i get the message: Uncaught ReferenceError: Operadores_lst is not defined

Debug

This is the header code

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="ctrlCuentasOperadores.aspx.js?v=2" type="text/javascript"></script>
<script type="text/javascript">

    $(document).ready(Inicializar);
</script>

Im working on VStudio 2013 C#

Answers: