3 Replies Latest reply: May 20, 2011 5:29 AM by Gyan Darpan RSS

    How to set the fire Action For LOV

    user1140193
      Dear Friends,

      Here is my Requirement,

      I have LOV region and Message Choice bean in my OAF page , based on the value chosen in the
      LOV the corresponding dependent value will be populated in message choice .

      Since LOV do NOT have any fire Action to set in Property inspector , is there any other way where i can
      set the fire action in programmatic way.

      Could you please suggest me how can i accomplish my requirement .

      Thanks ,
      Keerthi
        • 1. Re: How to set the fire Action For LOV
          Braj Pratap
          Hi,

          Lov it self fire a PPR event .u can get event using below code


          if (pageContext.isLovEvent())
          {

          //
          // if ("myLovInput".equals(lovInputSourceId))
          // {
          // logic begins here
          // }
          }

          Thanks
          Pratap
          • 2. Re: How to set the fire Action For LOV
            Gyan Darpan
            Keerthi,

            Lov be default has an event attached to it. So there is no need to attach a event with it.

            Event Name is isLovEvent.

            Use below code to achieve ur requirement.
            if (pageContext.isLovEvent())
            {
                 if("SearchLov".equalsIgnoreCase(lovInputSourceId))//Replace SearchLov with the Lov ID 
                 {
                     //Here u need to write the logic to filter the message Choice
                 }
            }
            Regards,
            Gyan
            • 3. Re: How to set the fire Action For LOV
              AnilSharma
              user1140193 wrote:
              Dear Friends,

              Here is my Requirement,

              I have LOV region and Message Choice bean in my OAF page , based on the value chosen in the
              LOV the corresponding dependent value will be populated in message choice .

              Since LOV do NOT have any fire Action to set in Property inspector , is there any other way where i can
              set the fire action in programmatic way.

              Could you please suggest me how can i accomplish my requirement .

              Thanks ,
              Keerthi
              http://oracleanil.blogspot.com/2009/04/code-of-oaf.html

              Thansk
              --Anil
              http://oracleanil.blogspot.com