Khalid Saleem
Community Beginner
Khalid Saleem
Community Beginner
Activity
‎Nov 25, 2024
02:31 PM
This worked for me. Leading zero will display is the excel column. e.g. 01234 <cfset SpreadSheetSetCellValue(sheetName, variables.Query.ColumnName, Rowcount, Columncount, "string")>
... View more
‎Mar 31, 2021
12:03 PM
There is an other way to fixed complex object types error. If you have few multi-select options and try to submit multiple values then this code covert the array back to list. <cfif isDefined("form.projectCode") and isArray(form.projectCode)> <cfset form.projectCode = arrayToList(form.projectCode,",") /> </cfif>
... View more
‎Mar 30, 2021
08:45 AM
Thanks Charlie.
... View more
‎Mar 30, 2021
05:12 AM
I am using Windows Server 2016 OS and ColdFusion Build 2018.0.11.326016.
... View more
‎Mar 29, 2021
09:26 AM
Charlie, I am agree with you this issue is not related with structkeyexists. After Coldfusion recent updates posted form values show in an array rather than in a list. This is the real cause of this issue. Build - 2018,0,11,326016
... View more
‎Mar 26, 2021
05:22 AM
This is just an example, sorry i missed the closing bracket > . In my real code there are 8 different multiple select options and those were working fine before we applied recent Coldfusion 18 patch and suddenly all of them error out at structKeyExists when we applied new patch. Our administrator revert the new patch and everything start working again. <select name="user" id="user" size="7" multiple="true"> <cfloop query="#variables.users#"> <cfoutput> <option value="#user_id#" <cfif structKeyExists(form, "user")> selected</cfif>>#variables.users.user#</option> </cfoutput> </cfloop> </select>
... View more
‎Mar 25, 2021
07:17 PM
Hello Charlie, When submitting multiple select values, it through exception at structKeyExists function, it works fine when passing a single select option value but produce error when passing more than one value to structKeyExists funtion. <select name="user" id="user" size="7" multiple="true"> <cfloop query="#variables.users#"> <cfoutput> <option value="#user_id#" <cfif structKeyExists(form, "user") selected</cfif>>#variables.users.user#</option> </cfoutput> </cfloop> </select>
... View more
‎Mar 25, 2021
01:11 PM
Complex object types cannot be converted to simple values. The expression has requested a variable or an intermediate expression result as a simple value. However, the result cannot be converted to a simple value. Simple values are strings, numbers, boolean values, and date/time values. I believe the issue is security related.
... View more