Page 1 of 1

Question regarding the use of IIF

Posted: Tue Jan 28, 2014 1:54 pm
by PJoyeux
Hi,

imagine a textfield with the following content:

Code: Select all

{IIF(MyBusinesObject.PropertyOne > 0, "Some Text {MyBusinesObject.PropertyTwo} Some more text", null)}
The problem now, is that "{MyBusinesObject.PropertyTwo}" doesn't get interpreted anymore. Instead of the actual value of "PropertyTwo" it is the formula "{MyBusinesObject.PropertyTwo}" that appears at runtime...

How can I use variables and/or Businessobjects WITHIN an IIF-construct?

Cheers,
Pascal

Re: Question regarding the use of IIF

Posted: Wed Jan 29, 2014 8:04 am
by HighAley
Hello.

You should use next code:
{IIF(MyBusinesObject.PropertyOne > 0, "Some Text "+MyBusinesObject.PropertyTwo+" Some more text", null)}
Thank you.

Re: Question regarding the use of IIF

Posted: Wed Jan 29, 2014 8:25 am
by PJoyeux
Aleksey Andreyanov wrote:Hello.

You should use next code:
{IIF(MyBusinesObject.PropertyOne > 0, "Some Text "+MyBusinesObject.PropertyTwo+" Some more text", null)}
Thank you.
Aaahhh... Ok, thank you!

Cheers,
Pascal

Re: Question regarding the use of IIF

Posted: Wed Jan 29, 2014 2:03 pm
by HighAley
Hello.

We are always glad to help you.
Do not hesitate to contact us in future.

Thank you.