Hi Jack,

it is easier for you to add a int field to you InventTable table....
modify the insert method of the table and select the maximum value 
off that field and increase it by one then assign it to the record 
that going to be inserted. Or you can use number sequence :D. 


Regards,



Kris


--- In development-axapta@yahoogroups.com, Koh Meng Chiat 
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
>    
>   I want to add running number (i.e. 1,2,3,4,5,6...) into the 
Inventtable form and have written the following display method;
>    
>   display int number()
> {
>     number++;
>     return number;
>   }
>    
>   Just wonder why the results turn out to be 0 all the way? It 
works perfectly fine in the report but not the form. 
>    
>   Really appreciate your suggestion.  Thank you.
>    
>   Best Regards,
>    
>   Jack
> 
>        
> ---------------------------------
> Boardwalk for $500? In 2007? Ha! 
> Play Monopoly Here and Now (it's updated for today's economy) at 
Yahoo! Games.
> 
> [Non-text portions of this message have been removed]
>


Reply via email to