Several tables are rejecting constraints based on local column references.
Iโm given the error:
View โStock Checkโ has an invalid Show_If constraint โ=[Inv_Started] = trueโ. Unable to find column โInv_Startedโ
Where column โInv_Startedโ does most definitely exist. The expression assistant references a table other than the table referenced by the viewโฆ
This is happening for multiple tablesโฆ They are all pointing to the same, incorrect tableโฆ
Any ideas ?
What is the expression?
It would be โ=[Inv_Started] = trueโ, to show a view when true and hide when false. If it would save, but it errors. I have views and behaviors now unable to receive new constraints that reference local columnsโฆ
The constraints for views and behaviors for my User and Plan tables now only show the Inventory table columns as local columns. In the expression assistant in views and behaviors of some other tables, the column names from the Inventory table are showing upโฆ
Show_if expressions for Views are not run in the context of any specific record. As such, you cannot reference the value in a specific column with just [column]
, you need a use a more โglobalโ expression. What are you trying to accomplish?
Hiding a view inside a dashboard when a value in the User table if false. It was working.
When a value in which record of the User table is false?
any(select(User[Inv_Started], [Username] = useremail()))[Inv_Started] = true
was working , then error. now not erroring, still showing the wrong column info in the expression assistant but not workingโฆ
was throwing an โ[Inv_Started] not foundโ error. now just doesnโt workโฆ
Remove this
ya, no. same result either way. and the test works both ways
User | Count |
---|---|
15 | |
11 | |
10 | |
8 | |
3 |