Buzzspace Examples

Help Page > Admin > Manage Tab Options > BuzzSpace > Buzzspace Examples

BuzzSpace Examples
 
Widgets
 
RSS feeds

Create an iFrame for an RSS feed:

First, find an RSS feed that you’d like to use.  As an example, here is a link to Reuters for a news feed : http://www.reuters.com/tools/rss

After you have the RSS feed, try adding it into a widget.  FeedWind was used in the example shown above

Weather

The weather was added using a widget from Accuweather.

Personalize

Use this script below to display the username

<span id="name" style="font-size: 16px; color: #993300;"></span>
 <script type="text/javascript">// <![CDATA[
   var name1 = parent.Utility.getCurrentUser().Name;
   document.getElementById('name').innerHTML = name1;
   // ]>
  </script>

Integrated Search

Give your users a quick, easy way to perform common retrievals

NOTE: Replace the FieldName in blue with your custom field name.  Also note that the custom field cannot contain any special characters or spaces.

<p style="padding: 0px 20px;">Field Name: <input id="FieldName" type="text" /> <input id="search_FieldName" name="search" type="button" value="search" /></p>
 <script type="text/javascript">// <![CDATA[
 $('input[type="button"]').bind('click', function runSearch(event) {
  var elem = $(event.target);
  var id = elem.attr('id');
  var input_id = id.split('_');
  var parts = input_id.slice(1);
  input_id = parts.join('_');
  var search_id = '#' + input_id;
  var search_val = $(search_id).val();
  var $$ = parent.$;
  $$('#qtext').val('"' + input_id.replace('_', ' ') + '":*' + search_val + '*');
  $$('#qsbutton').click();
  });
  $('input[type="text"]').bind('click', function () {$(this).select();});
  $('input[type="text"]').keypress(function runSearch(event) {
  if (event.which != 13) {return;}
  var elem = $(event.target);
  var id = elem.attr('id');
  input_id = id;
  var search_id = '#' + input_id;
  var search_val = $(search_id).val();
  var $$ = parent.$;
  $$('#qtext').val('"' + input_id.replace('_', ' ') + '":*' + search_val + '*');
  $$('#qsbutton').click();

});
 // ]]></script>

Visible by Group
<div id="ShowEmployee" style="display: none; padding: 10px 20px;">
  Employee Name: <input id="EmployeeName" type="text" /> <input id="search_EmployeeName" name="search" type="button" value="search" />
 </div>

<!--// ----- Visible by Group ----- //-->
 <script type="text/javascript">// <![CDATA[

function isMemberOfGroup(groupName) {
  var isMember = false;
  var length = parent.window.slimRoles.length;
  for(var i = 0; i < length; i++) {
  var slimRole = parent.window.slimRoles.at(i);
  if (slimRole.get('Name') == groupName) {
  isMember = (slimRole.get('IsMember'));
  }
  }
  return isMember;
  }

if (isMemberOfGroup('HR')) {
  $('#ShowEmployee').css('display', 'block');
  }

// ]]></script>

 

Category:
DocStar ECM Help Center
© 2021 Epicor Software Corporation. All Rights Reserved.