Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

every second record with another background color (second part)

Status
Not open for further replies.

prosuc

Programmer
Aug 14, 2002
53
CL
This thread is a rply of thread259-877570

The lewisp's solution work fine, but I want to highlight the current record with another color, but when I stay in a record with another background color activated by the trigger POST-QUERY, the current record's color don't change.

Thanks.
Pablo.
(sorry for my english)
 
Hi, Dima.

I don't have problems with the system variable, realy I don't know why Forms don't change the current record apereance thought I use the right property (I think).

POST-QUERY trigger on the block.
IF MOD(TO_NUMBER:)SYSTEM.TRIGGER_RECORD),2) = 0 THEN
SET_ITEM_INSTANCE_PROPERTY ('block_name.item_name,
,CURRENT_RECORD,VISUAL_ATTRIBUTE,'visual_attribute_back_green');
END IF;



in the field I set the current record visual attribute group with "visual_attribute_back_yelow"

Forms keep the color green in the current record.

Thanks.
Pablo
 
I just use the parameter named CURRENT_RECORD.
 
Ok, but do you restore your initial visual attribute?

IF MOD(TO_NUMBER:)SYSTEM.TRIGGER_RECORD),2) = 0 THEN
SET_ITEM_INSTANCE_PROPERTY ('block_name.item_name,
,CURRENT_RECORD,VISUAL_ATTRIBUTE,'visual_attribute_back_green');
else
SET_ITEM_INSTANCE_PROPERTY ('block_name.item_name,
,CURRENT_RECORD,VISUAL_ATTRIBUTE,'DEFAULT');

END IF;

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top