hubabubaa Posted July 19, 2005 Posted July 19, 2005 i need to make a numbering system that includes the year count. the example is nr 05-001, 05-002, 05-003 etc.. 05 is the current year, it has to be kept up to end of 2005. 001 is a consecutive number, goes up with every new entry, till the end of the year. then on 1 january 2006 it has to star from the beginning and become 06-001. anyone idea how to do it? thanx a lot!
RalphL Posted July 19, 2005 Posted July 19, 2005 Look at the FMI TeckInfo Knowledge Base. Here aer some items that may help: 104599 104601 104385 104336 103588
hubabubaa Posted July 21, 2005 Author Posted July 21, 2005 hi, i checked your example, but it does not work.i have FM 7. the problem is that the number stays 05-001 all the time, does not increase at all. do you know where the problem could be? huba
hubabubaa Posted July 21, 2005 Author Posted July 21, 2005 i am quite new to FM. so my question is: where can i find the FMI TeckInfo Knowledge Base? huba
SlimJim Posted July 21, 2005 Posted July 21, 2005 (edited) (With regard to Queue's example) I assume you allowed FMP7 to convert from the original .fp5 files. I think the problems lies in the interpretation of the self-join (I can't look at the fp5 file but I'm sure that is how it is done). You need to change the definition of the Incrementor Auto-Enter from GetField("PseudoSerial::PseudoSerial") + 1 to GetField("PseudoSerial 2::PseudoSerial") + 1 PseudoSerial 2 is the name that FMP7 gives the second Table Occurrence of PseudoSerial on conversion. Edited July 21, 2005 by Guest To specify which post I was replaying to.
hubabubaa Posted July 21, 2005 Author Posted July 21, 2005 I thought i got it right, but... it seems to work when i put it all in my base, but only for the first two records. i get thus 05-001, then properly 05-002. but all the following record stays on 05-002. any idea where i made mistake? h.
RalphL Posted July 21, 2005 Posted July 21, 2005 Are these new records? Do you have Incrementer set as Number, Auto enter Calculation, Evaluate always? Do you have PseudoSerial set as Text, Auto enter Calcaulation, Can't modify? Both auto enter calcaulations should be set to Not replace existing value.
SlimJim Posted July 21, 2005 Posted July 21, 2005 In addition to the checks suggested by RalphL verify that in the relationship defined between PseudoSerial and PseudoSerial 2 the records in PseudoSerial 2 are sorted in descending order by Incrementor. Your symptoms suggest that that sort order is incorrect.
-Queue- Posted July 21, 2005 Posted July 21, 2005 Oy vey! It would have helped if you had listed your version number. Sorry for the confusion anyway. Attached is the converted solution. All I had to do was change the GetField definition after conversion. I am not sure what your problem is. PseudoSerial.zip
hubabubaa Posted July 26, 2005 Author Posted July 26, 2005 hey guys (i assume), thank you for your help , i am there already! huba
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now