Skip to content

custom tag row only creates, doesn't check for existing row. #6

@wiggick

Description

@wiggick

Hi Ben,

The row custom tag only creates rows, doesn't perform a get, so when you're using a template, the given row is completely overwritten. You can fix this by replacing the existing create (roughly line 56) with the following;

<!--- Try Getting the  row. --->
<cfset VARIABLES.Row = VARIABLES.SheetTag.Sheet.getRow( JavaCast( "int", (VARIABLES.SheetTag.RowIndex - 1) ) )>

<cfif ! StructKeyExists(Variables, "Row")>
     <cfset VARIABLES.Row = VARIABLES.SheetTag.Sheet.CreateRow(
			JavaCast( "int", (VARIABLES.SheetTag.RowIndex - 1) )
			) />
</cfif>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions