![]() |
#7 |
Участник
|
перебирай все колонки и ищи с нужным именем. примерно вот так:
X++: // returns the batch caption form control if any in the dialog private FormStringControl getBatchCaptionControl(DialogRunbase _dialog) { FormStringControl batchCaptionControl; // recursive routine to look for the right form control of BatchCaption EDT Object findBatchCaptionControl(Object _parentObject) { int i; Object childControl; Object foundControl; for (i = 1; i <= _parentObject.controlCount(); i++) { childControl = _parentObject.controlNum( i ); // this is our boy if( childControl is FormStringControl && childControl.extendedDataType() == extendedTypeNum(BatchCaption)) { // time to get up return childControl; } else { if (childControl is FormGroupControl) { foundControl = findBatchCaptionControl(childControl); if (foundControl) { return foundControl; } } } } // just step back to check others return null; } /////// main routine ///////////////////////////////////////////////////////////// if( _dialog && _dialog.batchDialogTabPage()) { batchCaptionControl = findBatchCaptionControl(_dialog.batchDialogTabPage().control()); } return batchCaptionControl; }
__________________
Felix nihil admirari |
|
|
За это сообщение автора поблагодарили: yuriy_64 (1). |
Теги |
grid, колонки, переименовать |
|
|