O$ 10.0 - jsClient - show different lines in a droplist in different colours?

Philip Tulett philip.tulett at pdq-networks.com
Fri Oct 14 08:52:19 UTC 2022

Hi Paul,

I have not used the following in a JS Drop List, but on a JS DataGrid to
change the colour of the font on rows based on a value in the row (that is
not being displayed), it may point you in the right direction.

On the Data Grid, have a client executed method called $formatcell, with two
parameters pRow & pCol of the type var, and one local variable lValue of the
type VAR, that contains the following:-
If pCol=1
  Calculate lValue as IV_List.[pRow].7
Else If pCol=2
  Calculate lValue as IV_List.[pRow].4
  Calculate lValue as IV_List.[pRow].[pCol]
End If

If IV_List.[pRow].RA_ORDER<10
  Calculate iHtml as
  Calculate iHtml as
End If

Quit method iHtml

Kind regards
Philip Tulett

-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> On Behalf Of
Paul Mulroney via omnisdev-en
Sent: 14 October 2022 06:10
To: Omnis-dev list <omnisdev-en at lists.omnis-dev.com>
Cc: Paul Mulroney <pmulroney at logicaldevelopments.com.au>
Subject: O$ 10.0 - jsClient - show different lines in a droplist in
different colours?

Hi All,

I'm sure that I've done this before, but I can't find it in our code.

I want to show a droplist in the jsClient, where the lines are different
colours, based on the status of another column in the list.  In the desktop
I know that I can use a style() function to apply text colour changes on a
line-by-line basis.  I seem to recall that there's a special client method
$css? or something that we could override, but it's buried in my memories in
some inaccessible place.

Does anyone know what I'm talking about, or did I dream that?


What was the best thing before sliced bread?
Paul W. Mulroney                                            We Don't Do
Simple Pty Ltd 
pmulroney at logicaldevelopments.com.au       Trading as Logical Developments
www.logicaldevelopments.com.au                   ACN 161 009 374 
Ph: +61 8 9458 3889                                       86 Coolgardie

Manage your list subscriptions at https://lists.omnis-dev.com Start a new
message -> mailto:omnisdev-en at lists.omnis-dev.com 

More information about the omnisdev-en mailing list