如何使用视觉属性更改 oracle forms 6i 中特定列单元格的前景色和背景色

how to change particular column cell foreground and background color in oracle forms 6i using visual attribute

我正在使用这个代码

IF :SAL > 4000 THEN
     SET_ITEM_PROPERTY('EMP.SAL',VISUAL_ATTRIBUTE,'VA_COLOR');
END IF;  

此代码为所有列着色,但我只想为要更改薪水值的特定单元格着色。

也许你可以使用 SET_ITEM_INSTANCE_PROPERTY

set_item_instance_property('EMP.SAL', current_record, visual_attribute,'VA_COLOR' );