Question : cfinvoke problem

Hi,
I've a function in my cfc and trying to use cfinvoke to populate the value in a textbox.

function in my cfc is as below:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
<cffunction name="getProcDescSCode" access="remote" output="false" returnType="string">
  <cfargument name="getPDescSCode" type="string" required="yes">
  <cfset var GetICD9Code="">
  <cfset GetICD9Code = Replace('#ARGUMENTS.getPDescSCode#', ',', '')>
  <cfquery name = "qgetProcDescSCode" datasource="#THIS.dsn#">
     SELECT STUFF(CAST(CODE AS varchar(7)),3,0,'.') AS CODE
     FROM ICD9PROC
     WHERE ABBREV = '#GetICD9Code#'
     </cfquery>
  <cfreturn (qgetProcDescSCode.CODE)>
</cffunction> 


cfinvoke statement in my cfm page is as below:

1:
2:
3:
4:
5:
<cfinvoke component="components.oasis_SOC" method="getProcDescSCode" returnvariable="qgetProcDescSCode.CODE">
  <cfinvokeargument name="getPDescSCode" value="#CODE#" >
 </cfinvoke>
    <td colspan="2">ICD 9 CM Code: 
     <cfinput type="text" name="M1012_CodeS" id="M1012_CodeS" value="getPDescSCode" size="10" maxlength="7"/>  


Is there anyone, help me to find out what i am doing wrong to populate value in cfinput.

Answer : cfinvoke problem

if it is in SQL server, other database should be similar
select substring(crs_cde,6, len(cde)-5)

starts from 6th character with size total string minus 5
Random Solutions  
 
programming4us programming4us