November 18, 200520 yr I don't understand how to define a calculated repeating field. Just to test, I have a calculated (text) field with two repetitions. Right now I'm trying to put text into the repetitions with this calculation: Case(Get(CalculationRepetitionNumber);"V1";"V2") I was thinking that V1 and V2 would show up in the repetitions, but only V1 does. So I'm not understanding something simple. What am I doing wrong? Eventually I'll use Let to define V1 and V2 by calculation.
November 18, 200520 yr You are testing if Get (CalculationRepetitionNumber) is true or false. The first repetition number is 1, the second is 2. Therefore your test is always true.
November 19, 200520 yr Author Yes, of course you are right! I left out the condition. So if I use this: Case(Get(CalculationRepetitionNumber)=1;"V1";"V2") or this: Choose(Get(CalculationRepetitionNumber)-1;"V1";"V2") I only get the value into the first repetition. What am I misunderstanding, and how do I need to structure the calculation to put results into both repetitions. Thanks!
November 19, 200520 yr Both formulae above should work - so there must be something else that you're not telling us.
November 19, 200520 yr The real question is why you are using a repeating field. For the most part they just create a lot of problems and a real relational structure should be used.
November 19, 200520 yr Author Yes, they do now. I'm not sure what was wrong before. Thanks for the help.
November 19, 200520 yr Author I'm trying to learn how they work for calculation purposes, not for data storage. I'd like to explore, for example, the potential for using a repeating field for the columns in a crosstab type report that I need to create. But with a well normalized data structure (which I don't have yet), there may be better ways. I'd welcome comments on when and where repeating my best be employed.
November 19, 200520 yr ... why you are using a repeating field. For the most part they just create a lot of problems and a real relational structure should be used. James, statements such as the above have stopped many from using repeating fields AT ALL. And true, when used for data they can be problematic and we feel an obligation to make that clear (as Bruce did). But I find it sad that these very statements also dissuade many from learning them for developement use (such as calculations). There is a great distinction between the two uses. Repeating fields are a tool which offer incredible power and flexibility to a Developer. And, as a tool, they are neither good or bad; it's how (and when) they are used that matters. You GO for it. You will be a better Developer if they are in your toolkit. They are INCREDIBLE for cross-tab and column report functionality also!! LaRetta
November 20, 200520 yr Author Thanks for the encouragement, LaRetta! If I could find some examples of how repeating fields can be creatively and properly deployed, I'd like to study them. That way I might ask fewer questions. : I appreciate the help.
November 20, 200520 yr I have only recently (within last year) removed the Repeating Field blinders myself. I suggest you do a search for them here on Forums; particularly posts by Comment, Ugo or JT. There are some great demos out there. Most calendaring solutions use them as well. Here is one such example of repeating field power: Date Style Multiline . My need was cross-tab functionality of date periods that could change dynamically. It's a terribly powerful concept.
November 20, 200520 yr Here's an example of a repeating calc for displaying a progress bar: http://fmforums.com/forum/showtopic.php?tid/137110
November 20, 200520 yr Perhaps this might give you some ideas: http://fmforums.com/forum/showtopic.php?tid/137788/
November 21, 200520 yr Author YIKES! I must admit that this is well beyond my ability to understand--for now. : But I believe that I can sort it out with a little study. And it does sound quite powerful and flexible. I don't recall seeing a sample file but would surely like to. Was there one there that I missed? Thanks for pointing me to this!
November 21, 200520 yr Author Yes, it does give me some ideas, as does the link posted by Ender. I'm grateful for all the help and suggestions!
November 21, 200520 yr Author They are INCREDIBLE for cross-tab and column report functionality also!! Moved reply that was here to a new topic here as I was getting off track. : Edited November 23, 200520 yr by Guest Start new topic
Create an account or sign in to comment