Property Reference > Quick Reference for All Properties > MainViewName Property |
C1Query.MainViewName = string
Notes
Read/Write at run time and design time. Property applies to C1Query control.
Description
This property sets/returns the main view name identifying the currently active viewset (sub-schema) in a multi-viewset schema. A multi-viewset schema is a schema consisting of multiple sets of views independent of each other. Views belonging to different viewsets cannot be joined together in a single SQL statement. Only fields belonging to the active viewset will be shown to the end user in the associated C1QueryFrame controls.
Set the MainViewName property when you need to switch from one viewset to another.
See Also
MainViewCount property
MainViewNames property
Modifying Schema and Field List at Run Time