Показать сообщение отдельно
Старый 28.06.2006, 17:38   #5  
RVS is offline
RVS
Сенбернар
Аватар для RVS
Злыдни
 
696 / 130 (6) +++++
Регистрация: 27.02.2003
Адрес: Королев МО
Access to forms cache
To access the forms record cache in a grid control from X++ code use these form data source methods:

int mark( [int mark] )
Set or get the mark flag on the current record.

This flag can be used in the other methods, and a value other than 0 will result in the record showing up as marked in grids.

int markRecord(record r, [int Mark])
Set or get the mark flag on the specified record.

This method can be used if the record has been found using a select or method call outside the form, and the cache will be searched for the record (on RecId match), and the mark value will be set/returned.

record getFirst([int Mark = 0], [boolean fetchahead = TRUE])
Return the first record with the specified mark value.

The fetchAhead parameter can be used to specify if only the cached records should be looked at (fetchAhead=FALSE), or if the cache should be expanded, and all records looked at.

record getNext()
Uses a previous getFirst, and returns the next record matching the specified mark value.