This is a migrated thread and some comments may be shown as answers.

Format in combination not working

1 Answer 99 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Kris Nobels
Top achievements
Rank 2
Kris Nobels asked on 03 Oct 2016, 09:31 PM

I need to format some text with codition, but it fails

{IIf(Fields.UiModel.IsCompany = "Yes", =Format("{0} {1}", Fields.UiModel Fields.UiModel.Customer.Firstname,Fields.UiModel.Customer.Surname), Fields.UiModel.Customer.Companyname)}

 

The problem is in the format, but i can not get this to work...

I need some expert on this

I get this error

An error has occurred while processing Report 'Factuur':
textBox18.Value expression [{IIf(Fields.UiModel.IsCompany = "Yes", =Format("{0} {1}", Fields.UiModel
Fields.UiModel.Customer.Firstname,Fields.UiModel.Customer.Surname), Fields.UiModel.Customer.Companyname)}] is not valid:
Error evaluating embedded expressions: Unexpected token inside an expression at index 57

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 05 Oct 2016, 08:57 AM
Hello Kris,

This is an embedded expression, niot starting with a "=", but surrounded by "{}". Thus inner curly brackets must be escaped by being doubled - Embedded Expressions.

I hope this information helps.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Kris Nobels
Top achievements
Rank 2
Answers by
Stef
Telerik team
Share this question
or