Updating a table on the page with logic in the Where Clause

Hi there

I have a form and a table on the same page. The form writes into the database and the table displays entries from the database, but it only displays items that have the current user’s ownerId in the record.

The logic on the Where Clause for the table is as follows:

My interface with the form and submit button looks like this:

When I click submit, I can see the record being written to the database (in the Backend view) but the table does not update with the new record until I refresh the page.

Is there a way I can refresh the table when clicking the submit button? Alternatively is there a way I can refresh the page when clicking submit?

Please let me know if there is a solution

Hello @Armandt_du_Preez

Please provide your Application ID, container name and page name.

Regards,
Vladimir

Hi Vladimir

544AC90A-D633-2481-FF10-B387FC691800
Container: Main
Page: Capture-Fish-Data

Regards

Hello @Armandt_du_Preez

I’ve checked your app with a test user, and all works fine for me. But if user is not logged in I catch an error.

I suppose mistake might be located here(and in Where Clause Logic)

If Get Current User returns null(when we haven’t active login session), should be thrown an error like below
image

So, in this case, you must check if the user exists, and after that tries to get a property from them.

Regards, Dima.