Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

Generate a "next" number 06.08.2012 17:04

Is it possible to generate a sequential number field ie 1000,1001,1002

Re: Generate a 'next' number 07.08.2012 09:10

Hello,
in order to get an automatic counter, you could use a database query at code section, for example counting the stats rows:


SELECT count(distinct idrequest) FROM #__calcbuilder_stats;

To execute a query you can check the joomla docs to find the right code and some examples:

http://docs.joomla.org/Accessing_the_database_using_JDatabase


Hope this helps,
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback