Roger Groening Posted April 30, 2015 Share Posted April 30, 2015 Hi everyone, Is there a way to comment an expression in Spotfire I have a long complicated calculated column expression and need to comment it so I remember what I'm doing. Thanks! Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted April 30, 2015 Share Posted April 30, 2015 Hi, not following: if I have a long expression like the following....with many complex Case statements.... COMMENT explaining Case Statement 1 Case statement 1 COMMENT explaining Case Statement 2 Case statement 2 and so on....through Case Statement 100.... How do I create these COMMENTS without breaking the expression Link to comment Share on other sites More sharing options...
Sean Riley Posted October 23, 2015 Share Posted October 23, 2015 There is no way to insert comments in the expression language currently, but it would be EXCELLENT and I really want them as well. You should file a ticket with TIBCO support so that your name adds weight to that request though! Link to comment Share on other sites More sharing options...
Garett Saksa Posted February 19, 2016 Share Posted February 19, 2016 If your goal is to document the backend of the case statement in such a way that the data is unaffected and the rendering time is not negatively impacted then all you need is a when clause that is never true. Ex:WHEN 1=2 THEN "----------------COMMENT--- BEGINNING NEXT LOGICAL BLOCK-----------------" This still gives a visual break in the expression so that the comment is visible. Link to comment Share on other sites More sharing options...
binu thomas 2 Posted November 24, 2017 Share Posted November 24, 2017 Hi Everyone, Any update on the solution for inserting comments in the expression Any idea whether a ticket was raised for the same Thanks! Link to comment Share on other sites More sharing options...
Gustavo Pescador 4 Posted May 17, 2018 Share Posted May 17, 2018 Wait, this dates from 2015 and still no way to put comments Anyone knows if there is actually a ticket or was never created Thanks in advance! Link to comment Share on other sites More sharing options...
Angel Buendia Posted June 27, 2019 Share Posted June 27, 2019 Hello. I did a custom expression and finally could insert comments this way. select ... /* Comments blah blah blah... */ ... end of the query It worked for me, it's saved in the Spotfire's custom query. Cheers! Link to comment Share on other sites More sharing options...
Mt Juhsz Posted January 31, 2020 Share Posted January 31, 2020 This doesn't work in custom expressions as requested in the question, it works only in SQL statements. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now