Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2004
    Location
    Jordan
    Posts
    137

    Unhappy Unanswered: set_item_property question

    hi all

    I have avery simple block, I want to change the color of a field according to the value.

    in the block level I put the (post_query) trigger with this code:

    if :field1 < 1000 then
    set_item_property(:field1, CURRENT_ROW_BACKGROUND_COLOR, 'red');
    else
    set_item_property(:field1, CURRENT_ROW_BACKGROUND_COLOR, 'black');
    end if;



    but itsnot working ....

  2. #2
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1
    Use SET_ITEM_INSTANCE_PROPERTY, e.g.
    Code:
    Set_Item_Instance_Property( 'blk1.item1', CURRENT_RECORD,
     VISUAL_ATTRIBUTE,'VA_99');

  3. #3
    Join Date
    Feb 2004
    Location
    Jordan
    Posts
    137

    Thumbs up

    hi andrewst

    thank u alot .... its working ok.

    you know....I have all threads that replied by u saved in my pc.
    u r my Ideal (oracle man).

  4. #4
    Join Date
    Feb 2004
    Location
    Jordan
    Posts
    137

    Thumbs up thanx andrewst

    hi andrewst

    thank u alot .... its working ok.

    you know....I have all threads that replied by u saved in my pc.
    u r my Ideal (oracle man).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •