This topic is locked

Coloring the last posted record

11/7/2005 1:13:37 PM
ASPRunnerPro General questions
orit author

Is there a way to color the last posted record (In order to emphasize it)?
How to do that?
Thanks

Sergey Kornilov admin 11/7/2005

ASPRunner can not do that.
You can implement this by modifying pages generated by ASPRunner, however this task requires some custom programming.

orit author 11/9/2005

Is there a way to color the background color of a cell according the value of a numeric field: for example if the value - number in the field is less than "0" - the background color of the cell will be red and if the number in the field is greater or equal to "0" - the background color of the cell will be green?
Thanks

Sergey Kornilov admin 11/10/2005

You can make this with small modifcations of pages built with ASPRunnerPro.
At first uncheck Rollover row highlightingon Miscellaneoustab in ASPRunner.
Build the pages, open ..._list.asp with a text editor, locate loopRs functions and modify it this way. Please see my changes in bold:

'Â To insure that every other one is shaded

If iShadeTheDetail = 0 then

  sShadeClass = "class=shade"

  iShadeTheDetail = 1

Else

  sShadeClass = ""

  iShadeTheDetail = 0

End If

sbgColor=""

if rs("Field")>=0 then

  sbgColor="bgcolor=green"

  sShadeClass=""

end if


  %>

<tr valign=top <%=sbgColor%>

  

  <%=sShadeClass%> >


where Field is your actual field name.

orit author 11/17/2005

Perfect thanks a lot.

T
trev 11/5/2006

You can make this with small modifcations of pages built with ASPRunnerPro.

At first uncheck Rollover row highlightingon Miscellaneoustab in ASPRunner.
Build the pages, open ..._list.asp with a text editor, locate loopRs functions and modify it this way. Please see my changes in bold:
where Field is your actual field name.