epipko
01/15/2025, 5:35 PM<cfset jsonData = deserializeJSON(httpResp.fileContent) />
epipko
01/23/2025, 6:43 PM<cfif #risk_httpResp.Filecontent# EQ "{"risks":[]}">
Risk Analysis is not available
</cfif>
Invalid CFML construct found on line 28 at column 58
28 : <cfif #risk_httpResp.Filecontent# EQ "{"risks":[]}">
29 : Risk Analysis is not available
30 : </cfif>
Do I need to escape specific character(s)? If so, how?johnbarrett
01/28/2025, 1:39 AMmolluskorg
02/06/2025, 8:43 PMepipko
02/28/2025, 6:28 PMDavid Johnson
03/03/2025, 4:06 PMjohnbarrett
03/11/2025, 5:34 AM<!--- Application.cfc ---> <cfcomponent output="false">
<!--- Turn on session management. --->
<cfset this.sessionManagement=true>
<!--- Default datasource --->
<cfset this.dataSource="codingtask">
<cffunction name="onRequestStart" output="false" returnType="void">
<!--- If user isn't logged in, force them to now --->
<cfif not isDefined("session.auth.isLoggedIn")>
<!--- If the user is now submitting "Login" form, --->
<!--- Include "Login Check" code to validate user --->
<cfif isDefined("form.UserLogin")>
<cfinclude template="loginCheck.cfm">
</cfif>
<cfinclude template="loginForm.cfm">
<cfabort>
</cfif>
</cffunction>
</cfcomponent>
----------------------------------------LoginForm.cfm-----------------------------------------------------------------<!--- If the user is now submitting "Login" form, --->
<!--- Include "Login Check" code to validate user --->
<cfif isDefined("form.UserLogin")>
<cfinclude template="LoginCheck.cfm">
</cfif>
<html>
<head>
<title>Please Log In</title>
</head>
<body>
<!--- Start our Login Form --->
<form action="LoginCheck.cfm" name="LoginForm" method="post">
<!--- Use an HTML table for simple formatting --->
<table border="0">
<tr><th colspan="2" bgcolor="silver">Please Log In</th></tr>
<tr>
<th>Username:</th>
<td>
<!--- Text field for "User Name" --->
<input
type="text"
name="userLogin"
size="20"
value=""
maxlength="100"
required="Yes">
</td>
</tr><tr>
<th>Password:</th>
<td>
<!--- Text field for Password --->
<input
type="password"
name="userPassword"
size="12"
value=""
maxlength="100"
required="Yes">
<!--- Submit Button that reads "Enter" --->
<input type="Submit" value="Enter">
</td>
</tr>
</table>
</form>
</body>
</html>
--------------------------------------------LoginCheck.cfm------------------------------------------------------------<!--- Make sure we have Login name and Password --->
<cfparam name="form.userLogin" type="string">
<cfparam name="form.userPassword" type="string">
<!--- Find record with this Username/Password --->
<!--- If no rows returned, password not valid --->
<cfquery name="getUser">
SELECT ContactID, FirstName
FROM Users
WHERE UserLogin =
<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.UserLogin#">
AND UserPassword =
<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.UserPassword#">
</cfquery>
<!--- If the username and password are correct --->
<cfif getUser.recordCount eq 1>
<!--- Remember user's logged-in status, plus --->
<!--- ContactID and First Name, in structure --->
<cfset SESSION.auth = structNew()>
<cfset SESSION.auth.isLoggedIn = "Yes">
<cfset SESSION.auth.contactID = getUser.contactID>
<cfset SESSION.auth.firstName = getUser.firstName>
<cflocation url="welcome.cfm">
</cfif>
rodyon
03/13/2025, 11:44 AMrodyon
03/13/2025, 11:46 AMrodyon
03/13/2025, 11:48 AMrodyon
03/13/2025, 11:48 AMepipko
03/17/2025, 6:19 PM<cfset jsonData = deserializeJSON(httpResp.fileContent) />
<cfdump var=#jsonData#>
<cfset item_qty = ArrayLen(jsonData.line_items)>
<cfoutput>#item_qty#</cfoutput>
David Johnson
03/20/2025, 1:54 PMDavid Johnson
03/20/2025, 1:55 PMepipko
03/21/2025, 4:31 PMepipko
03/26/2025, 9:15 PMepipko
03/28/2025, 5:47 PM<cfif (ns_refund_amt - return_amt) NEQ 0>
<cfoutput>OrderID: #order_id# --- Refund_type: #refund_type# --- Qty_returned: #item_qty# --- Refund$: #ns_refund_amt# / #return_amt#</cfoutput><br />
</cfif>
OrderID: xxx_--- Refund_type: 1 --- Qty_returned: 1 --- Refund$: 0 / 35_
OrderID: xxx_--- Refund_type: 1 --- Qty_returned: 1 --- Refund$: 0 / 30.1_
OrderID: xxx_--- Refund_type: 2 --- Qty_returned: 1 --- Refund$: 27.98 / 27.98_
OrderID: xxx_--- Refund_type: 2 --- Qty_returned: 4 --- Refund$: 174.69 / 70.41_
OrderID: xxx_--- Refund_type: 2 --- Qty_returned: 2 --- Refund$: 61.18 / 61.18_
OrderID: xxx_--- Refund_type: 2 --- Qty_returned: 1 --- Refund$: 60.22 / 27.61_
I also tried <cfif ns_refund_amt NEQ return_amt>
w/*out* success.Aaron Linder
03/29/2025, 11:53 PMMark Takata (Adobe)
03/29/2025, 11:54 PMAaron Linder
03/29/2025, 11:54 PMMark Takata (Adobe)
03/29/2025, 11:55 PMMark Takata (Adobe)
03/29/2025, 11:56 PMAaron Linder
03/29/2025, 11:56 PMAaron Linder
03/29/2025, 11:56 PMepipko
04/16/2025, 9:35 PMDavid Johnson
04/30/2025, 3:19 PMGaurav Sharma
05/01/2025, 1:24 PMepipko
05/21/2025, 5:22 PMJoshua Kasap
06/04/2025, 4:34 PM<cfcomponent hint="Component for Quantum SMS functions" output="false">
<cfobject name="component_B" component="component_B">
<cfobject name="component_C" component="component_C">
<cffunction xyzParams>
<cfset getValue = component_B.myFunctionName(params)>
</cffunction>
</cfcomponent>
but I get the error Neither the method myFunctionName was found in component W:\inetpub\CFComponents\component_A.cfc
I also tried
<cfcomponent hint="Component for Quantum SMS functions" output="false">
<cfset this.component_B = createObject("component", "component_B") />
<cfset this.component_C = createObject("component", "component_C") />
<cffunction xyzParams>
<cfset getValue = this.component_B.myFunctionName(params)>
</cffunction>
</cfcomponent>
however, if I do a dump log of this.component_B I can see myFunctionName function does exist. So I'm not sure why I'm running into this issue. Does anyone have any ideas?epipko
06/05/2025, 5:30 PM