Hi, I am having trouble defining an attribute that converts to number the first 2 characters (which are numbers) of a string in another attribute. I tried to imitate the OF manual aString.substr(0, 4) example: Number(row.row_details.substr(0, 2)) but I receive the error "Attribute or entity "substr" not found". I also tried Number(row.row_details.substring(0, 2)) as the JavaScript demo link the manual recommended indicated that substr has been depreciated but no luck there. How would you advise I move forward? Thank you! Tamar |
Dear Tamar, |
Dear Tamar,
Also please avoid to use the name of the parent entity if it's the same of the attribute where you are typing the expression. |
Hi Stefano, Thank you so much for getting back to me quickly. You are correct, the problem was referencing a code attribute, which I assumed was a string as I defined it as text. Once I implemented your correction everything is running smoothly. Thank you! Tamar |