Skip to Main Content
Spotfire Ideas Portal
240 VOTE
Status Implemented
Product Spotfire
Categories Data Management
Created by Guest
Created on Feb 6, 2016

Comments in expressions

When writing expressions it would be nice if there was a way to add comments, preferably as part of the expression

Example:
/*My comment here...something that helps me (or someone else) understand how the really really complicated expression I just wrote actually works..*/

Sum(blabla...)
Implemented in 10.10
  • ADMIN RESPONSE
    Jun 17, 2020

    This is supported starting with Spotfire 10.10 LTS.

  • Attach files
  • Guest
    Reply
    |
    Jun 18, 2020

    yay!

  • Guest
    Reply
    |
    Jun 18, 2020

    Many thanks for getting this in now

  • Guest
    Reply
    |
    Jun 17, 2020

    Thanks Tobias. Looking forward to use this.

  • Guest
    Reply
    |
    Jan 16, 2020

    I've wished for this feature since I started building complex expressions/calculated columns several years ago.  These can get really complicated and the ability to add inline (//) & block (/* */) comments would be incredibly useful!

  • Guest
    Reply
    |
    Jun 10, 2019

    Yes please! 

    Would also be good to be able to resize the calculated column editor so you can view more of your expression if you need.  Urgently not possible in 7.11, not sure if it’s been addressed

  • Guest
    Reply
    |
    Jun 5, 2019

    Implementing ignoring lines that start with # would be a real win.

  • Guest
    Reply
    |
    Jun 5, 2019

    Would definitely like to see this.  It would seem like a natural progression with the enhanced data wrangling capabilities to have the ability to document/comment what's happening with the expressions.

  • Guest
    Reply
    |
    Mar 28, 2019

    Tell us this is coming in the next release

    \\-Comment here

  • Guest
    Reply
    |
    Mar 22, 2019

    Any update on this? When expressions become complex, the comments are required to avoid waiting too much time trying to understand the code...

  • Guest
    Reply
    |
    Oct 9, 2018

    I agree with the feedback that using the description is not as easy or as helpful.  I've written expression statements that were 67 lines long.  Using the description to explain what I was doing (or even help me keep track of my logic) wouldn't have worked.  

  • Guest
    Reply
    |
    Oct 9, 2018

    Love this idea.

  • Guest
    Reply
    |
    Mar 26, 2018

    This is crucial for support and validation.

  • Guest
    Reply
    |
    Mar 20, 2018

    For custom expressions and calculated columns. 

  • Guest
    Reply
    |
    Jul 5, 2017

    This would be very beneficial in testing as well where I could comment out particular portions of a complicated calculation to determine what isn't working properly.

  • Guest
    Reply
    |
    Jul 4, 2017

    Added in description is a start, but not ideal.  We have cases where developer have calculated fileds with nested if/case statements, reading from multiple document properties. 

    An inline/incode comment system can help document the finer points of the code and not rely on just descriptor field.

  • Guest
    Reply
    |
    Jul 4, 2017

    For calculated columns, there is a description field which you can use for adding commens

  • Guest
    Reply
    |
    May 23, 2017

    I hope this feature gets added to calculated column as well. 

2 MERGED

Allow comments in spotfire column expression

Merged
On creating calculated columns, spotfire doesn't allow comments like # or -- It would be great if we can mention comments on expression And also, In case of bigger expression such as Case when.. Adding comments will allows us to understand for fut...
over 8 years ago in Spotfire / Custom Expressions 0 Implemented
1 MERGED

Custom expression comments

Merged
a character or multiple character to use in custom expression to be used as internal documentation for documenting.
over 6 years ago in Spotfire / Custom Expressions 0 Implemented
14 MERGED

ability to comment expression code

Merged
can help remember intent of code elements!
about 8 years ago in Spotfire / Custom Expressions 1 Implemented