3 Replies Latest reply on Jan 16, 2017 2:19 AM by jgoldhammer

    Upcoming events tile issue!

    kikumar@mdsol.com

      Hi All,

       

      I am developing a tile to display upcoming events, the tile will display content for all events or for a particular place/project/group based on the tile configuration.

      I am using the RSS feed XMLs to load the data for upcoming events, because I could not find a way of getting upcoming events through osapi.


      for all upcoming events I am using:
      https://mdsol-sandbox.jiveon.com/view-browse-feed.jspa?browseSite=content&browseViewID=content&userID="+viewer+"&filterID=all~objecttype~objecttype[event]~event[upcoming]&sortKey=all&sortOrder=1&numItems="+count;

       

      specific place/group/project:
      https://mdsol-sandbox.jiveon.com/view-browse-feed.jspa?browseSite=content&browseViewID=placeContent&userID="+viewer+"&containerType="+containerType+"&containerID="+location+"&filterID=contentstatus[published]~objecttype~objecttype[event]~event[upcoming]&sortKey=all&sortOrder=1&numItems="+count;

       

      The development of the tile is almost done.

       

      Now, I am facing a problem that, when the user login to our jive instance and visit the page where this tile is installed, jive ask for authentication again may be because ajax try to load xml from RSS feed:

       

      Looking for a workaround:
      1- can we avoid this re-authentication somehow ?
      here is my code that loads rss feed xml:

         

      code in view.js of tile which is used to load rss feed:

      $.ajax({

           type: "GET",

           url: "https://mdsol-sandbox.jiveon.com/view-browse-feed.jspa?filterID=all~objecttype~objecttype[event]~event[upcoming]&browseS… ",

           dataType: "xml",

           success: function (xml) {

      $(xml).find('item').each(function () {        

      eventsData.push(tempObj);

               });

           }

      });

       

      2- Can I get the same output through osapi directly ?

      Following RSS load upcoming events for

      my jive instance:

      https://mdsol-sandbox.jiveon.com/view-browse-feed.jspa?browseSite=content&browseViewID=content&userID="+viewer+"&filterID=all~objecttype~objecttype[event]~event[upcoming]&sortKey=all&sortOrder=1&numItems="+count;

       

      specific place/group/project:
      https://mdsol-sandbox.jiveon.com/view-browse-feed.jspa?browseSite=content&browseViewID=placeContent&userID="+viewer+"&containerType="+containerType+"&containerID="+location+"&filterID=contentstatus[published]~objecttype~objecttype[event]~event[upcoming]&sortKey=all&sortOrder=1&numItems="+count;

       

      Gopi Gorantala

      Jordan van Bergen

      Ryan Rutan, expected a correct answer

       

       

      thanks in advance!