I was able to solve it by adding a refresh for the Teachers table in the OnStart of the app. The issue was the table wasn't loaded, so it couldn't get the value.