Use this and you should be ok.

pjTable = ProdJournalTable_ds.getFirst(true) ?
            ProdJournalTable_ds.getFirst(true) :
            ProdJournalTable_ds.cursor();

Steeve...


-----Message d'origine-----
De�: kamchung322 [mailto:[EMAIL PROTECTED]
Envoy�: 10 septembre 2004 02:59
��: [EMAIL PROTECTED]
Objet�: [development-axapta] Re: Determine records selected in grid

It is work when the user select more than one row.  However, when
the user select only one row, it can't be returned the record. 
Anything I do wrong ? Following is the code :

ProdJournalTable     _pjTable;

_pjTable = ProdJournalTable_ds.getfirst(1);

ttsbegin;
while(_pjTable)
{

......
}


Regards.

Kenneth.

--- In [EMAIL PROTECTED], "bmp_thydatacenter_dk"
<[EMAIL PROTECTED]> wrote:
> You should use the methods FormDataSource.getFirst() and .getNext
().
>
> If you have a version with an updated cross reference, you can
find
> numerous examples in the standard application. One of them is:
\Data
> Dictionary\Tables\SalesParmTable\Methods\checkTransferToUpdate()
>
> Best regards,
> Bj�rn M�ller Pedersen
> Thy Data Center Development A/S
>
> --- In [EMAIL PROTECTED], "kamchung322"
> <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> > How to determine which records (rows) the user selected in
grid ?
> >
> > Regards.
> >
> > Kenneth.






Yahoo! Groups Links







Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to