• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfrgrid will not edit

Explorer ,
Sep 18, 2014 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

201

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
community guidelines
Community Expert ,
Sep 19, 2014 Sep 19, 2014

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines
Resources
Documentation