Показать сообщение отдельно
Старый 03.06.2004, 10:37   #2  
George Nordic is offline
George Nordic
Модератор
Аватар для George Nordic
Злыдни
 
4,480 / 1255 (50) ++++++++
Регистрация: 17.12.2003
Адрес: Moscow
Записей в блоге: 9
1) По идее, должна и так позиционироваться
1.1) http://www.axforum.info/forums/showt...0&pagenumber=2 - в этом примере так и происходит
1.2) Объяви переменную типа EmplTable
в inite:
PHP код:
{
MyTable myTable;
.....
;
if (
element.args().dataset() == tablenum(EmplTable))
    {
        emplTable element.args().record();
    }
//по данной запись ищем соответствующую ей в MyTable:
     
select myTable
           where 
....

super();

myTable_ds.findRecord(myTable);

2) Используйте display методы - они не просто так придуманы (а так же их кэширование )
2.1) Напишите на RPayTrans динамический метод
PHP код:
display Name emplName()
{
EmplTable     emplTable;
;
select firstfast firstonly Name
    from  emplTable
    where emplTable
.EmplId == this.EmplId;

return 
emplTable.Name;

2.2) можно написать статический метод на EmplTable
PHP код:
static Name getEmplName(EmplId _emplId)
{
EmplTable     emplTable;
;
select firstfast firstonly Name
    from  emplTable
    where emplTable
.EmplId == _emplId;

return 
emplTable.Name;