0 Replies Latest reply on Feb 21, 2010 4:41 AM by Shweta Gothe

    Page Bus

    Shweta Gothe

      Hi ,

       

      I am using page bus to load a module(M1).This page bus is used to load different other modules also.But addcallback method is getting called 10 times. Can you please help me to find out why module is getting loaded 10 times .

       

      Page bus javascript code :

       

      var mySubscriptionToggle;

      function passToggleValue() {

            mySubscriptionToggle=window.PageBus.subscribe("passToggleId",null,passToggle_publish,null );

      }

       

      function passToggle_publish(subject, message, subscriberData) {

       

            acceptToggleValue(message);

             window.PageBus.unsubscribe(mySubscriptionToggle);

      }

       

      function acceptToggleValue(msg) {

           getFlexApp('abc').acceptToggleValue(msg.Flag);

       

      }

       

       

      - msg.Flag indicates which module to be loaded.