I need a simple Lotus script which gives the forms a unique document id.
The doc id should look like this:
Country name + number e.g. England-1 or German-2 etc.
I made a Sequence Doc and it should contain the number (always the highest)
I tried to create it but I'm not as good as I thought.
This is what I wrote till now:
If doc.DocNo(0) = "" Then
Set view = db.GetView( "Sequence" )
Set seqdoc = view.GetDocumentByKey( )
If Not ( seqdoc Is Nothing ) Then
seqdoc.SequenceNo = seqdoc.SequenceNo(0)+1
Call seqdoc.save(True, False)
doc.DocNo = seqdoc.SequenceNo(0)
doc.FullDocNo = doc.CountryCodeFNumber(0) + "-" + Trim(Str(seqdoc.SequenceNo(0)))
Call doc.save(True, False)