Skip to main content
Inspiring
September 18, 2014
Question

cfrgrid will not edit

  • September 18, 2014
  • 1 reply
  • 236 views

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>

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    September 19, 2014

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