Add Comments in expression editor
4206
Views
12
Comments
Implemented
Frontend (App Interfaces)
OutSystems 10

I suggest the possiblity of add  comments in expression editor

2020-03-04 14-50-24
Armando Gomes
mvp_badge
MVP
+1 to this - especially if you have a somewhat complex expression.
I think if you have a somewhat complex expression you should implement it as a flow as it will be more clear.
Add comments to text expressions. Those comments are not evaluated.

Sample in the attached image.





Merged from '[Service Studio] Add comments to text expressions' (idea created on 2015-04-01 11:00:08 by Luis Paulo Soares), on 2016-10-24 17:08:52 by Goncalo Borrega
2019-11-12 17-31-26
Justin James
mvp_badge
MVP
Should be merged with:

https://www.outsystems.com/ideas/1817/add-comments-in-expression-editor

And

https://www.outsystems.com/ideas/528/in-simplequery-assign-comment

And

https://www.outsystems.com/ideas/346/servicestudio-add-comment-to-value-assign

J.Ja


Merged from '[Service Studio] Add comments to text expressions' (idea created on 2015-04-01 11:00:08 by Luis Paulo Soares), on 2016-10-24 17:08:52 by Goncalo Borrega
Hi guys,

Sometimes when you have a pretty complex assign or query statement you'd like to add some comment.

I have a few queries that contain some complex statements.
I also have a few assigns that contain several IF statements and a few entity actions.

I currently use structures like teh one below to add in come comment; but this is not the way I'd like to do this:
("Oude bewaarloondatum valt in Tarief periode" <> "")
and ( TARIFF.ValidFrom <= OldRentDate and ( TARIFF.ValidTo  >= OldRentDate or TARIFF.ValidTo = NullDate() ) )
or
("Tarief periode valt in bewaarloontermijn" <> "")
and  ( TARIFF.ValidFrom >= OldRentDate and (TARIFF.ValidTo <= NewRentDate and TARIFF.ValidTo <> NullDate() ) )
or
("Nieuwe bewaarloondatum Tarief periode valt in bewaarloontermijn" <> "")
and  ( TARIFF.ValidFrom <= NewRentDate and (TARIFF.ValidTo >= NewRentDate or TARIFF.ValidTo = NullDate() ) )


I'd rather use a // line comment or { BLOCK COMMENT } instead.

Merged from 'In SimpleQuery / Assign comment' (idea created on 2010-10-13 12:24:36 by Eric Oud Ammerveld (PS9.1)), on 2016-10-24 17:10:55 by Goncalo Borrega
2016-11-21 23-23-05
Gonçalo Borrêga

Hi all,

Happy to let you know this is now available in OutSystems 10.

Thank you for the feedback

Allow comments on expressions, very useful to help understand complex expressions https://screencast.com/t/NSxuMFi5



Merged from 'Expression comments' (idea created on 2016-10-27 15:09:22 by Nelson Inácio), on 2016-10-28 07:52:14 by André Vieira

Look at version 10. You can add comments in the expressions. 



Merged from 'Expression comments' (idea created on 2016-10-27 15:09:22 by Nelson Inácio), on 2016-10-28 07:52:14 by André Vieira

It's nice know that is already done, will very useful

2016-11-21 23-23-05
Gonçalo Borrêga
Merged this idea with 'In SimpleQuery / Assign comment' (created on 2010-10-13 12:24:36 by Eric Oud Ammerveld (PS10))

If you do not want to embed comments, you can add them by clicking Comment in the Expression Editor.  It is not possible to have comments within the expression editor like that

Hello Digi

This idea is already implemented. If you pretend to propose a change is better to create a new idea.


Regards