Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

279
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!