displaying top 100 results
[ANeff] Bug for: Inconsistencies in Array Case/NoCase Functions
Tracker Issue Bug 78903:Documention Errors for Array Functions:1
Bug 78903:Documention Errors for Array Functions:1
DeleteColumn( Object query, String columnName) Arrays Functions ArrayFirst(List list) ArrayLast(List list) XML Functions XmlIsEmpty( XmlNodeList xmlNodeList ) XmlCount( XmlNodeList xml ) XmlAppend( XmlNodeList xml1, XmlNodeList xml2 ) XmlUpdate( XmlNodeList xml, String key, Object value ) XmlKeyList( XmlNodeList xml
Tracker Comment Comment on Array member functions broken for results of getMetaData(this) by Awdhesh K.
Comment on Array member functions broken for results of getMetaData(this) by Awdhesh K.
Tracker Issue Array find() member function doesn't work on literals
Array find() member function doesn't work on literals
Tracker Issue [ANeff] Bug for: Array Case functions cannot find XML
[ANeff] Bug for: Array Case functions cannot find XML
Array member functions broken for results of getMetaData(this)
Tracker Issue [ANeff] ER for: Allow Array NoCase functions to search for any object case-insensitively
[ANeff] ER for: Allow Array NoCase functions to search for any object case-insensitively
) { newdata.append(val(item)); } writedump(newdata); This result in Not sure this is wrong, but it is interesting
The post Array with number vs Typed Array where the type is number appeared first on ColdFusion. Blog,Functions,Language,Question,2018,functions,language,question
Tracker Comment Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by External U.
Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by External U.
Implicit Array passed as named parameter to function in block ignores functions
Tracker Comment Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
5346354 CF-4204015 Language : Script CFC Array of component return types not resolved correctly with import In the attached package, i have imported the Armadillo component at the top of the Test.cfc file like so:
import test.test.Armadillo;
Later on I declared a function like so:
public
2608509 CF-4073787 Language Abram Adams Add Support for Map/Reduce/Filter/Each Functions for Query Objects Duplicate ID: CF-3713323
Title says it all. We should have Map/Reduce/Filter/Each member functions for query objects.
The query object should be treated like an array of structs, i.e: [{id
Tracker Comment Comment on [ANeff] ER for: Allow Array NoCase functions to search for any object case-insensitively by Aaron N.
Comment on [ANeff] ER for: Allow Array NoCase functions to search for any object case-insensitively by Aaron N.
Tracker Comment Comment on [ANeff] ER for: Allow Array NoCase functions to search for any object case-insensitively by Suchika S.
Comment on [ANeff] ER for: Allow Array NoCase functions to search for any object case-insensitively by Suchika S.
Tracker Issue [ANeff] ER for: Explicitly nullable return types
symbol (?) to explicitly indicate a nullable type; otherwise the type is not nullable. Precedent: PHP 7.1.
Examples (with null support enabled):
any function myAny1(){}//OK
any function myAny2(){return}//OK
any function myAny3(){return null}//OK
array function myArray1(){}//error
array
Tracker Issue Bug 86942:-(Watson Migration Closure)arrayConcat(ToArray, FromArray) function in CFML that calls ToArray
Bug 86942:-(Watson Migration Closure)arrayConcat(ToArray, FromArray) function in CFML that calls ToArray
Tracker Comment Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
.cfc the value in the form scope cause an error when used with array member functions and when passed in to some array functions.
Steps to Reproduce:
Application.cfc
--------------------
index.cfm
-------------
Submit
Actual Result:
Calling append on the array
Tracker Comment Comment on CFClient does not support arrayEach() / arrayFilter() / arraySort() / arrayMap() / arrayReduce() by Adobe D.
2609897 CF-3748332 Adobe D. Added support for arrayEach() / arraySort() / arrayMap() / arrayReduce() functions in CFCLIENT
Supported member functions are: each, map, reduce
arrayFilter and arraySort member function will not be supported as it conflicts with Javascript filter function
(Comment
Portal Topic CFFiddle for Array, String, and Math functions
CFFiddle for Array, String, and Math functions
Array slice syntax does not compile when used in an inner function
Tracker Comment Comment on Add Support for Map/Reduce/Filter/Each Functions for Query Objects by External U.
2608509 CF-4073787 External U. For some functionality we have, we have to convert a query object to an array of structs, then pass that array to serializeJSON() in order to get JSON in the format expected by some UI controls. We also have tons of query of queries in our code base, using filter
Tracker Comment Comment on Add ArrayConcatenate function by Rupesh K.
Comment on Add ArrayConcatenate function by Rupesh K.
Tracker Comment Comment on CFClient does not support arrayEach() / arrayFilter() / arraySort() / arrayMap() / arrayReduce() by External U.
2609897 CF-3748332 External U. Here's the repro code I used (had to comment-out the cfclient tags in order to run the arraySort()/myArray.sort() section:
myArray = listToArray("1,,2,,3");
arrayEach(myArray, function(a){writeOutput(a&'a');});//displays 1a2a3a
writeOutput('');
myArray.each(function
Tracker Comment Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
Tracker Comment Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
Tracker Issue Add ArrayConcatenate function
Add ArrayConcatenate function
Tracker Comment Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by Frank J.
Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by Frank J.
Tracker Comment Comment on arraySearch() by External U.
2612254 CF-3534476 External U. Regarding my comment in my vote: That's only true if the array doesn't contain the function that's being searched for. Basically, if the second parameter is a function, ArrayFind()/ArrayFindAll() executes the function for each element in the array and ArrayFindNoCase()/Array
Portal Comment Comment on Union and diff of arrays by James Mohler
James Mohler Let me make sure I understand.
Arrays are getting passed into the function. Array have member functions above and beyond the ones that Adobe lists. Are there other Java member functions that may be useful? How would I find them?
Tracker Comment Comment on Add ArrayConcatenate function by External U.
Comment on Add ArrayConcatenate function by External U.
Tracker Comment Comment on Bug 75853:Please add a parameter to enable empty values in delimited lists to be accounted for by External U.
2601597 CF-3037792 External U. +1, and same for array functions w/ empty array elements (example: ER #75364)
Tracker Comment Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
Comment on Implicit Array passed as named parameter to function in block ignores functions by External U.
Tracker Comment Comment on New function request: valueArray() to complement valueList() by Himavanth R.
Comment on New function request: valueArray() to complement valueList() by Himavanth R.
2608602 CF-4051598 Rupesh K. Supporting array of array makes sense. We would add that and deprecate array of list.
IMO, Supporting list in SpreasheetAddRow and many other functions was a bad idea to begin with. To keep the functions clean, instead of adding 'delimiter' and 'ignore
Tracker Issue [ANeff] Bug for: Pre-CF2018 vs CF2018 w.r.t. Array Case/NoCase searching of simple values
6138341 CF-4205069 Language : Functions [ANeff] Bug for: Pre-CF2018 vs CF2018 w.r.t. Array Case/NoCase searching of simple values Issue: Pre-CF2018 (CF10/CF11/CF2016) vs CF2018 w.r.t. Array Case/NoCase searching of simple values
CF2018 breaks backward-compat w.r.t. searching some simple values
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
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 Comment Comment on ArrayFindAllNoCase by External U.
2613560 CF-3228672 External U. Hi Sagar,
Please try this:
array = ["STRING","string"];
indices = arrayFindAllNoCase(array,function(s) { if(s == "string") return true; return false;});
writeDump(indices);
Actual Result: empty array
Expected result: [1,2]
Bug: arrayFindAllNoCase() is broken
Tracker Comment Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by Poonam J.
Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by Poonam J.
Tracker Comment Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by Jacob J.
Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by Jacob J.
Tracker Comment Comment on ArrayFindAllNoCase by External U.
2613560 CF-3228672 External U. The problem here is that the "==" operator is not case sensitive, so you can't use it as a case-sensitive test.
array = ["orange","banana","apple","ORANGE","orange"];
writeDump(arrayFindAll(array,function(ele) { if(ele == "ORANGE") return true; return false
Tracker Comment Comment on Bug 76864:(Watson Migration Closure)Please add support for a single array argument to the max( ) and min( ) functions by External U.
Comment on Bug 76864:(Watson Migration Closure)Please add support for a single array argument to the max( ) and min( ) functions by External U.
Comment on CFFiddle for Array, String, and Math functions by chrisg57685480
Comment on Array methods: shift(), unshift(), push(), pop() by External U.
Tracker Comment Comment on Add higher-order functions for strings by Bradley W.
is already supported by Lucee Server) myString[ 3 ] which would return "S". Array member functions should work, all array functions should accept a string, and the higher order functions mentioned in this ticket should work.
Tracker Comment Comment on New function request: valueArray() to complement valueList() by Himavanth R.
Comment on New function request: valueArray() to complement valueList() by Himavanth R.
Tracker Issue ArrayResize doesn't support unsynchronized arrays
3908552 CF-4200881 Language : Functions Matthieu Labarre ArrayResize doesn't support unsynchronized arrays Problem Description:
The function ArrayResize (and its counterpart .resize() ) can't be applied to an unsynchronised array.
Steps to Reproduce:
Execute the following script:
{code:java}
myArray
2613437 CF-3316802 External U. Please, please, please add this! It would make it possible to use ArrayEach like an ArrayMap function, which I dearly miss.
Comment on Array methods: shift(), unshift(), push(), pop() by External U.
[ANeff] Bug for: some array searching functions are type-checking the haystack
2609246 CF-3864595 Himavanth R. Added ValueArray headless function and also as a member function for query object since ValueArray made more sense than ValueList
It takes the query object and columnName string and returns an array.
This is more intuitive function signature though
Bug 86892:GetComponentMetaData functions array unable to be iterated using for
cfclient code assist for the following functions need to be updated: arrayEach, arraySort, arrayMap, arrayReduce and Member functions : each, sort, map, reduce.
Tracker Comment Comment on Script syntax or array-of-object function arguments doesn't work. by External U.
Comment on Script syntax or array-of-object function arguments doesn't work. by External U.
Tracker Comment Comment on Script syntax or array-of-object function arguments doesn't work. by External U.
Comment on Script syntax or array-of-object function arguments doesn't work. by External U.
Tracker Comment Comment on Compile error on passing shorthand array arguments to function in if ... else by External U.
Comment on Compile error on passing shorthand array arguments to function in if ... else by External U.
2613289 CF-3335540 Language Aaron Neff [ANeff] ER for: add invoke()'s argument array support to cfinvoke invoke() accepts an arguments array. cfinvoke does not. Could cfinvoke also accept an arguments array?
Repro:
1) Use this code (defines an array and a function):
argsArray = [1,'one',2
Tracker Issue Inconsistent Results when using Struct Functions on data returned by a CF Web Service.
Inconsistent Results when using Struct Functions on data returned by a CF Web Service.
Tracker Comment Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by Aaron N.
Comment on [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading by Aaron N.
Tracker Issue Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki
Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki
2609382 CF-3851972 Language Aaron Neff [ANeff] Bug for: arrayFilter/array.filter() UDF arguments missing index and array Duplicate ID: CF-3810965
The index and array arguments are missing within the UDF passed to arrayFilter/array.filter()
Repro (just uncomment each and run):
function myFunction
Tracker Comment Comment on ArrayFindAllNoCase by Adobe D.
2613560 CF-3228672 Adobe D. I'm not able to reproduce this. Here's the code:
array = ["orange","banana","apple","orange","orange"];
indices = arrayFindAll(array,function(ele) { if(ele == "orange") return true; return false;});
writeDump(indices);
Can you let me know the specific case
Tracker Issue Arrays-of-objects returntype checking is flaky
2608672 CF-4026104 Language Adam Cameron Arrays-of-objects returntype checking is flaky Repro:
{code}
// safeRun.cfm
function safeRun(message="", task){
try {
writeOutput("#message#");
task();
}catch (any e){
writeOutput("
Type: #e.type#
Message: #e.message#
");
} finally
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 Comment Comment on [ANeff] ER for: Array notation to respect query cell data type for simple values by Aaron N.
Comment on [ANeff] ER for: Array notation to respect query cell data type for simple values by Aaron N.
Tracker Comment Comment on [ANeff] Bug for: spreadsheetAddColumn() and spreadsheetAddRow() missing delimiter parameter by Rupesh K.
2608597 CF-4051876 Rupesh K. IMO, Supporting list in SpreasheetAddRow and many other functions was a bad idea to begin with. To keep the functions clean, instead of adding 'delimiter' and 'ignoreEmptyFields' in every function, a better approach is to use ListToArray function and then pass
2672404 CF-4196853 Nimit S. Saurav,
We should mention valueArray member function in the note.
Tracker Comment Comment on Implicit array within function call and other requirements produces java.lang.ClassCastException by Vamseekrishna N.
Comment on Implicit array within function call and other requirements produces java.lang.ClassCastException by Vamseekrishna N.
Tracker Comment Comment on Implicit array within function call and other requirements produces java.lang.ClassCastException by Chris H.
Comment on Implicit array within function call and other requirements produces java.lang.ClassCastException by Chris H.
Tracker Comment Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Tracker Comment Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Tracker Comment Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Tracker Comment Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Tracker Comment Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Tracker Comment Comment on Implicit array within function call and other requirements produces java.lang.ClassCastException by External U.
Comment on Implicit array within function call and other requirements produces java.lang.ClassCastException by External U.
Tracker Comment Comment on CFClient does not support arrayEach() / arrayFilter() / arraySort() / arrayMap() / arrayReduce() by Adobe D.
2609897 CF-3748332 Adobe D. we do not support arraySort() method as member function as it conflicts with built-in Java script sort method. So if arraySort() is invoked as member function result will be sort done by javascript and it will not match CFML sorting behavior.
(Comment added from ex
Tracker Comment Comment on ArrayEach has dramatic performance difference between CF10 and CF11+ by Awdhesh K.
2608150 CF-4181256 Awdhesh K. Since CF11, Coldfusion passes an additional array instanxce as third parameter to the callback function to collect the final result. In the bellow example, city name is being converted to uppercase by itereating over the passed array. Example,
cityArray
Tracker Issue ArrayDeleteAt return type is wrong
5041965 CF-4203438 Documentation ArrayDeleteAt return type is wrong Problem Description: The documentation says the arrayDeleteAt() function returns the array with the element removed. IT DOES NOT!!! It returns a boolean indicating if it was successful in deleting the element.
Steps to Reproduce
[ANeff] Doc Bug for: ArrayContainsNoCase not listed on "Functions a-b" page
Tracker Comment Comment on Add ArrayConcatenate function by External U.
Comment on Add ArrayConcatenate function by External U.
Tracker Comment Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Comment on Bug 83397:(Watson Migration Closure)support ArrayMerge() function as implemented in Railo: http://wiki by External U.
Tracker Issue [ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading
[ANeff] Doc Bug for: Many array function docs have typos and are unclear and misleading
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 [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 Issue [ANeff] ER for: IsValidArray()
4416140 CF-4202695 Language : Functions [ANeff] ER for: IsValidArray() ER for: IsValidArray()
Same as IsValid(), but checks an _array_ of values.
Ex: isValidArray("regex", myArray, "pattern") returns true if myArray is an array and all elements are "pattern"
Ex: isValidArray("string[]", myArray
Tracker Comment Comment on New function request: valueArray() to complement valueList() by External U.
Comment on New function request: valueArray() to complement valueList() by External U.
Tracker Issue Always include functions and properties in CFC metadata
3942495 CF-4200994 Language Bradley Wood Always include functions and properties in CFC metadata If you have a CFC with no methods or properties, the metadata for this CFC does not contain a functions or a properties array at all. This adds more work since I have to check for the arrays' existence
2827197 CF-4198314 Jake M. @Aaron,
Actually, your example code does not create an error on CF 11 Update 11. The bug only manifests when you var scope the array inside a function. I modified your example code to this:
writeDump(foo());
private array function foo() {
var myArray[2
2613437 CF-3316802 External U. Was the fix here just a matter of adding a second argument to the callback, so the form is:
arrayEach(a, function(value, index){
// etc
});
?
Cheers
--
Adam
Tracker Comment Comment on arraySearch() by External U.
2612254 CF-3534476 External U. +1 - ArrayFindNoCase() and ArrayFindAllNoCase() (and their member function equivalents) always return an empty array when the 2nd parameter is a function (#CF-3228672), so those don't even work as documented. I'd just use ArraySearch() :)
="myElement") {
writeOutput(++i);
}
writeOutput("");
i = 0;
for(myElement in myArray) {
writeOutput(++i);
}
writeOutput("");
#i#
cfloop(from=1, to=myArray.len(), index="i") {
writeOutput(i);
}
writeOutput("");
myArray.each(function(myElement, myIndex, myArray) {
write
Tracker Comment Comment on [ANeff] Bug for: ArrayFindAllNoCase() not constrained to string searches by Aaron N.
3992246 CF-4201203 Aaron N. I don't know why I waste time hashing these array function issues out w/ you. You're twisting them such that developers cannot use them predictably.
Tracker Issue ArrayFilter only works when used in CFScript.
6950409 CF-4207622 Language : Array Functions ArrayFilter only works when used in CFScript. Problem Description: CFML should function in both CFTag and CFscript mode.
Steps to Reproduce:
Try this using code on TryCF.com (I'd recommend using CFFiddle.org, but CF2016 is already being treated
Tracker Comment Comment on New function request: valueArray() to complement valueList() by External U.
Comment on New function request: valueArray() to complement valueList() by External U.
Tracker Comment Comment on New function request: valueArray() to complement valueList() by External U.
Comment on New function request: valueArray() to complement valueList() by External U.
Tracker Comment Comment on Nested Grouped Query Outputs incorrectly group data resulting in Array index out of range error by CFwatson U.
Comment on Nested Grouped Query Outputs incorrectly group data resulting in Array index out of range error by CFwatson U.
Tracker Comment Comment on Implicit array within function call and other requirements produces java.lang.ClassCastException by HariKrishna K.
Comment on Implicit array within function call and other requirements produces java.lang.ClassCastException by HariKrishna K.