Thank you Tobias. It is so easy....when you know what to do :) Thank
you for your help.

--- In [email protected], "Andrae, Tobias"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> only one little modification:
>
>
> NumberSeq seq;
> Sagsnummer nr;
> FormStringControl felt2;
> seq = NumberSeq::newGetNum(NumberSequenceReference::find
> (TypeId2extendedTypeId(typeid(Sagsnummer))));
> nr = seq.num();
> felt2 = element.control(control::HelloWorld_nummer);
> //felt2.text(""+nr);
> yourDataSource.SagsNummer = nr;
>
> hth Tobias
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Thomas [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 21. Juli 2005 12:08
> An: [email protected]
> Betreff: [development-axapta] Adding autonumbering to Grid control
>
> Hello,
> I have created a method that extracts a number from a
numbersequence.
> I have a Grid control on my form and the grid has a datasource. I
have
> made a create method (event catch) on the table. How do I insert
the
> number from the numbersequence automatically when ctrl+n is
pressed. I
> tried with the following code but that does not work:
>
> NumberSeq seq;
> Sagsnummer nr;
> FormStringControl felt2;
> seq = NumberSeq::newGetNum(NumberSequenceReference::find
> (TypeId2extendedTypeId(typeid(Sagsnummer))));
> nr = seq.num();
> felt2 = element.control(control::HelloWorld_nummer);
> felt2.text(""+nr);
>
>
>
>
>
>

> Yahoo! Groups Links






YAHOO! GROUPS LINKS




Reply via email to