displaying top 100 results
Tracker Issue StructEach not mentioned on list of struct functions
StructEach not mentioned on list of struct functions
[ANeff] Doc Bug for: struct member functions duplicated in docs
Tracker Issue Argument is not treated as a struct by Query functions
Argument is not treated as a struct by Query functions
Tracker Comment Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by CFwatson U.
Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by CFwatson U.
Tracker Comment Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by Saurav G.
Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by Saurav G.
Tracker Comment Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by External U.
Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by External U.
Tracker Comment Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by External U.
Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by External U.
Tracker Comment Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by Saurav G.
Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by Saurav G.
Tracker Comment Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by External U.
Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by External U.
Tracker Comment Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by CFwatson U.
Comment on [ANeff] Doc Bug for: struct member functions duplicated in docs by CFwatson U.
Tracker Issue [ANeff] ER for: relevant string, struct and array member functions on XML variables (Part 2)
[ANeff] ER for: relevant string, struct and array member functions on XML variables (Part 2)
[ANeff] ER for: relevant string, struct and array member functions on XML variables
Tracker Comment Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Vijay M.
Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Vijay M.
Tracker Comment Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Aaron N.
Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Aaron N.
Tracker Comment Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Aaron N.
Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Aaron N.
Tracker Comment Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables (Part 2) by Aaron N.
Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables (Part 2) by Aaron N.
Tracker Comment Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Aaron N.
Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Aaron N.
Tracker Comment Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Aaron N.
Comment on [ANeff] ER for: relevant string, struct and array member functions on XML variables by Aaron N.
Tracker Comment Comment on [ANeff] Bug for: structFilter/struct.filter() UDF arguments missing struct by Nikhil S.
2609381 CF-3851982 Nikhil S. Updated the callback function of StructFilter to 'function(key, value, [, struct])'
Tracker Comment Comment on keyExists member function not available on all struct objects by External U.
Comment on keyExists member function not available on all struct objects by External U.
Bug 79738:(Watson Migration Closure)Using StructDelete() function on the URL struct (and possibly the Form struct) to remove all elements, then using the StructIsEmpty() function on the URL (or Form) struct returns that the struct is no
CFFiddle for Spreadsheet, List, Struct, and Date/Time functions
2609471 CF-3844976 Suchika S. append member functions for Array and Struct to return array/struct respectively. These member-functions have changed.
StructAppend() & ArrayAppend() will continue to retuen boolean values.
Thanks,
Suchika.
Tracker Issue Cfcatch object is not really a struct
4691150 CF-4203264 Language Cfcatch object is not really a struct Problem Description:
CFCatch object is not really a struct in ColdFusion and isStruct() returns false. Lucee Server correctly handles this and catch objects actually inherit from StructImple which gives full struct functionality
Tracker Comment Comment on keyExists member function not available on all struct objects by External U.
Comment on keyExists member function not available on all struct objects by External U.
keyExists member function not available on all struct objects
Tracker Issue Bug 85125:create a struct
2597721 CF-3042828 Language : Functions Mike Causer Bug 85125:create a struct Problem:
create a struct.add an international phone number with leading '+'. eg "+61299887766"serialise the structdeserialise the structthrows
Method:
// create a struct with a phone numbertest = struct
2610254 CF-3714525 Language : Functions ext-user struct : filter : Exception message needs to be corrected Code snippet:
filteredKeyValue = structObj.Filter(function(key, value){
});
Actual: Message is shown as :
An exception occurred while calling the function filter..(Exrta dot needs
Tracker Issue Error when returning an implicit struct in cfcatch
for the following also -
return {success: false, data: cfcatch}; //throws "CFCATCH is undefined" error
var err = cfcatch;
return {success: false, data: err}; //throws "err is undefined" error
Steps to Reproduce:
public STRUCT function blah(){
try{
return {success: true, data: 'Cold
Tracker Comment Comment on Inconsistent Results when using Struct Functions on data returned by a CF Web Service. by Milan C.
Comment on Inconsistent Results when using Struct Functions on data returned by a CF Web Service. by Milan C.
2609381 CF-3851982 Language Aaron Neff [ANeff] Bug for: structFilter/struct.filter() UDF arguments missing struct The struct argument is missing within the UDF passed to structFilter/struct.filter()
Repro (just uncomment each and run):
function myFunction(){writeDump(ARGUMENTS); abort
Comment on Bug 79738:(Watson Migration Closure)Using StructDelete() function on the URL struct (and possibly the Form struct) to remove all elements, then using the StructIsEmpty() function on the URL (or Form) struct returns that the struct is no by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
2596886 CF-3505517 External U. You cant even break down the error on a particular case. Sometimes there is an error, sometimes not. Sometimes the values in the struct in a loop are the same...
Horrible bug, dont use literal structs in function.
Tracker Issue Probable bug: sorted struct callback arguments
2673322 CF-4126739 Language Adam Cameron Probable bug: sorted struct callback arguments I’m just after clarification of this code:
sorted = structNew("sorted", function(key1,key2){
writeDump(arguments);
abort;
});
sorted.first = 2;
Note I’m aborting in the callback loop. I’d expect key1
CFCLIENT: Data structure: structFindValue : structFindValue functions returns an array of struct, path value of this struct shows array index of 2 when it should be 3
Portal Topic Type-Specific vs Type-Casting member functions
() myXMLAttribute.structMemberFunction() myXMLNode.arrayMemberFunction() These fail: myDateTime.stringMemberFunction() myDateTime.numericMemberFunction() myNumber.dateTimeMemberFunction() If they were Type-Casting, then “stringy” member functions would work on any simple variable just as their BIF
Portal Comment Comment on CFFiddle for Spreadsheet, List, Struct, and Date/Time functions by Saurav Ghosh
Comment on CFFiddle for Spreadsheet, List, Struct, and Date/Time functions by Saurav Ghosh
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Issue Bug in shorthand struct notation
/01/shorthand-struct-notation-is-still.html#comment-771074783
And have experienced it also on completely unrelated other code as well. So as edge-case as the example seems, it is a real issue which crops up. Brad had encountered it too, obviously.
Steps to Reproduce:
function callMe(){
if(1
Tracker Issue StructGet member function missing from documentation
StructGet member function missing from documentation
GetNodeType) .search() (equivalent of XmlSearch) .transform() (equivalent of XmlTransform) Since ColdFusion also supports using array and structure functions to manage XML document objects, I filed CF-4199973 to add the relevant string, struct and array member functions on XML variables. ColdFusion 2018 added
Tracker Comment Comment on Bug in shorthand struct notation by External U.
2612651 CF-3482734 External U. Using a struct literal as an argument to a function with a named parameter causes such behavior. I use struct literals extensively as they are very expressive and save lines of code. Often they work fine in development, but when they go to heavier traffic environments
4353965 CF-4202535 Debugging : CFDump,Language : Null Support [ANeff] Bug for: dump displays local scope as [undefined struct element] Issue: dump displays local scope as [undefined struct element]
Steps to Reproduce:
1) Enable NULL support
2) Run:
function f() {
myVar = NULL//if this isn
IsNull() doesn't work on missing key of struct returned from function call
/deserialized as an ordered struct (since functions cannot be serialized)
Thoughts?
Thanks!,
-Aaron
{
THIS.name = "SearchImplicitScopesDisabledBreaksCFLoginStruct";
THIS.sessionManagement = true;
THIS.loginStorage = "session";
THIS.sessionTimeout = createTimeSpan(0,0,0,10);
THIS.searchImplicitScopes = false;
void function onRequest() {
cflogin
Comment on CFCLIENT: Data structure: structFindValue : structFindValue functions returns an array of struct, path value of this struct shows array index of 2 when it should be 3 by Adobe D.
Comment on CFCLIENT: Data structure: structFindValue : structFindValue functions returns an array of struct, path value of this struct shows array index of 2 when it should be 3 by CFwatson U.
Comment on CFCLIENT: Data structure: structFindValue : structFindValue functions returns an array of struct, path value of this struct shows array index of 2 when it should be 3 by External U.
Portal Topic CFFiddle for Array, String, and Math functions
In the next couple of weeks, we plan to include CFFidlle links for Spreadsheet, Struct, and List functions. In the next three to four months, we plan to link every tag and function, wherever possible, with CFFiddle links. As always, please use CFFiddle to test the samples. If there […]
The post CFFiddle
Tracker Comment Comment on Null Pointer Exception sometimes caused by function expression (closure) inside literal struct by External U.
Comment on Null Pointer Exception sometimes caused by function expression (closure) inside literal struct by External U.
Tracker Comment Comment on keyExists member function not available on all struct objects by Awdhesh K.
Comment on keyExists member function not available on all struct objects by Awdhesh K.
5115944 CF-4203530 Language : Expressions RandRange does not sum correctly in struct with shorthand addition Problem Description:
- When passing RandRange function as struct key value and using shorthand addition notation, the struct values do not sum correctly.
Steps to Reproduce
Tracker Comment Comment on IsNull() doesn't work on missing key of struct returned from function call by Bradley W.
Comment on IsNull() doesn't work on missing key of struct returned from function call by Bradley W.
Tracker Comment Comment on IsNull() doesn't work on missing key of struct returned from function call by Vamseekrishna N.
Comment on IsNull() doesn't work on missing key of struct returned from function call by Vamseekrishna N.
Tracker Comment Comment on Accept an assignment statement as a parameter for built-in CF functions by External U.
2612212 CF-3540467 External U. Would be quite useful to be able to pass an argumentCollection struct to built-in functions just like one can with UDFs
Tracker Comment Comment on arrayFilter() /filter() callback needs to be passed element, index and array by Nikhil S.
2609671 CF-3810965 Nikhil S. Updated the callback function of ArrayFilter to 'function(item, [,index, array])'
Updated the callback function of ListFIlter to 'function(item, [,index, list, delimiter, includeEmptyFields])'
Updated the callback function of StructFilter to 'function(key, value
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Issue struct.get() not implemented
2610327 CF-3710345 Language Adam Cameron struct.get() not implemented SSIA... you've implemented almost all struct functions as methods, but have not done .get().
For the sake of completeness and homogeneity, you should.
--
Adam
----------------------------- Additional Watson Details
Tracker Comment Comment on Enhance cfquery or anything that returns queries to return array of structs by External U.
2608475 CF-4085682 External U. At World Singles we've switched away from query results completely to arrays of structs and it's not only faster, it's much more convenient since you can then leverage all the normal map / filter / reduce stuff along with regular array and struct functions
Tracker Issue Struct Member Function is invalid construct
Struct Member Function is invalid construct
Tracker Issue struct.filter() missing
2610329 CF-3710336 Language Adam Cameron struct.filter() missing It looks like all struct functions have had their methods implemented except for structFilter().
Repro:
// structFilter.cfm
base = {a="b", c="d", e="f"};
filtered = structFilter(base, function(k,v){
return k == "a" || v =="f
Tracker Comment Comment on keyExists member function not available on all struct objects by Awdhesh K.
Comment on keyExists member function not available on all struct objects by Awdhesh K.
2608294 CF-4134200 Immanuel N. Henry,
Argument scope is a struct. A toList member function on struct does not exist.
Calling a toList on the Array itself works
"return arguments[1].toList(); "
Tracker Comment Comment on keyExists member function not available on all struct objects by Awdhesh K.
Comment on keyExists member function not available on all struct objects by Awdhesh K.
Comment on Unexpected result when setting inline struct inside function call that's inside a CFIF/CFELSE that's inside a CFOUTPUT query loop by Charlie A.
Tracker Comment Comment on Please add more built-in closure functions: Array/Struct/List/QueryMap, Array/Struct/List/QueryReduce by External U.
Comment on Please add more built-in closure functions: Array/Struct/List/QueryMap, Array/Struct/List/QueryReduce by External U.
Tracker Issue Add isFile and isDirectory functions
2608351 CF-4116201 File Management Peter Freitag Add isFile and isDirectory functions Currently if you want to determine if a path is pointing to a file or a directory you need to use the getFileInfo function and look at the type key of the struct returned. The getFileInfo function throws
3554667 CF-4199857 Aaron N. A couple of advantages: (a) defaults don't need to be specified, (b) built-in-functions can be updated/enhanced instead of new functions added [StructSort() could've been enhanced instead of adding StructToSorted()].
Thanks!,
-Aaron
.
The issue here is that the implementation of the baseline struct and array functions have always been a bit limp: they should *always* have returned the struct/array in question.
These functions should be altered accordingly, and also accordingly the member function versions should also be modified
Tracker Comment Comment on Null Pointer Exception sometimes caused by function expression (closure) inside literal struct by External U.
Comment on Null Pointer Exception sometimes caused by function expression (closure) inside literal struct by External U.
hide the property. The getter will still exists. If you structDelete the getter from both the this and variables scopes the getter is still accessible! You cannot remove it at all.
Method:
component accessors="true" { property name="Name"; function init() { struct
Tracker Comment Comment on keyExists member function not available on all struct objects by External U.
Comment on keyExists member function not available on all struct objects by External U.
Tracker Comment Comment on keyExists member function not available on all struct objects by External U.
Comment on keyExists member function not available on all struct objects by External U.
Tracker Comment Comment on keyExists member function not available on all struct objects by External U.
Comment on keyExists member function not available on all struct objects by External U.
Tracker Comment Comment on keyExists member function not available on all struct objects by External U.
Comment on keyExists member function not available on all struct objects by External U.
Tracker Comment Comment on keyExists member function not available on all struct objects by Aaron N.
Comment on keyExists member function not available on all struct objects by Aaron N.
:
Create a simple function that accepts a struct:
public void function SimpleFunction1 (struct incomingStruct) {
WriteOutput("This is SimpleFunction1.");
}
Call that function with a named, inline struct shortcut:
SimpleFunction1(incomingStruct={item1="ok",item2="go"});
Works fine so far. Now, wrap
Member functions can't be chained to struct/array literals
2609471 CF-3844976 External U. Hi Nikhil,
What built-in functions were changed? Only StructNew() and ArrayNew()?
Thanks!,
-Aaron
Tracker Comment Comment on struct.get() not implemented by Awdhesh K.
2610327 CF-3710345 Awdhesh K. This implementation is there and is being covered as part of underlying java map. So if you do..
st = {a="b",c="d"};
st.get(a);
it should work. You might have confused it with CF function StructGet, which is not a strcut function rather work with String.. What I
4426790 CF-4202734 Language : Closures [ANeff] Bug for: nested struct reference returns undefined/null from closure Issue: nested struct reference returns undefined/null from closure
Workaround: array notation
Repro:
{code:java}
function f1() {
var one = {two = {three = "four
"}); // only a problem with named args & struct-literal notation
}
function f(){
writeDump(arguments);
}
This is a VERY serious bug, I think
--
Adam
Bug 83765:if the persistent entity doesn't have any property, theproperties of mapped super class are not returned in the getmetaData()method and the struct key "functions" doens't exists in the top levelstruct
4223283 CF-4202044 Language : Member Functions [ANeff] Bug for: Aether missed correcting some member functions Issues:
1) array.clear() returns modified array (good), but struct.clear() returns boolean (bad)
2) query.deleteColumn() and query.deleteRow() return modified query (good), but:
2a) query
Tracker Comment Comment on keyExists member function not available on all struct objects by External U.
Comment on keyExists member function not available on all struct objects by External U.
2610328 CF-3710341 Awdhesh K. strcut.find is implemented on top of StructFind functionality and its throw error for ages. Agreed that the structFind behavior is not completely correct but its not possible to correct now as it might cause major backward compatibility issue.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by Adobe D.
Tracker Comment Comment on Member functions can't be chained to struct/array literals by External U.
Comment on Member functions can't be chained to struct/array literals by External U.