Показать сообщение отдельно
Старый 23.04.2009, 21:10   #12  
ZVV is offline
ZVV
MCITP
MCP
Oracle
MCBMSS
 
1,006 / 246 (11) ++++++
Регистрация: 13.02.2004
Адрес: Минск
->
Цитата:
Сообщение от Dima_Dima Посмотреть сообщение
ProjInvoice --> DataSource --> Query --> DataSource --> ProjInvoiceJour

X++:
display AccountNum customerId()
{
    SMAserviceOrderTable        smaserviceordertableloc;
    SMAServiceOrderLine         smaserviceorderlineloc;
    Name                             _patID;
    ProjInvoiceEmpl             projinvoiceemplloc;
    ;


    select firstonly CustAccount, ServiceOrderId from smaserviceordertableloc
        exists join serviceOrderId from smaserviceorderlineloc
            where smaserviceordertableloc.serviceorderid        == smaserviceorderlineloc.ServiceOrderId &&
                     smaserviceordertableloc.AgreementId        == smaserviceorderlineloc.AgreementId
        exists join TransId    from projInvoiceEmplloc
            where projinvoiceemplloc.TransId                    == smaserviceorderlineloc.ProjTransId
        exists join ProjinvoiceID from projInvoiceJour
            where    projInvoiceEmplloc.ProjInvoiceId           == projInvoiceJour.ProjInvoiceId;
                     
             

    _patID   = smaserviceordertableloc.CustAccount;
    

    return _patID;
так тоже никакого эффекта...
А не попробовать ли вам добавить параметр в ваш дисплей-метод?
X++:
display AccountNum customerId(ProjInvoiceJour _projInvoiceJour)
и использовать его...
__________________
Zhirenkov Vitaly
За это сообщение автора поблагодарили: Dima_Dima (1).