Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why I still see by and at
Message
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01608885
Message ID:
01608886
Vues:
45
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform