mWater / mwater-forms

Forms controls for mWater
GNU Lesser General Public License v3.0
3 stars 5 forks source link

VisibilityCalculator defaults an item to not show when there are advanced conditions which require schema to evaluate #207

Closed broncha closed 6 years ago

broncha commented 6 years ago

If any question has an advanced condition which requires the ExprEvaluator to have schema, it defaults to false. http://localhost:3001/index.html#/forms/59bd04a09b3847a2855eec654b2a613b/design screen shot 2018-09-21 at 4 37 54 pm

This roster groups has an advanced condition that depends on Latest expression. For ExprEvaluator to evaluate the condition, it requires schema or the table ordering

In this case, when viewing the response, the data was not shown with a warning on the console last does not work without schema and ordering

So, VisibilityCalculator needs access to the schema