Data Resource Preview panel not visible

rohan1999
Tera Contributor

I am building a data resource accessing the Group Member table but the preview panel is not available. That happens for every data source I create but not the existing ones ? I have saved it etc .

 

Essentially I am setting the visibility of a component using a client state parameter. I need to write a client script that will use this data source to set that parameter. But the resource being accessed in the client script as api.data.<data_resource_name>.output is coming as undefined.

 

I think must be something trivial, but since the preview pane in the data source itself is not visible to me when creating any data sources I must have missed a step. I f anyone could point me in the rght direction would be great help.

As you see below the preview section of the data source source is blank. But for other existing ones I see the preview. What mistake am I doing when creating the data resource ?

rohan1999_0-1720709723601.png

 

 

 

 

 

1 ACCEPTED SOLUTION

Dibyaratnam
Tera Sage

Can you try for api.data.<data_resource_name>.results instead of .output. The issue that you have mentioned, it happens sometimes.

View solution in original post

2 REPLIES 2

Dibyaratnam
Tera Sage

Can you try for api.data.<data_resource_name>.results instead of .output. The issue that you have mentioned, it happens sometimes.

rohan1999
Tera Contributor

Thanks that worked. I also checked on another page where the preview panel loaded fine and  I was able to verify that I had to use .results.

 

The reason preview panel doesn't load is because I have many data visualizations on that page. It previews and loads correctly for the end user but when you are in dev mode all the visualisations are in loading mode which prevents other preview panels from loading. Hopefully servicenow can fix it. @Brad Tilton ?