Viewing text from a CSV file

I think I’m missing something fundamental. I started the example hello-framework project and I’m adding to the example-dashboard.md. I have a simple CSV file with two columns which are text and I can’t see to view the table. I copied the csv to the data folder and just added the lines below to the example-dashboard.md, but nothing shows up. Any ideas on what I’m doing wrong or misunderstanding.

Ultimately, I want to be able to sort and filter the data based on a search input.

const data1 = FileAttachment(“data/example.csv”).csv({typed: true});
Inputs.table(data1)

FileAttachment(...).csv() returns a Promise. You either need to await the promise, or move the Inputs.table into another block, because dependencies between blocks are automatically awaited.

Additionally, you probably want to display() the the table.

```js
const data1 = FileAttachment(“data/example.csv”).csv({typed: true});
```
```js
display(Inputs.table(data1));
```

Thank you so much. What is a good place to start learning about these concepts?

Hi @DVCoder
I would recommend reading the Framework documentation here and also join the Framework GitHub discussions.