Skip to content

getSelectedMembersEncoded

This function allows you to get the UIDs of the current CMEMBERs that are type "DropDown" or "MemberList" in a format that is usable in a query string.

Syntax

getSelectedMembersEncoded()

Arguments

There are no arguments to this function.

Return

This function returns a string.

Examples

//
//      This example function takes in an array of parameters for use in a 
//      query string, combines them into a string of key=value pairs 
//      separated by an & and then add that to the encoded selected members
//      from the report and returns the new querystring
//
function buildQueryString(queryParameters)
{
   var query = "";

   _.each(queryParameters, function(param){
      query += param.name + "=" + encodeURIComponent(param.value) + "&";
   });

   return report.api.getSelectedMembersEncoded() + query;
}
Back to top