I am not able to set certain tables' scope to publicOnServer
. In my model.js, I set the scope for the table. The change in scope can be seen when I view my remote model (4D Database) in Wakanda- the table's scope is updated after my change.
With some tables, when I set the scope and then do any kind of query from the clientside - to any table - the console on my browser fills with errors and the query fails. Effectively, setting certain tables' scope in model.js breaks query for even an unrelated table.
One difference I notice between the tables for which scope changes work and those where it doesn't are tables that have relational attributes. Setting the scope for these tables consistently breaks query functionality and setting scope for tables without relational attributes consistently works fine. Is this a bug?
Chrome console output:
ERROR Error: Uncaught (in promise): Error: Needed Contractor dataClass is not present on catalog
Line in model.js:
model.Contractor.properties.scope="publicOnServer";
Contractor is a table in the remote model and it has relational attributes.