|Which screen to show on startup and when phpLens is reset|
Usually we set firstState to VIEW or FILTER on startup. We set it to VIEW if we want to view the grid on startup. We set it to FILTER if we want a search screen to appear on startup.
If you want phpLens to create a new record on startup, set it to NEW.
If you want phpLens to edit a specific record on startup, use the URL:
where $id is the id you passed to phpLens and $primarykey is the primary key of the record that matches $lens->keyCol.
New to phpLens 2.4.2 is the EDITSAVE state. Set firstState = 'EDITSAVE' when we want to display an EDIT screen in firstState, but after we successfully save, we want switch to VIEW.
Also see curState.
$lens->firstState = "state";
where legal state values are: 'VIEW', 'FILTER', 'EDIT' or 'NEW'
Basic:Yes Advanced/Enterprise:Yes DynamicEdit:Yes [Version 1.0]