this is to create a tracking number of the document in lotus notes. when the user save the document it will automatically create a tracking number for the document with this format:
XXX-YY-MM-DD
where
XXXXX - counter, # of documents saved (ex. 00001)
YY - current year the doc is saved
MM - month
DD - day
the counter will reset back to 001 every 1st day of the month.
can it be done?
this is currently my formula for the counter:
Counter1 := @Elements(@DbColumn("":"ReCache"; "":"" ; "($CounterLookup2)"; 2)) + 1;
@If(Counter1 < 10; FIELD Counter := "0000" + @Text(Counter1) ;
Counter1 < 100; FIELD Counter := "000" + @Text(Counter1) ;
Counter1 < 1000; FIELD Counter := "0" + @Text(Counter1) ; NIL)
and this is my formula for the complete tracking number:
@If((@Text(@Month(Dt_Received_EA))) = "1"; Mnth := "01"; (@Text(@Month(Dt_Received_EA))) = "2"; Mnth := "02";
(@Text(@Month(Dt_Received_EA))) = "3"; Mnth := "03"; (@Text(@Month(Dt_Received_EA))) = "4"; Mnth := "04";
(@Text(@Month(Dt_Received_EA))) = "5"; Mnth := "05"; (@Text(@Month(Dt_Received_EA))) = "6"; Mnth := "06";
(@Text(@Month(Dt_Received_EA))) = "7"; Mnth := "07"; (@Text(@Month(Dt_Received_EA))) = "8"; Mnth := "08";
(@Text(@Month(Dt_Received_EA))) = "9"; Mnth := "09"; (@Text(@Month(Dt_Received_EA))) = "10"; Mnth := "10";
(@Text(@Month(Dt_Received_EA))) = "11"; Mnth := "11"; (@Text(@Month(Dt_Received_EA))) = "12"; Mnth := "12";NIL);
Yr := @Text(@Year(Dt_Received_EA));
Count := @Text(Counter);
FIELD SIR_TrNo_EA := Count + "-" + Mnth + "-" + @Right(Yr;2) ;
im currently using lotus domino designer 7.
your help is badly needed..
thanks a lot!
;)
Software/Hardware used:
ASKED:
August 20, 2008 1:47 AM
UPDATED:
May 11, 2012 12:41 PM
i need to create my own tack number tell you how to create it