Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why I still see by and at
Message
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01608885
Message ID:
01608886
Views:
46
>Hi everybody,
>
>I added the info message at the bottom of my form:
>
>
>{{currentAccount.dateTime==null?"":"Account Created: "}}{{currentAccount.dateTime | date:'medium'}} {{String.IsNullOrWhiteSpace(currentAccount.operator)?"":"by"}} {{currentAccount.operator.TrimEnd()}} {{String.IsNullOrWhiteSpace(currentAccount.salespoint)?"": "at"}} {{currentAccount.salespoint.TrimEnd()}}</label>
>
>I don't understand why do I still see 'by' and 'at' but no operator and no salespoint?
>
>Do you see what is wrong with my expression?
>
>Thanks in advance.

--------------
UPDATE. After I removed TrimEnd() it started to work and show both operator and salespoint. Not sure why adding TrimEnd() made them not to show.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform