Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

278
Vistas
How to read value of product in xls by using selectSingleNode?

I have one function getTotByMonth in xls file, it is used to calculate total month by month. Ihave to put some condition for some product. to read the product I used below line var pl = plNode.selectSingleNode("root/select").getAttribute("pl");

function getTotByMonth(plNode,nam){
        var total = 0;
        var objectif = plNode.getAttribute("obj");
        var mto = eval(plNode.selectNodes("mto"));
        var pl  = plNode.selectSingleNode("root/select").getAttribute("pl");
        if (pl == "SP") {
        //logic
        }
}


In the javascript line getting below error in this line 

source.selectSingleNode("root/select").setAttribute("pl",savePL);

Microsoft JScript runtime error 'selectSingleNode(...)' is null or not an object line = 100, col = 2 (line is offset from the start of the script block). Error returned from property or method call.

could you please help me to read the product value.
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda