Specifying Custom Colors in Your FOCEXEC

The WebFOCUS GIS Adapter supports all 143 standard HTML colors by name, from ALICEBLUE to YELLOWGREEN. For more information on the standard HTML color values that are supported, see Appendix D, HTML Color Values.

However, if you want to define a custom color configuration in the WebFOCUS FOCEXEC, you can use your own RGB color values. Add a COMPUTE statement in the FOCEXEC and name the computed field as COLOR. Set the field equal to any RGB combination, which is a string of three numbers that are separated by commas. Each number value has a minimum value of 0 and a maximum value of 255. For example:

COMPUTE COLOR/A20 = "255,125,100";

In the ESRI Configuration Utility, add the COLOR field as the value of the Color property in the outbound layer of the FOCEXEC binding that you want to use. Set the outbound layer to use a symbol that has, in its symbol definition, the Color property set to Variable: in the drop-down list on the left pane, and is set to color in the drop-down list on the right pane. When the GIS procedure is run, the symbol will refer to the COLOR attribute in the outbound layer, which has been configured to refer to the COLOR field in the FOCEXEC.


WebFOCUS