on 12-20-2006 2:05 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.