I am developing a Custum App and app function in dynatrace to retrieve data from an API, and I would like to visualize this data using DataTable/DataTableV2. However, I am encountering some issues in the process.
I appreciate your help by providing a solution or giving me example code for the same.
Hello @StefanKern
For Your Reference, Please Find The Code In An Image Below.
I Am Getting Some JSON Parsing Error and sometimes blank Page.
Can You Help Me By Providing Code Snippet Related To This Issue. For Your Information I Am Accessing AuditLogs.
Hi @zaid-bashir ,
Not Sure if you found a solution for this yet but can you just paste your error here?
Sometimes all you have to do is do JSON.stringify(data) in the code and then in the DataTable use JSON.parse(data). This ensures that all the JSON data is properly organised with proper formatting.
In your case all you have to do is change these two steps.
const auditLogsData = JSON.stringify(result);
Then in DataTable you change data={JSON.parse(auditLogsData)}