Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

277
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda