com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Retrieving the Total Record Count of a Table via JS API

Overview

Function

getRecordCount(tableName, success, error)

Description

Returns the total record count of a table.

OutputThe record count in the ‘message’ element within the argument of the success callback.

Example

client.getRecordCount("SampleTable", function(data) {
      console.log (data["message"]);
}, function(error) {
      console.log("error occured: " + error);  
});

Sample output

 3
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.