We help IT Professionals succeed at work.
Get Started

CFSPREADSHEET CF2016 overwrites single sheet

digitalwise
digitalwise asked
on
333 Views
Last Modified: 2017-03-31
We have some code that writes some new data to a multi-sheet workbook.   We just upgraded to CF2016 and now during the write, it deletes the other worksheets.

<cfspreadsheet action="read"
        src="#application.loadpath#\#Session.NewWorking#"
        name="sObj"
        SHEET="2" />

<cfscript>
spreadsheetSetCellValue(sObj,#val(RA)#,2,2);
spreadsheetSetCellValue(sObj,#val(AP)#,3,2);
spreadsheetSetCellValue(sObj,#val(GetCHAP.showvalue)#,4,2);
spreadsheetSetCellValue(sObj,#val(GetFP.showvalue)#,5,2);
spreadsheetSetCellValue(sObj,#val(getrad.showvalue)#,6,2);
spreadsheetSetCellValue(sObj,#val(GetClosed.showvalue)#,7,2);
</cfscript>

<cfspreadsheet action="write" overwrite="true"
        filename="#application.loadpath#\#Session.NewWorking#"
        name="sObj" />

Open in new window

       

We end up with JUST the 2nd sheet - it deletes the rest of them.   This has been working for a long time so it is quite distressing to find the CF2016 fundamentally changes the way a tag works.
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
This problem has been solved!
Unlock 2 Answers and 21 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE