ColdFusion Need help with my excel download feature

I have a radio button which filters records:

<input type="radio" name="showall" id="showall" value="1" />

How can I change the title data in the first row of the excel sheet if this radio button is selected?

I would like "Project Report" to be the default display and when the "showall" radio button is selected it would change to "All Project Reports".

Excel header code:

<cfset querySummary = "Project Report" >
<cfset SpreadsheetMergeCells(sObj, 1, 1, 1, columnsInQuery)>
<cfset SpreadSheetSetCellValue(sObj, querySummary, 1, 1)>
DJPr0Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dgrafxCommented:
I'm assuming you are submitting a form that has the radio button in - correct?
And that the excel code is on the form action page - correct?
If that's the case then do this:
<cfif form.showall is 1>
     <cfset querySummary = "All Project Reports" >
<cfelse>
     <cfset querySummary = "Project Report" >
</cfif>
<cfset SpreadsheetMergeCells(sObj, 1, 1, 1, columnsInQuery)>
<cfset SpreadSheetSetCellValue(sObj, querySummary, 1, 1)>

let me know if that's not the case
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DJPr0Author Commented:
Thanks dgrafx!
0
dgrafxCommented:
NP
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.