cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with conditions for images

richard_hirsch
Active Contributor
0 Kudos

Hi,

I am having trouble displaying three different images based on different strings in a table. I have followed the instructions in the <a href="https://wiki.sdn.sap.com/wiki/display/VC/Traffic+lights">WIKI entry</a> but I can't get the condition to work correctly. I am trying to use a string field called status. The condition "ISNULL(@status)" returns true although I see values in the field. I have tried @status=="1" and BEGINS(@status,"2") but they don't work either.

Anyone have any idea what the problem could be? The images are present but the condition doesn't work.

Thanks.

Dick

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Richard,

have you tried instead of the ISNULL() function to check it with

@status=='' for an empty string.

You can also try to to complete reference to the inputfield e.g.

#ID[somenumber]@status.

Hope that helps.

Best Regards,

Marcel

richard_hirsch
Active Contributor
0 Kudos

Hi Marcel,

Thanks for your prompt response.

I am using a table instead of a form. The values are coming from a data service and I display them in other columns in the table. For some reason, the condition thinks the value is null although I see that value is present.

Do you mean something like this: #ID[1]@status=="1" ? I tried this and I got the message "bad or missing element reference"

Thanks.

Dick

Former Member
0 Kudos

Hi Richard,

> I am using a table instead of a form. The values are

> coming from a data service and I display them in

> other columns in the table. For some reason, the

> condition thinks the value is null although I see

> that value is present.

This doesn't matter.

> Do you mean something like this: #ID[1]@status=="1"

> ? I tried this and I got the message "bad or missing

> element reference"

I mean, that you can use the direct reference to this field of the table,

e.g. #ID[idofyourtable]@status instead of only @status.

> Thanks.

>

> Dick

Best Regards,

Marcel