This topic is locked

conditional format row color

11/19/2008 4:43:48 PM
ASPRunnerPro General questions
A
Al_oil author

Hello everyone,
I am trying to set up conditional formatting to change the row color is a certain value is found. I have found a previous post on the subject and copied that code but mine does nothing.
I have a field in my database called "account". I am adding an event under List page: After record process. Here is my code:
Sub BeforeMoveNextList(rs,row,col)

'** Custom code ****

' put your custom code here
if rs("account")=jchai then

row("shadeclass")="style='background:yellow'"

end if

End Sub ' BeforeMoveNextList
Thank you in advance.

Al

Sergey Kornilov admin 11/19/2008

Ak,
you miss double quotes around "jchai"

A
Al_oil author 11/20/2008

Hello Sergey,
I have tried it with and without the quotes and it still does not work. Here is my code now with the quotes.
Thank you,

Al
if rs("account")="jchai" then

row("shadeclass")="style='background:yellow'"

end if

Sergey Kornilov admin 11/20/2008

I recommend to post your application to Demo Account (last tab in ASPRunnerPro) and send the URL to support@xlinesoft.com.

A
Al_oil author 11/20/2008

Hi Sergey,
I just emailed support.
Thank you,

Al

hichem 1/6/2009

Hi Sergey,

I just emailed support.
Thank you,

Al


Can you please post the working example? I need the same functionality.

many thanks!!!

Sergey Kornilov admin 1/6/2009

Hich,
I recommend to post your application to Demo Account (last tab in ASPRunnerPro) and send the URL to support@xlinesoft.com.

R
rascasse83 1/12/2009

Hi guys

the code below worked for me
if rs("FieldStatus")<>"Pending" then

row("rowstyle")="style='background:yellow'"

end if