Feature in ODK Collect

Hello,

How to implement an auto increment number when saving a new instance of
a form ?

I found the piece of code that manages the instance name but I can't
insert an auto incremented number in this code. (FormEntryActivity.java)

Thanks in advance.


Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. FICAP decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
··· ___ This message and any attachments (the "message") are confidential, intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. FICAP shall not be liable for the message if altered, changed or falsified.

if you are using collect 1.1.7, there should be an id generated in the
db for each instance. maybe use that?

··· On Wed, Jul 13, 2011 at 08:40, benoist Lambert wrote: > Hello, > > > > How to implement an auto increment number when saving a new instance of a > form ? > > I found the piece of code that manages the instance name but I can't insert > an auto incremented number in this code. (FormEntryActivity.java) > > > > Thanks in advance. > > > > ________________________________ > Ce message et toutes les pieces jointes (ci-apres le "message") sont > confidentiels. Ce message est etabli a l'intention exclusive de ses > destinataires. Toute utilisation ou diffusion non autorisee est interdite. > Tout message electronique est susceptible d'alteration. FICAP decline toute > responsabilite au titre de ce message s'il a ete altere, deforme ou > falsifie. > ___ > This message and any attachments (the "message") are confidential, intended > solely for the addressee(s). Any unauthorised use or dissemination is > prohibited. E-mails are susceptible to alteration. FICAP shall not be liable > for the message if altered, changed or > falsified. > ________________________________ >