Highlighted

cfrgrid will not edit

Explorer ,
Sep 18, 2014

Copy link to clipboard

Copied

When I attempt to edit my grid the following error is returned. error invoking CFC /design /Regstration.cfc : The PAGE argument passed to the getData function is not of type numeric.

My getData function: code:

<!--- Get data --->

    <cffunction name="getData" access="remote" returntype="struct">

        <cfargument name="page" type="numeric" required="yes">

        <cfargument name="pageSize" type="numeric" required="yes">

        <cfargument name="gridsortcolumn" type="string" required="yes">

        <cfargument name="gridsortdirection" type="string" required="yes">

      

<cfquery name="rdc14" datasource="cfrdc">

  select * FROM rdc2014

   <cfif ARGUMENTS.gridsortcolumn NEQ "" and ARGUMENTS.gridsortdirection NEQ "">

            ORDER BY #gridsortcolumn# #gridsortdirection#

        </cfif>

        </cfquery>

        <cfreturn queryConvertForGrid(rdc14,ARGUMENTS.page,ARGUMENTS.pageSize)/>

    </cffunction>

Views

153

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

cfrgrid will not edit

Explorer ,
Sep 18, 2014

Copy link to clipboard

Copied

When I attempt to edit my grid the following error is returned. error invoking CFC /design /Regstration.cfc : The PAGE argument passed to the getData function is not of type numeric.

My getData function: code:

<!--- Get data --->

    <cffunction name="getData" access="remote" returntype="struct">

        <cfargument name="page" type="numeric" required="yes">

        <cfargument name="pageSize" type="numeric" required="yes">

        <cfargument name="gridsortcolumn" type="string" required="yes">

        <cfargument name="gridsortdirection" type="string" required="yes">

      

<cfquery name="rdc14" datasource="cfrdc">

  select * FROM rdc2014

   <cfif ARGUMENTS.gridsortcolumn NEQ "" and ARGUMENTS.gridsortdirection NEQ "">

            ORDER BY #gridsortcolumn# #gridsortdirection#

        </cfif>

        </cfquery>

        <cfreturn queryConvertForGrid(rdc14,ARGUMENTS.page,ARGUMENTS.pageSize)/>

    </cffunction>

Views

154

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 18, 2014 0
BKBK LATEST
Adobe Community Professional ,
Sep 19, 2014

Copy link to clipboard

Copied

Then see if it works with <cfargument name="page" required="yes"> instead.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 19, 2014 0