Posts made by Itamar Tzadok

Is it possible to nest criteria (e.g. OR{condition one},OR(AND{condition two),AND{condition three})?

Not yet, but I've been thinking about adding this option.


Is there any access to type conversion, so that we can perform simple arithmetic (e.g. AND,##Year##,0,=,##Year##+1)?

Assuming you need this function in the dataformview field, the natural way would be to create a specialized field plugin as an extension of the dataformview field and override dataformfield_dataformview_renderer:get_search_options with an implementation which takes the value part of the search option, parses it as a formula and calculates the actual value accordingly.


is it possible to use the calculation pattern (e.g. %%F1:=Year-1%%) in the context of custom search criteria?

Not currently supported by the dataformfilter. But then again, the search value is determined by the field's get_search_value, which you can override in a specialized field type.


hth smile

If classes are at different times don't they constitute separate course instances of the same subject?

If that's the case then class grouping is in effect course enrollment and then you can use simple groups within a course. You can share subject resources between these courses by means of a meta course. Activities should probably be course specific as they are likely to have different start end times.

With such structure the auto group naming should not be a problem.

hth smile

By export from the database activity and import into a dataform activity. You will need to build the dataform structure from scratch as there is no migration script from a database to a dataform (at least no public script that I'm aware of).

You also need to export the user username (available in Moodle 2.6; not sure about earlier versions) so that importing into the Dataform could associate the imported entries with their original owners (Dataform 2.6 onward).

smile