Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column Names not getting added on updates #67

Open
paulb057 opened this issue Apr 9, 2015 · 0 comments
Open

Column Names not getting added on updates #67

paulb057 opened this issue Apr 9, 2015 · 0 comments

Comments

@paulb057
Copy link

paulb057 commented Apr 9, 2015

I came across a problem where adding additional "tabs" the header/column names where not added to the second tabs only the first one

I replace line 305
<cfset addRows( arguments.query, 1, 1, false, arguments.columnFormats, arguments.autoSizeColumns ) />

with
<!--- Add the column names to the first row
If arguments.columnames exist, use that value for the headers
otherwise use the columnlist from the query variable itself
--->
<cfif structKeyExists(arguments, "columnnames")>
<cfset addRow(arguments.columnnames, 1, 1, false) />

<cfset addRow(arguments.query.columnlist, 1, 1, false) />

        <!--- Add the data starting at the 2nd row, since the header
            was added to the first row
        ---->
        <cfset addRows( arguments.query, 2, 1, false, arguments.columnFormats, arguments.autoSizeColumns ) />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant