June 26, 200619 yr I am trying to create a calculation that gets all field values of a related record and combines them into a single field with a carriage return after each one. I have tried to use the "GetNthRecord" function to achieve the desired result but I have to string a bunch of them together to get it to work. GetNthRecord ( ASSIGNED_MENUS::MenuID ; 1 ) & "¶" & GetNthRecord ( ASSIGNED_MENUS::MenuID ; 2 ) & "¶" & GetNthRecord ( ASSIGNED_MENUS::MenuID ; 3 ) I am sure that this is not how I should be doing it. Is there a single function that can do this?
June 26, 200619 yr Hi, HALBURN! Create condition value list by your relation, then use ValueListItems() function. I think must work.
June 26, 200619 yr Author I must be doing something wrong. I can not get the value list to show only the related values.
June 26, 200619 yr Author Here is a test file that I have created to illustrate the trouble that I am having with trying to get a related value list to work properly.
June 26, 200619 yr Pulling related data into an unstored calculation field by using a custom function: Custom Function: Concatenate Parameters: field, start, number Function Calc: Case(start < number; getNthRecord(field; start)&" "&concatenate(field; start + 1; number); start = number; getNthRecord(field; start) ) All you would need to do is call the function in your unstored calculation field.
June 27, 200619 yr Author Thanks Brian, that worked great and I learned how to make a custom function. I feel so Abby Normal :)
Create an account or sign in to comment