What if there are two forms that need it?  I don't think that is a good
enough solution.

Ben

On Thu, Sep 15, 2011 at 8:42 PM, Daniel Kayiwa <[email protected]>wrote:

>
> Hi James,
>
> This is not implemented in the current version of the xforms module. But
> looks like something that i can quickly do.
> If i have two global properties:
>
> xforms.autoIncrementFormField (the name of the field to auto increment)
> xforms.nextAutoIncrementValue (the next available value for the auto
> increment field)
>
> Would that satisfy your requirement?
>
>
>
>
> On Thu, Sep 15, 2011 at 8:06 PM, James Arbaugh <[email protected]>wrote:
>
>> When designing an HTML form, or xForm, is there a way to pre-populate the
>> field in the form with the next consecutive number for that observation
>> type?  We’re evaluating entering our blood bank data into OpenMRS.  One of
>> the fields to be entered is the serial number for the bag of donated blood.
>> Every year the serial number starts over at 1.  The bags don’t have a serial
>> number printed on them, but it’s written on by hand.  In the current patient
>> registry it’s easy to look on the line above and see what the last serial
>> number was, and what to write on the bag.  In the patient form, it’s not so
>> easy anymore.  I suspect the clerks would have trouble keeping track of the
>> last serial number, and I would like the form to be able to do that for
>> them.  Since the serial number is not patient specific, I doubt the <lookup>
>> tag would work.  Is there perhaps a way to do this with JavaScript?  Any
>> suggestions for this complex problem.****
>>
>> ** **
>>
>> Thanks,****
>>
>> James Arbaugh****
>>
>> Hospital Albert Schweitzer Haiti****
>> ------------------------------
>> Click here to 
>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from
>>  OpenMRS Implementers' mailing list
>
>
>
>
> --
> If we keep uppermost in our minds the unkind and unjust acts of others, we
> shall find it impossible to love them as Christ has loved us; but if our
> thoughts dwell upon the wondrous love and pity of Christ for us, the same
> spirit will flow out to others.
>
> ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from
>  OpenMRS Implementers' mailing list
>

_________________________________________

To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-implement-l" in the  body 
(not the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

Reply via email to