|
Re: How to use charAt() in a highlight expression? [message #891943 is a reply to message #891888] |
Tue, 26 June 2012 16:02 |
|
Is row["Status"] a string? Take a look at the attached example. Select
the product code and see the highlight rule.
Jason
On 6/26/2012 8:42 AM, Paul Ramsden wrote:
> I have been trying to use the following expression in a highlight rule.
>
>
> row["Status"].charAt(0) equalTo '1'
>
>
> It never seems to work.
>
> I also tried
>
>
> new String(row["Status"]).charAt(0) equalTo '1'
>
> row["Status"].charAt(0) == '1' IsTrue
>
>
> ... no luck
>
> Am I doing something wrong here?
>
>
> On a related point:
> I believe that the data is correct but I would like to debug this or
> spit out some kind of trace to make sure. How could I do this?
>
-
Attachment: charat.zip
(Size: 2.44KB, Downloaded 195 times)
|
|
|
Re: How to use charAt() in a highlight expression? [message #891945 is a reply to message #891888] |
Tue, 26 June 2012 16:02 |
|
Is row["Status"] a string? Take a look at the attached example. Select
the product code and see the highlight rule.
Jason
On 6/26/2012 8:42 AM, Paul Ramsden wrote:
> I have been trying to use the following expression in a highlight rule.
>
>
> row["Status"].charAt(0) equalTo '1'
>
>
> It never seems to work.
>
> I also tried
>
>
> new String(row["Status"]).charAt(0) equalTo '1'
>
> row["Status"].charAt(0) == '1' IsTrue
>
>
> ... no luck
>
> Am I doing something wrong here?
>
>
> On a related point:
> I believe that the data is correct but I would like to debug this or
> spit out some kind of trace to make sure. How could I do this?
>
-
Attachment: charat.zip
(Size: 2.44KB, Downloaded 170 times)
|
|
|
Re: How to use charAt() in a highlight expression? [message #891947 is a reply to message #891888] |
Tue, 26 June 2012 16:02 |
|
Is row["Status"] a string? Take a look at the attached example. Select
the product code and see the highlight rule.
Jason
On 6/26/2012 8:42 AM, Paul Ramsden wrote:
> I have been trying to use the following expression in a highlight rule.
>
>
> row["Status"].charAt(0) equalTo '1'
>
>
> It never seems to work.
>
> I also tried
>
>
> new String(row["Status"]).charAt(0) equalTo '1'
>
> row["Status"].charAt(0) == '1' IsTrue
>
>
> ... no luck
>
> Am I doing something wrong here?
>
>
> On a related point:
> I believe that the data is correct but I would like to debug this or
> spit out some kind of trace to make sure. How could I do this?
>
-
Attachment: charat.zip
(Size: 2.44KB, Downloaded 171 times)
|
|
|
Re: How to use charAt() in a highlight expression? [message #891949 is a reply to message #891888] |
Tue, 26 June 2012 16:02 |
|
Is row["Status"] a string? Take a look at the attached example. Select
the product code and see the highlight rule.
Jason
On 6/26/2012 8:42 AM, Paul Ramsden wrote:
> I have been trying to use the following expression in a highlight rule.
>
>
> row["Status"].charAt(0) equalTo '1'
>
>
> It never seems to work.
>
> I also tried
>
>
> new String(row["Status"]).charAt(0) equalTo '1'
>
> row["Status"].charAt(0) == '1' IsTrue
>
>
> ... no luck
>
> Am I doing something wrong here?
>
>
> On a related point:
> I believe that the data is correct but I would like to debug this or
> spit out some kind of trace to make sure. How could I do this?
>
-
Attachment: charat.zip
(Size: 2.44KB, Downloaded 178 times)
|
|
|
Re: How to use charAt() in a highlight expression? [message #891951 is a reply to message #891888] |
Tue, 26 June 2012 16:02 |
|
Is row["Status"] a string? Take a look at the attached example. Select
the product code and see the highlight rule.
Jason
On 6/26/2012 8:42 AM, Paul Ramsden wrote:
> I have been trying to use the following expression in a highlight rule.
>
>
> row["Status"].charAt(0) equalTo '1'
>
>
> It never seems to work.
>
> I also tried
>
>
> new String(row["Status"]).charAt(0) equalTo '1'
>
> row["Status"].charAt(0) == '1' IsTrue
>
>
> ... no luck
>
> Am I doing something wrong here?
>
>
> On a related point:
> I believe that the data is correct but I would like to debug this or
> spit out some kind of trace to make sure. How could I do this?
>
-
Attachment: charat.zip
(Size: 2.44KB, Downloaded 176 times)
|
|
|
Re: How to use charAt() in a highlight expression? [message #891953 is a reply to message #891888] |
Tue, 26 June 2012 16:02 |
|
Is row["Status"] a string? Take a look at the attached example. Select
the product code and see the highlight rule.
Jason
On 6/26/2012 8:42 AM, Paul Ramsden wrote:
> I have been trying to use the following expression in a highlight rule.
>
>
> row["Status"].charAt(0) equalTo '1'
>
>
> It never seems to work.
>
> I also tried
>
>
> new String(row["Status"]).charAt(0) equalTo '1'
>
> row["Status"].charAt(0) == '1' IsTrue
>
>
> ... no luck
>
> Am I doing something wrong here?
>
>
> On a related point:
> I believe that the data is correct but I would like to debug this or
> spit out some kind of trace to make sure. How could I do this?
>
-
Attachment: charat.zip
(Size: 2.44KB, Downloaded 208 times)
|
|
|
Re: How to use charAt() in a highlight expression? [message #891954 is a reply to message #891943] |
Tue, 26 June 2012 16:03 |
|
Also may want to put a check in for null, because this will most likely
cause the highlight to fail.
Jason
On 6/26/2012 12:02 PM, Jason Weathersby wrote:
> Is row["Status"] a string? Take a look at the attached example. Select
> the product code and see the highlight rule.
>
> Jason
>
> On 6/26/2012 8:42 AM, Paul Ramsden wrote:
>> I have been trying to use the following expression in a highlight rule.
>>
>>
>> row["Status"].charAt(0) equalTo '1'
>>
>>
>> It never seems to work.
>>
>> I also tried
>>
>>
>> new String(row["Status"]).charAt(0) equalTo '1'
>>
>> row["Status"].charAt(0) == '1' IsTrue
>>
>>
>> ... no luck
>>
>> Am I doing something wrong here?
>>
>>
>> On a related point:
>> I believe that the data is correct but I would like to debug this or
>> spit out some kind of trace to make sure. How could I do this?
>>
>
>
|
|
|
|
|
|
Re: How to use charAt() in a highlight expression? [message #892520 is a reply to message #892063] |
Thu, 28 June 2012 14:18 |
|
Paul
I am not certain why this happening. Can you reproduce with the sample db?
Jason
On 6/27/2012 12:33 AM, Paul Ramsden wrote:
> Thanks for the replies.
>
> I am pretty certain that the value is a string and is not null. The
> string is always 2 chars, xy, where x indicates attendance (0 or 1) and
> y is the role (., M, B or X). The role is output as text in the cell.
> The attendance is used highlight the cell (change background colour).
>
> The role value does appear correctly using normal data binding (e.g.
> dataSetRow["Day1"].charAt(1))
>
> Is it possible to debug javascript?
|
|
|
Powered by
FUDForum. Page generated in 0.04832 seconds