Class: cDbCJGrid
Class Hierarchy:
DFCOMACTIVEXCONTROL

cComActiveXControl


cCJReportControl



cCJGrid




cDbCJGridMixins:
server_mixin, verify_mixin,
Direct Known Subclasses:
cDbCJGridPromptList, Class Definition
Properties
Integer
Component_State
from nesting.pkg
Boolean
entry_refresh_State
required by dds
Integer
Has_Components_State
Integer
Ordering
initial ordering
Boolean
pbAutoRegenerate
if false it will never try to reorder your additions
Boolean
pbPromptListBehavior
determines behavior of various grid vs prompt list
Boolean
pbStaticData
if true, load all data at once and it is static
Boolean
pbUnOrdered
tracks if new records might have made the list out of order
Integer
peRequestFindMode
determines how request_find behaves
Functions and Procedures
Integer
Add_Focus(Handle hoParent)

BindDataSource()
use this to set any special properties in the datasource that might be
needed for this particular grid and data source. With db grids we need to
update the Server, Main_file and Ordering

ChangeOrdering(Integer iOrdering Boolean bDescending)
Integer
Checkbox_item_State(Integer iItem)
required DD/DEO interface

Construct_Object()

Copy_Item_Options(Integer iDSO Integer iFile Integer iField Integer iDEO Integer iItem)
required DD/DEO interface
Handle
CreateContextMenu()
default context menu for db grids
Handle
CreateDataSource()
called by constructor
Integer
Data_Field(Integer iItem)
required DD/DEO interface
Integer
Data_File(Integer iItem)
required DD/DEO interface
String
Data_Value(Integer iItem)
required DD/DEO interface

DataLoadAdjustOnAddFocus()
Integer
DDRefreshTableStatus(Integer iTable)
returns the table's status for the refresh event. A table can either be
cleared, found or not touched by the operation. This can only be called while
within Refresh. This was created to hide the private is_file_included command
Boolean
DEO_Control_Object()
required DD/DEO interface
Boolean
Deo_Find_Object()
required DD/DEO interface
Boolean
DEO_Object()
required DD/DEO interface
Handle
DEOColumnObject(Integer iColumn)
returns object for column. If the column object is not a DEO it returns 0

Entry_update(Integer iFile Integer iDoAll)
required DD/DEO interface
sent by DD before a find and save. We only care about DD finds which
means DoAll is 1
Integer
Exiting(Handle hoDestination)
augment to refresh the grid if it is unordered after a save. Generally upon
exit we want to grid refreshed else OnIdle may do this when the grid does not have
the focus which can change other DEOs that rely on this grid.
Integer
Extended_deo_State()
required DD/DEO interface

File_Field_Label_Changed(Integer iFile Integer iField Boolean bLong String sLabel)
required DD/DEO interface

File_Field_mask_Changed(Integer iFile Integer iField String sMask)
required DD/DEO interface

File_Field_Option_Changed(integer iFile integer iField integer iOptions integer bClear)
required DD/DEO interface
sent by DD whenever DD option has changed.

File_Field_Value_Changed(Integer iFile Integer iField String sValue Integer iChangeDisabled)
required DD/DEO interface
sent by DD whenever DD value has changed.

Find_First()
required DD/DEO Find interface

Find_GE()
required DD/DEO Find interface

Find_Last()
required DD/DEO Find interface

Find_Next()
required DD/DEO Find interface

Find_Previous()
required DD/DEO Find interface

HeaderReorder(Integer iCol)
String
Item_Field_Property(Integer iMsg Integer iItem)
required DD/DEO interface
Integer
Item_Noput(Integer iItem)
required DD/DEO interface
Handle
ItemToDEOColumnObject(Integer iItem)
Integer
LoadByMatchingRow(RowID riID Boolean bResetCache)
Load grid based on rowId. If bResetCache the cache is cleared so the
search always refreshed. If false, it tries to find the ID in the existing
datasource first.

OnIdle()
Handle
prototype_object()
required DD/DEO interface

Refresh(Integer eMode)
required DD/DEO interface
sent by DD when there is a clear/find/save/delete

RefreshDataFromDD(Integer iOffset)
Refreshes grid around the DD record. You'd use this if you've got a newly empty activated grid or a
deferred grid
This always refreshes the cache

RefreshDataFromExternal(Integer iOffset)
Refreshes grid around the current file buffer
This always refreshes the cache

RefreshDataFromMatchingRow(RowID riID Integer iOffset)
Refreshes grid around this row id. Allows you to refresh a grid around record.
This always refreshes the cache

RefreshDataFromSelectedRow()
Refreshes grid around selected row id
Integer
RelatingField(Integer iRelatedFile)
Attempt to find the field from the server's MainFile that relates to iRelatedFile

ReorderGridByColumn(Handle hoCol Boolean bDescending)

Request_Cancel()

Request_Clear_All()

Request_Find(Integer eFindMode Integer bEntUpdt)
required DD/DEO Find interface

Request_Save_No_Clear()
A grid save *is* a no-clear save so you don't really need to use this. However this message is supported in DEO controls
and we want it to work if this is sent from a hot-key, menu or toolbar item.

RequestColumnFind(Integer iCol Integer eFindMode Integer bEntUpdt)

RequestColumnLookup(Integer iCol)
does a find for the passed column by first looking down and, if no find, then looking up
This is used when you are doing lookup/searches

RequestColumnSearch(Handle hoCol Integer iKeyCode Integer iKeyShift)
do a popup search request for the passed column. The keys can provide a
seed value - they come from OnComKeyDown. Augmented to do a file find with
DB grids

Set(Integer newVal)
this procedure **replaces** set Changed_state from the server mixin. We are not going to set
the watched server's (parent DDs) to changed_state. This is not needed and is heavy handed because
this sets all watched servers and not the single column that triggered the change. We probably don't
need to set watched servers in the grids. We are setting the main server's DD to changed and that is enough

update_dependent_items()
required DD/DEO interface

Update_focus_field()
required DD/DEO interface
sent by DD to commit the focused value
Integer
Validate_Items(Boolean bNotFindReq)
required DD/DEO interface
Instances
oVersionInfoGrid | CheckForCrystal.dg | 420 |
References (2):