*This post is locked for comments
*This post is locked for comments
Lyn I came across your post and this was great to know! Can't believe I never tried just typing the expressions - SO much easier. Thanks!
Hi
I'm trying to do the same as Heather. Show returns, credit notes and payments as negative in my Smartlist for Sales - Receivables Transactions. I have entered this expression
CASE WHEN {RM30101.RMDTYPAL} > = 7 THEN ({RM30101.ORTRXAMT}*-1) ELSE {RM30101.ORTRXAMT} END
But I get this error
The calculated field is not valid.
Can anyone please help?
FYI, I just had a support case with Microsoft, wherein I complained about having to go back & forth to insert fields into my expression, one at a time.
In testing, we discovered that you can actually type the entire expression into the Constants tab, as a text field, and it will still validate & return the correct results!
There is an 80-character limit to text fields added as constants, so if your expression happens to be more than 80 characters, just add two or more text fields.
Smartlist Designer is a new feature and its always nice to have questions on a new feature like this which will help other GP users and I don't think they are silly. In fact you have raised a concern on usability.
Glad to help you Heather :)
Thanks very much Naga - I have to say - I feel like that person who asks the silly questions right now! It never occurred to me to just type in the missing options!
Now we just need a simple configuration option - or the standard in all the queries to show Credits as negatives so we don't have to create all the columns ourselves!
Also the ones in the flower brackets are inserted by double clicking the desired field under 'Table Fields' tab. Don't use Text for that.
Hi Heather,
You just need to follow the syntax of Case statement in SQL. Below is something I created which worked.
Note :
To insert a Space, Relation operators( >=) , Keywords (THEN) you need to use Constants tab, select 'Text' as type enter the value you desire (even a space value) in the Value field to build the expression. Make sure each key word has a space before and after.
Hope this helps :)
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,321
Most Valuable Professional
nmaenpaa
101,156