CONCAT function and If then expressions
Hi,
I'm just getting started with custom expressions in text mode so my questions may be basic.
I have 2 fields on an hour report that I am having trouble with.
The first is that I have a project # column and a project name column that I would like to concat into one column that displays the project number and the name together. I feel like this should be fairly simple but I must have part of my syntax incorrect. It just comes up blank. I'm struggling with what the listmetod and value format should be and wonder if that is where I am going wrong.
displayname=Project
listdelimiter=<div>
listmethod=nested(projectUserRoles).lists
type=iterate
valueexpression=CONCAT({project:Project #},":",{project:name})
valueformat=customDataLabelsAsStringThe text mode of the 2 fields I am trying to concat are:
linkedname=project
namekey=view.relatedcolumn
namekeyargkey.0=project
namekeyargkey.1=Project #
querysort=DE:project:Project #
valuefield=project:Project #
valueformat=customDataLabelsAsString
linkedname=project
namekey=view.relatedcolumn
namekeyargkey.0=project
namekeyargkey.1=name
querysort=project:name
valuefield=project:name
valueformat=HTML
The second thing I am wanting to do I think would involve an if..then. There is an hour type column that either shows an hour type name or "Project Time" or "Task Time".
I would like a column will show the hour type name unless hour type is "Project Time" or "Task Time". If it is project time or task time, it would display the concat Project # and Project name that I am trying to do above.
The text mode for the hour type field is:
listsort=nested(hourType).HTML(name) namekey=hourtype querysort=hourType:name valuefield=hourType:name valueformat=HTML width=95
I appreciate any guidance!
Thanks
Heather



