Assuming tolowercase is required, the following 5 results were found.
// yields Hello World 123 URL safe slug: v_MyString = "Hello World 123"; v_MyFormattedString = v_MyString.toLowerCase().replaceAll(" ","-"); v_MyFormattedString = v_MyFormattedString.replaceAll("[^a-z0-9-]+",""); // yields hello-world-123 Email safe...
to lowercase both sides of the operation in the record retrieval also fails:... l_ProductDetails = Product[Product_Name.toLowerCase() = v_Name.toLowerCase()];... Returns the error: "Expression is not allowed in left side of a Criteria". There used to...
What? An article on how to quickly adapt an array code and sort by its values. Surprising how many examples are on the web and everyone saying you're doing it wrong... Which is true but quite unhelpful. The original code is not my own either but that's...
} }); // sorts the array by values in column 2 (string: my_col2_val) obj_temp.sort(function(a,b) { var x = a.my_col2_val.toLowerCase(); var y = b.my_col2_val.toLowerCase(); return x < y ? -1 : x > y ? 1 : 0; }); // return the array of objects return...
v_PhotoFileExtension = v_PhotoWithExt.subString(v_PhotoWithExt.lastIndexOf(".") + 1).toLowerCase(); // if(l_CompatiblePhotoExtensions.containsIgnoreCase(v_PhotoFileExtension)) { v_ThisPhotoSrc =...