This topic is locked

Conditional formatting in 6.3

11/12/2010 3:42:03 PM
ASPRunnerPro General questions
T
Tim author

Hello,
I am trying to use conditional formatting in 6.3 build 6843 and not having any luck. in "List page:After record processed" I have the following code:
If data("UPC") <> "0" then

record("UPC") = "style=""background:red"""

end if
Has anything changed with this? Am i doing something wrong?

Thanks,

Tim

Sergey Kornilov admin 11/13/2010

Here is the correct syntax:

If data("UPC") <> "0" then

record("UPC_style") = "style=""background:red"""

end if


More info:

http://xlinesoft.com/asprunnerpro/docs/change_cell_background_color.htm

T
Tim author 11/15/2010

Oops. Yes of course. Thank you.
But now I see another problem (I think). It seems it does not evaluate each row individually. If any record meets the criteria, it applies the formatting to all records.
For example, this:
If data("NewSRP") <> data("NewPOSPrice") then

record("NewSRP_style") = "style=""background:lightblue"""

end if
changes the color for the record "NewSRP" in every row, regardless of if it is <> "NewPOSPrice" or not.
This does not seem to be the case with row style. For example, this:
If data("NewSRP") <> data("NewPOSPrice") then

row("rowstyle") = "style=""background:lightblue"""

end if
changes the color of the rows where "NewSRP" <> "NewPOSPrice" only, not all rows.
I'm actually ok changing the row color, but I thought I'd point this out in case it's a bug.
Thanks,

Tim

Sergey Kornilov admin 11/15/2010

Works from here.
If you need help with this post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.