Replies: 2 comments
-
The problem is that you have added 3 issues there:
Best practice:
Your script renewed: var result = null; If your default result is "N" - you can shrink it: var result = "N"; |
Beta Was this translation helpful? Give feedback.
-
I'd like to add that (as a best practice in my personal opinion) I use all uppercase column names without spaces like BEST_PRACTICE for those columns that are a SQL result columns and CamelCase names for those columns or bindings that are computed columns and aggegration columns. |
Beta Was this translation helpful? Give feedback.
-
Trying to compare multiple fields to determine Y/N… can you please help me understand if I should use one expression for this or have to break it up somehow or aggregation/groups? What am I missing here? too many arguments?
if (row["Field 1"]!=row["Field 2"])
OR (row["Field 3"]="Y" && row["Field 3"] == row["Field 5"])
OR (row["Field 3"]="Y" && row["Field 2"]="Y")
{"Y"}
if else {"N"}
Also, if anyone has any great, quick, simple cheatsheets to recommend, or LinkedIn Learning/YouTube videos, on creating reports, expressions, even just operation basics, for Java or whatever this is. :) PLEASE let me know. I'm stumbling through this on my own.
All links to example videos and report files seem to be broken here: https://eclipse-birt.github.io/birt-website/docs/template-introduction
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions