Custom Report Column Displaying Code with Result | Community
Skip to main content
Level 9
November 4, 2022
Solved

Custom Report Column Displaying Code with Result

  • November 4, 2022
  • 1 reply
  • 896 views

Hi WF Community,

 

I have a project report, whereby I am trying to surface values from custom fields on related programs.  However, the result in my report custom column displays code.

 

 

Here's the text mode data for the Client Engagement Lead column:

displayname=Client Engagement Lead
linkedname=program
namekey=view.relatedcolumn
namekeyargkey.0=program
namekeyargkey.1=WF Client Engagement Lead
querysort=DE:program:WF Client Engagement Lead
textmode=true
valuefield=program:WF Client Engagement Lead
valueformat=customDataLabelsAsString

 

I played with the valueformat, but it's not seeming to make a difference.
Does anyone know what adjustment I might make to just display names without the extra code?

 

Thanks,
Nick

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by William

Good news, @nickva7 

I SWEAR that I tried this before and it didn't work, but I saw it working in another environment and tried again with a fresh mind. 

Caveat is that you can't do this with a calculated view. But, you can do it if you add a calculated field to your project form. 

On your project custom form, add a similarly named calculated field, like "Program Principal" (presuming the field name of the typeahead on the program form is called "Principal")
The expression for your project calculated field is easy: 

{program}.{DE:Principal:name}


Recalc your project expressions, then your project view/report can be built to just reference your new project-level field "Program Principal" 

Tested and working. Good luck!

1 reply

William
Community Advisor
WilliamCommunity AdvisorAccepted solution
Community Advisor
November 7, 2022

Good news, @nickva7 

I SWEAR that I tried this before and it didn't work, but I saw it working in another environment and tried again with a fresh mind. 

Caveat is that you can't do this with a calculated view. But, you can do it if you add a calculated field to your project form. 

On your project custom form, add a similarly named calculated field, like "Program Principal" (presuming the field name of the typeahead on the program form is called "Principal")
The expression for your project calculated field is easy: 

{program}.{DE:Principal:name}


Recalc your project expressions, then your project view/report can be built to just reference your new project-level field "Program Principal" 

Tested and working. Good luck!

If you like my content, please take a moment to view and vote on my Idea Requests: https://tinyurl.com/4rbpr7hf
NickVa7Author
Level 9
November 7, 2022

Thanks so much for your thorough attempts at a resolution, and details related to them, WE.