getFieldsForDataSource(dataViewName, skipStoreCheck)
Obtains the columns configured on the Report Definition bound to the given data view.
Returns
The list of columns as an object.
Parameters
Name | Type | Description | Required |
dataViewName | string | The name of the data view through which the columns configured on the bound Report Definition are obtained. | ✅ |
skipStoreCheck | boolean | The flag that determines if the metadata of the given data view must be fetched from the rule store or from the browser cache. | ❌ |
Usage example
In this example, the API returns a Promise that resolves to a response containing the
list of columns configured on the Report Definition bound to the
D_MyCaseList
data view.
const dataViewName = "D_MyCaseList"
PCore.getAnalyticsUtils().getFieldsForDataSource(dataViewName, false);
//The response of this API is as shown below.
{
"data": [
{ pyFieldName: "pzInsKey" },
{ pyFieldName: "pyID" },
{ pyFieldName: "columnName" }
]
}
Previous topic getDefaultColumns(payload) Next topic getInsightByID(insightID)