Class SY_GridDualMaint

Inherits

SY_GridHandler

Properties

LOCAL cDualGrid=isFALSE  
LOCAL cDualGridEntry  
LOCAL cGridDefMaint  
LOCAL cGridViewExpanded=isFALSE  

[boolean] value denoting whether the view has been expanded

LOCAL cGridViewPanelExpandBitmap$="{!Collapse}"  

[string] variable that contains the bitmap to display on the Change View button when the view is expanded

LOCAL cGridViewPanelNormalBitmap$="{!Expand}"  

[string] variable that contains the bitmap to display on the Change View button when the view is normal

LOCAL cSkipLoadAndFocusOnColumnMove=isTRUE  

[boolean] Flag if set will skip the Loading of the grid and putting focus on last control, when MoveColumnToPrimaryGrid() is called. This is will default to TRUE to maintain backward compatibility.

PROPERTY MainGridCtl  
PROPERTY SecGridCtl  
PROPERTY G2IOL$  

Methods

FUNCTION LOCAL BadInput(gridCtl, msg$)  

Logic used by grid change logic to process simple validation failures

ParameterDescription
gridCtl [input,numeric] control value of grid
msg$ [input,string] 1=message numeric validation failure
Returns [boolean] Failure, always return failure
FUNCTION LOCAL ClassChangeAddlGrid(gridCtl)  

Function gets executed whenever values in the secondary grid change (those grids with a class of ADDLGRID). This function will translate the grid event into an individual column event and call ChangeColumn(x) or DefaultChange() function call.

ParameterDescription
gridCtl [input, numeric] Nomads control Id for the grid that is marked with the class of ADDLGRID
Returns retSUCCESS(1) if grid change was successful, retFAILURE(0) if grid change was not successful
FUNCTION LOCAL ClassDragAddlGridClassDropAddlGrid$(g1$, g2$)  
FUNCTION LOCAL ClassDragAddlGridClassDropGrid$(g1$, g2$)  
FUNCTION LOCAL ClassDragGridClassDropAddlGrid$(g1$, g2$)  
FUNCTION LOCAL ClassDragGridClassDropGrid$(g1$, g2$)  
FUNCTION LOCAL ClassOnFocusAddlGrid(gridCtl)  
FUNCTION LOCAL ClassPushExpand(btnCtl)  

Expand logic to be executed for buttons with a class of EXPAND. This logic will switch the view of the dMain dialogue to dMainW or vice versa depending on the dialogue being used. This uses the Providex ALTERNATE_PANEL$ and ALTERNATE_PANEL_TYPE$ variables. In addition this logic will rename any grid validater/formatter logic as the panel is part of the key in that table. This function relies on local variables cGridViewPanelExpandBitmap$, cGridViewPanelNormalBitmap$, cGridViewExpanded

ParameterDescription
btnCtl [input, numeric] Nomads control value of the button with the class of EXPAND
Returns Always returns retSUCCESS(1)
FUNCTION LOCAL DropColumn(gridCtl, column$)  
FUNCTION LOCAL FireSecondaryGridFormatters()  
FUNCTION LOCAL GetGridIOLIST$(gridCtl)  
FUNCTION LOCAL GetRowForColumn(column$)  
FUNCTION LOCAL GotoSecondaryGrid(column$)  
FUNCTION LOCAL HideColumn(gridCtl, column$)  
FUNCTION LOCAL IsColumnMoveable(gridCtl)  
FUNCTION LOCAL MoveColumnToPrimaryGrid(row, insertPt)  
FUNCTION LOCAL MoveColumnToSecondaryGrid(column$, insertPt)  
FUNCTION LOCAL MoveColumnToSecondaryGrid(column, insertPt)  
FUNCTION LOCAL MoveSecondaryRow(column, insertPt)  
FUNCTION LOCAL PaintAddlCell()  
FUNCTION LOCAL PostResize()  

Function gets called when the screen is resized. This will save off the grid sizes.

Returns Always returns retSUCCESS(1)
FUNCTION LOCAL SetColumnState(gridCtl, col$, action, rowNo)  
FUNCTION LOCAL SetStartingRow(gridCtl)  

Sets the starting row as the last row in the grid.

ParameterDescription
gridCtl [input, numeric] NOMADs control value for the grid
Returns Always returns retSUCCESS(1)
FUNCTION LOCAL SetupDragAndDrop(grid1, grid2)  
FUNCTION LOCAL SetupGrid(mainGrid, form$, grid$, mntOpt, secGrid)  
FUNCTION LOCAL SetupGrid(mainGrid, form$, grid$, mntOpt, secGrid, startKey$)  
FUNCTION LOCAL ShowColumn(gridCtl, column$)  
FUNCTION LOCAL ShowRow(gridCtl, rowNo)  

Properties inherited from: SY_GridHandler

cAutoCompCellTypes$, cCentreCellTypes$, cEnterLikeTab$, cGridDefaultRowHeight, cLookupCellTypes$, cSearchDialogueCreated, cGridRowHeightPlus, cWdxGridLoadLimit, cExcelInstalled, cAllUsers$, cAllComps$, cAllWrks$, cOpenedNOMADSGridTable, cLocalGridVariablesSet, GridIOL$

Methods inherited from: SY_GridHandler

AddColumn(), ClassChangeGrid(), ClassInitializeGrid(), ClassOnFocusGrid(), ClearGrid(), DisableGrid(), DropColumn(), DropRow(), EnableGrid(), ExportToExcel(), FindColumnHeader(), FreezeColumn(), GetALEColumnInfo(), GetColumnAttributes(), GetGridIndex(), GetGridIOLIST$(), GotoCell(), GotoColumn(), GotoRow(), HideColumn(), InitializeRow(), InsertRow(), IsColumnHideAble(), IsColumnInGrid(), IsColumnMoveAble(), LoadGrid(), LoadRow(), LockGrid(), OnExitWithGrid(), ParseQuickString(), RefreshGridBindings(), RemoveGridFocus(), SaveGridSettings(), SaveRow(), SetColumnAttributes(), SetColumnAttributesHeadersMain(), SetColumnAttributesHeadersSec(), SetGridPresets(), SetupGrid(), ShowColumn(), ShowColumns(), ShowRow(), AddGroups(), AdjustNomadsInfo(), BT_RowDel(), BT_RowDown(), BT_RowIns(), BT_RowSearch(), BT_RowUp(), ChangeML_GotoLine(), ClearNomadsInfo(), CloneNomadsInfo(), CloseSearchWindow(), DoColumnChange(), DoSave(), PERFORM DoSearch(), FindNextCell(), FormatDate$(), FormatRow(), GetRowLockState(), GetWdwForCtl(), HasRowChanged(), IsColumnHidden(), IsCtlGrid(), OpenSearchWindow(), PERFORM PaintCell(), ParseIOList$(), ParseRowTag$(), PopulateGridBindings(), PutTick(), RemoveGridCustomization(), RemoveNomadsInfo(), ResetSecInitPropLists(), PERFORM ResolveFormatters(), ResolveGroups(), RestoreGridAutoComplete(), RestoreNomadsInfo(), ReturnToField(), SetButtonState(), SetButtonStateFirstRow(), SetButtonStateInsertRow(), SetButtonStateLastRow(), SetButtonStateNoRow(), SetButtonStateOtherRow(), SetColumnGroupState(), SetColumnState(), SetGridAutoComplete(), PERFORM SetGridHeaders(), PERFORM SetGridIOLISTS(), SetGridSecurity(), SetGridSize(), SetLocalGridVariables(), SetPopupStatus(), SetRowLockState(), SetRowState(), SetupNomadsInfo(), ShowSearchResult(), TestAutoCompleteObj()