To implement dynamic index switchingIf an overview session's standard command set has the Sort by option selected, users can select different indices by which the records in the grid are sorted. The user selects an index from the View menu's Sort by submenu. When a user selects a new index, the view fields above an overview session's grid do not change, and the field order in the grid does not change. Dynamic index switching allows you to configure session indices, so that when a user selects a new index from the Sort by submenu, the view fields above the grid can change, and the field order in the grid can change. You can only implement dynamic index switching for sessions whose standard command set includes the Sort by option in the Form Option Sets (ttadv3120s000) session. To implement dynamic index switching for an overview session:
Select dynamic index switching options You can start the Sessions (ttadv2100s000) details session via the Sessions (ttadv2500m000) overview session.
You can select the Show name of index check box, so that the current index displays in the overview session's title bar. Hinweis You can only select the radio buttons if your session is integrated. For non-integrated sessions, you must use the predefined "dynamic.index.switching" variable in the before.program section of the session's program script:
Specify index and view field settings To start the Available Indices by Session (ttadv2101s000) session, click Indices on the Specific menu in the Sessions (ttadv2500m000) session.
The index part values are listed in the Index Parts box of the Table Indices (ttadv4121s000) details session. To start this session, double-click your session's table in the Table Definitions (ttadv4520m000) session, and subsequently select the Indices tab. Double-click an index to view the index's parts. Beispiel An index consists of the following index parts:
If you select 2 in the index's View field, in the Available Indices by Session (ttadv2101s000) session, the item code, and weight fields display as view fields above the grid. Height, length, and width make up the first columns of the grid. Hinweis If a field has the View check box on the Properties tab of the Dynamic Form Editor 's Field Properties dialog box selected, the field is always shown as a view field in the overview session regardless of your Dynamic Index Switching settings. If you want a field to be excluded as a view field for certain indices, you must clear the View check box for that field on the Properties tab of the Dynamic Form Editor 's Fields Properties dialog box.
| |||