Hello,
We implemented a script that generates a counter that incrementseach time people are created, the script calls the "DialogNextID" table, here is the body of the script:
Public Function CCC_GetNextIGAID As String
'Dim strIGAID As String = String.Empty
Dim Counter As String = "IGA_ID_COUNTER"
Dim MaxLen As Integer = 7
Dim strIGAID As String = String.Empty
Dim nextID As ISingleDbObject
nextID = Connection.CreateSingle ("DialogNextID")
nextID ("Ident_DialogNextID"). NewValue = Counter
strIGAID = String.Format ("{0}", VID_FillNumber (CLng (nextID.Custom.CallMethod ("GetNextID")), MaxLen))
Return strIGAID
'Dim nextID As Integer = CInt (globalID.CallFunction ("GetNextID"))
'strIGAID = String.Format ("{0}", (nextID), MaxLen)
Return strIGAID
End Function
The problem when I call the script in a template, the counter increments by 3 each time.
Would you be why the increment is not done by 1?
Thank's for your reply.
Monsif CHOUAY.