This discussion is archived
7 Replies Latest reply: May 2, 2012 11:02 PM by G.Y RSS

Displaying one icon for each record  based on a condition

684380 Newbie
Currently Being Moderated
Hi People,
I am developing an application using forms 6i with oracle 10g.I have 'Grant' and 'Deny' options in my application.I also have two icons one is TICK icon and next one is WRONG icon.according to the status('Granted' or 'Denied') corresponding icons should be displayed for me.for this i have used multirecord block consisting of 10 records.Below is my sample code.
IF :STATUS.C_STATUS = 'GRANTED' THEN
          Set_Item_instance_Property('status.tick',VISIBLE,PROPERTY_TRUE);
               Set_Item_instance_Property('status.tick',DISPLAYED,PROPERTY_TRUE);
               Set_Item_Property('status.wrong',VISIBLE,PROPERTY_FALSE);
              set_item_property('status.wrong',DISPLAYED,PROPERTY_FALSE);
                 .............
Using this code i am able to obtain the visibility of icons but it affects the entire column.For instance,if the first records status is 'Granted' then TICK icon should be displayed at runtime.similarly if second records status is 'Denied' then WRONG icon should be displayed for me.but for me the TICK icon is displayed for all the 10 records if the status of the first record is 'Granted'.How to make the corresponding icons visibled according to the status('Granted' or 'Denied'). Kindly give me a solution.

Edited by: vidusnat on May 2, 2012 12:26 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points