Home » Developer & Programmer » Forms » conditional formatting
conditional formatting [message #85155] Fri, 04 June 2004 12:08
hudo
Messages: 165
Registered: May 2004
Senior Member
All rows with an even row number should have a green background color. I added in the BLOCK TRIGGER 'POST-QUERY':

--IF ( MOD (:DEPTNO,15) = 0 ) THEN
IF ( MOD (:CURRENT_RECORD,2) = 0 ) THEN
--SET_ITEM_INSTANCE_PROPERTY('DEPTNO',CURRENT_RECORD,VISUAL_ATTRIBUTE,'GREEN_BACKGROUND');
SET_BLOCK_PROPERTY('DEPT',CURRENT_ROW_BACKGROUND_COLOR,'green'); --SET_BLOCK_PROPERTY('DEPT',CURRENT_ROW_BACKGROUND_COLOR,'GREEN_BACKGROUND');
END IF;

but by starting the form there occurs an error because of :CURRENT_RECORD in the conditional-clause.
If I used instead the IF -clause containing ( MOD (:DEPTNO,15) = 0 )
the background color for the specific line (deptno = 30) does not change, although I used the SET_BLOCK_PROPERTY command..

Please help
Previous Topic: take a 'snapshot' of the system before and after installation
Next Topic: replace mask by switching between TabPages
Goto Forum:
  


Current Time: Mon Jul 08 15:43:21 CDT 2024