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

My <cfdump var="#q_RptResult#"> show error

Community Beginner ,
May 27, 2009 May 27, 2009

I'm calling a stor. proc. (in Sybase). If I don't cfdump the resultset, my application run without showing me any problem but when I put cfdump I got the error message saying: CF does not know what q_RptResult is

My code below:

<cfstoredproc procedure="myreport" datasource="#DSN#">

   <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@compcode" value="#compcode#">

   <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@InventYear" value="#InventYear#">

  <cfprocresult name="q_RptResult">

</cfstoredproc>

<cfdump var="#q_RptResult#"> <--- this causing error. Eliminate cfdump eliminate the error message

TOPICS
Getting started
1.0K
Translate
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 ,
May 28, 2009 May 28, 2009

Could we see the error message? In any case, don't you require a cfprocparam of type 'out'?

Translate
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
Participant ,
Jun 12, 2009 Jun 12, 2009

Try moving the CFPROCRESULT tag above the CFPROCPARAM tags. I am not sure if that will solve the issue but everywhere I use these tags the CFPROCRESULT comes first. Give it a shot.

<cfstoredproc procedure="myreport" datasource="#DSN#">

  <cfprocresult name="q_RptResult">

   <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@compcode" value="#compcode#">

   <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@InventYear" value="#InventYear#">

</cfstoredproc>

Translate
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
Contributor ,
Jun 12, 2009 Jun 12, 2009
LATEST

Hi,

          Please make sure your SP is return an 'OUT'

Translate
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