Hi everyone im new to weweb and supabase and I got an issue I can’t seem to solve alone.
Ok so first of all lets talk about what im creating to understand my problem better. I am currently working on a projet of reading web app, the goal is for user to freely upload their online stories and readers to directly read it basically. Im in the process of creating an author dashboard for author to directly publish their book/ upload data in supabase and retrieve it after to show the book.
I did my form container and input for the author to create his own book.
Now lets get to my problem and thanks to all if you are still reading this and willing to help me.
I have two table currently, one for user and one for book, in the one for user we get the username and other stuffs, in the other one the book table we got all the infos about the current book, each table as a column that is the auth id, so when someone signup automatically in the user database we have the auth id, same for ebook, this way i can retrieve book by user.
Now in my data table ebook I have a username column, and I want to take the username from my user table, for that when I insert the data in the table with the form Im using a lookup formula to search in the database user the username corresponding at the auth, which I take from current auth connected
And now the issue is there, paramether must be an array, after carrefully checking everything I found out that my collection in weweb referring at the table in supabase is bugged, it worked fine at first, but when adding column suddenly my table is not an array.
It became like this, so I was confused and im new to this (was working with bubble)
So what happened there ? I did some things : I recreated my table, at first it worked then when adding all column it didnt anymore, by deleting one column after the other it still doesnt work.
Now my user table is working, I mean the collection is there running apparently it is an array, so I did what seemed to be the solution, I copied the suer table and just edited the column to match my book table, but then it still became something other than an array.
So im kind of lost to what to do, if someone could help me I appreciate it. Also am i doing the right thing by using a lookup formula ?
And while were at it, how can I make private my dashboard so only current auth can use it ? is there a video on this ? I was thinking of using special url in the page that is the current auth, and a workflow on page load if user is not auth then redirect.
If you are still reading this and willing to help thanks a lot because im realllllly stuck.