Salesforce

ColorSet (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

ColorSet (Magic xpa 4.x)

Updates the Application Color repository loaded into the memory with a new color value.

Syntax:

ColorSet (color number, foreground color, background color)

Parameters:

color number – The color number in the Application Color repository.

foreground color – A string representing the ARGB value in hex code for the foreground color.

background color – A string representing the ARGB value in hex code for the background color.

Returns:

Logical.

The function will return False if an error occurs. For example:

  • The color number is zero or does not exist in the table.

  • The foreground or background color values are illegal.

Example:

Evaluate ColorSet(12, 'FFFF0000','FFFFFFFF' ) will update color 12 with red on white colors.

Note:

The color file will not be updated.

The change will affect the display forms only. It will not change the color of output reports.

The Alpha value will affect mobile devices only.

After the update of a color, the current form and subforms and their controls will be refreshed and any usage of this color will be changed.

Parent programs, child tasks, parallel programs, and phantom tasks will not be refreshed; so they might be seen with the old color (and might be changed later on due to internal refresh).

This is a client-side function that is available for Online and Rich Client tasks. If executed in a RIA Batch task, no change will be seen on the client side.

Exceptions:

This function is not supported in Web Client tasks.

See also:

FontSet

The Online and Rich Client Samples projects (program IF08 and RIF08)

Since version: 3.1

Reference
Attachment 
Attachment