Display multiple records in one line in formula
I'm looking for a way to show different lines from one table as formula on an other table (in a single field).
So, I have a table InventLocation, where the display field (formula) needs to be added.
A subtable contains following fields:
  - reference to InventLocation
  - reference to VendTable (from which I use the Abbreviation column)
  - Reference (just a text field)
I added the formula field as follows: InventReference.VendTable.Abbreviation + " " + InventReference.Reference
Data in the InventReference (for one selected InventLocation) is
  - AA, 111
  - BB, 222
  - CC, 333
Result of formula:  "AABBCC 112233"
Where I would like to see  "AA 111 - BB 222 - CC 333"
So the grouping of the different values is wrong. I guess I have to make some kind of loop ?
Can someone help me out ?
12 replies
- 
  Does this work in your situation? : join(InventReference.VendTable.Abbreviation + " " + InventReference.Reference," ") Didn't try myself (lack of time) Steven 
- 
  Thanks for the reply, but it seems like function "join" does not exist? 
- 
  Are you trying to do something like this?? 
- 
  (oops.. ) Are you trying to do something like this??  
- 
  Yes, indeed. The result should be something like "Child 1 = 2, Child 2 = 2" I left out the "This is Parent Record - " piece of the sting for readability 
 Behind the =-sign is the number of attachments valueSo a combination of 2 fields from a signle record, and each record separated by a , or ; or whatever :-) 
- 
  I've found a workaround myself. Created a formula field (called DisplayVendReferenceFull) on the child table: VendTable.Abbreviation + " " + Reference 
 Then added a formula field on the parent table: concat(InventReference.DisplayVendReferenceFull)It works, but I'm still interested in a single formula if that would be possible :) 
- 
  I have something similar (if I understand you correctly)... Master table > Subtable  If this is what you want, the code for the above formula is: --- join(Subtable.("Date: " + Date + " 
 Text: " + Text + "
 Amount: " + Amount), "") --- I hope it helps 
- 
  or ---join(Subtable.(Date + " - " + Text + " - " + Amount), " 
 ")---  
- 
  pffff! join(Subtable.(Date + " - " + Text + " - " + Amount), " 
 ")
- 
  Thanks, that's exactly what I wanted to achieve!! 
- 
  Hi.  I am looking for a similar solution but for use in a Table. Code sworks fine in a multi line field but not in a table. I would like to show product pack sizes underneath each other or atleast make it easier to read without having to go into link first. 
- 
  Create a new column showing only the name: –––first(split('Product Full Name', " ("))–––Birger 
Content aside
- 5 yrs agoLast active
- 12Replies
- 3306Views




