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

excute Oracle function using data from a CFFORM

Explorer ,
Oct 12, 2007 Oct 12, 2007

Copy link to clipboard

Copied

For simplicity, I have a function that will add 1 to a number a user will enter from a form. So if the user enters the number 2 and submits the form, the next page will display 3.

If I enter the following code in SQL Plus, I get 3:

SELECT MySchema.Add_Function('2') FROM dual;
3

This is correct.

How do i get this to work?
<cfquery name="funcTest" datasource="Test">
SELECT MySchema.Add_Function('#FORM.userNumber#') FROM dual;
</cfquery>

<body>
Your new number is <cfoutput>#funcTest.Add_Function('#FORM.userNumber#')#</cfoutput>
</body>

I get
ELEMENT Add_Function('2') is undefined in funcTest.

Any ideas?
THANKS
TOPICS
Advanced techniques

Views

306

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
Guide ,
Oct 12, 2007 Oct 12, 2007

Copy link to clipboard

Copied

LATEST

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