Don't fully understand new Table and Views

Hi,

I have a Xano table linked via the new Data and API table structure and the API endpoint that I have needs an input named product for a search.

I have added the table to WeWeb and added a view.

The view shows as empty and only shows a results if I enter something in the Products text input box.

I have a simple page that accepts a text input and then on clicking a button will fetch the collection.

However, when I am trying to bind the result the to the Text label, there is nothing in the results.

So my questions are -

1 - what is the difference between parameters and configuration in the table view

2 - How can I get data into the collection so that I can bind text, etc. to the appropriate collection result

I have tried setting the variable and running the workflow but that doesn’t make any difference.

Thanks
Steve

Hey @SynopsisLabs :waving_hand:

Basically, parameters are inputs you can make available when you are using the Table Fetch action. Those parameters are then used in the Configuration. If you put a default value to the parameter (in the parameters settings), that parameter will be sent by default so that’s a good starting point to start binding your data.
One thing we can do too on the endpoint in Xano, is if the search parameter is empty, you still return every products.

What I usually do in these circumstances, is that I first try to pass on a fixed value in the Table Fetch action. This way, I can see if the issue is on my table, or on the form.
From the screenshots you shared though, It seems like the table is working as it should and there is no value passed on. So the input might be the culprit here.

Hi Jean-Philippe,

Thanks for the response.

I have tried with the table view but in trying to bind to elements on the screen the table view is empty.

See video here.

Thanks
Steve

Oh I see what you did.
In that setup, you are not making use of the parameter you set. You are binding directly to the Input value, which is not available to the Table. That’s why it needs to be passed on by the parameter!

Ok,

So what do I need to do in order to get it to work? is it possible to get a video or at least a step by step guide.

I can’t find anything in the documentation and don’t want to go back to the Plugin method as I understand that this may be deprecated.

Thanks
Steve

  1. In the Data panel, make sure that the endpoint has a search input that will be used to filter the result.

  2. In a view, create a parameter for the search input

  3. In the configuration of the view, you should have the same parameter that was on the Data panel (in my case, search). You need to bind the value of that parameter to the parameter you created in that view.



You can hit save. Make sure that at this point, the list is filtering by modifying the search input just above the table.

At this point, the Table view is ready.

  1. Now back to the Interface editor. Best practice is to add your workflow on the form component (not on the button)

On submit trigger, add the Table View: Fetch for your view. On the parameter, you can bind the value of the input located in form.formData.name (or the name of you input) Using Form Input - value (green label) like you did would also work.


Now every time the form submits, the view should update!

Let me know if that worked :slight_smile:

Hi Jean-Philippe,

Thanks for this. I followed the instructions and the view updates when I change the value in the search. However, when I try to bind the data to the data grid, the Table View section is empty.

Steve

Hey,
If the table is returning something in the Table view but is not displaying in that formula tab, then it looks more like a bug.. I’m not too sure. But I think at this point you can either try to setup another project to see if that happens there too. Or submit a support ticket