Newbies Thompson Posted September 1, 2004 Newbies Posted September 1, 2004 I have developed a database for our new employees to track their initial 3 years developmental assignments. The assignments are to be limited to 9. To track dates, I created 2 fields Layout.pdf Layout.pdf
transpower Posted September 1, 2004 Posted September 1, 2004 Sure. In Specify Calculation, Date_Out (which would be a repeating field with 8 instances) = Let ( [ R = Get ( CalculationRepetitionNumber ) ] ; Date_in[R+1] - 1 )
-Queue- Posted September 1, 2004 Posted September 1, 2004 Not so easy for version 5. Status(CurrentRepetitionNumber) doesn't work in field definitions, so another auto-entered 'index' field is necessary to track the repetition. And the GetRepetition bug makes this much more complicated. I wasn't able to make it work when I messed with it yesterday. Since you're trying to get the next level down instead of the current one, it doesn't seem to want to return anything. It would probably be much easier to either script this process or make it relational with a separate file, one record for each project.
Ugo DI LUCA Posted September 1, 2004 Posted September 1, 2004 Hum... Surely a relational solution would be better. In the meanwhile, following the first DateOut calc example, I can't see what's wrong with a calc repeating of type cDateOut = DateIn+1 ? Ooops...Got it now. Sorry !
-Queue- Posted September 1, 2004 Posted September 1, 2004 I couldn't get GetRepetition( DateIn, index + 1 ) & TextToDate("") + 1 to work yesterday. It's the date one level down that you want to use to determine the DateOut, not the date in the current repetition.
Ugo DI LUCA Posted September 1, 2004 Posted September 1, 2004 Got it. Did you say Status(CurrentRepetitionNumber) wasn't introduced with 5 ?
-Queue- Posted September 1, 2004 Posted September 1, 2004 Not for use in calculations. It only works in scripts.
Ugo DI LUCA Posted September 1, 2004 Posted September 1, 2004 You may grab it with another calc too...
transpower Posted September 1, 2004 Posted September 1, 2004 I upgraded from version 5 to version 7 specifically to take advantage of all the new features, as discussed; I'm never going back to version 5 or 6. I recommend that Thompson bite the bullet and upgrade.
Recommended Posts
This topic is 7457 days old. Please don't post here. Open a new topic instead.
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