![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to concatenate the values in several portal rows into a single row and export the single row. Not only that, I need to place a particular delimiter (a colon) between the various rows' values when they go into the single row. Something like this: field: [portal row 1] [portal row 2] [portal row 3] ... becomes: field: [portal row value1]:[portal row value2]:[portal row value3] This one has had me stumped. thanks in advance |
#3
| |||
| |||
|
|
FastWolf wrote: I need to concatenate the values in several portal rows into a single row and export the single row. Not only that, I need to place a particular delimiter (a colon) between the various rows' values when they go into the single row. Something like this: field: [portal row 1] [portal row 2] [portal row 3] ... becomes: field: [portal row value1]:[portal row value2]:[portal row value3] This one has had me stumped. thanks in advance If you wanted to parse multiple fields from a singel portal row, something like this: set $$_ROW = RelA_F1 & ":" & RelA_F2 &":" & RelA_F3 As you want to parse the same field from multiple portal rows, you have to somehow nominate the rows, or compile a series of click grabs. I can think of several ways. The simplest, and to show yourself the principle, and that it works, would to create a new field to hold the output (g_Result). It can be a global. Create a script, and add a button to the portal row. clicking the row adds the target field value to the g_Result parse F1 Set Field [ TableA::g_result; If(IsEmpty(TableA::g_result); TableB::F1; TableA::g_result & "¶" & TableB::F1) ] Commit Records/Requests [ Skip data entry validation; No dialog ] the variation for single row output, is substitute a colon for the pilcrow in the set field calc parse F1 Set Field [ TableA::g_result; If(IsEmpty(TableA::g_result); TableB::F1; TableA::g_result & ":" & TableB::F1) ] Commit Records/Requests [ Skip data entry validation; No dialog ] plenty of other ways to configure the actual extraction, but this is the basis for grabbing the values regards Chris |
#4
| |||
| |||
|
|
I need to concatenate the values in several portal rows into a single row and export the single row. Not only that, I need to place a particular delimiter (a colon) between the various rows' values when they go into the single row. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
#5
| |||
| |||
|
|
If you're in FM8.5 or higher, you might have a look at the List() function and use it in conjunction with a concatenated field in your related table. FastWolf wrote: I need to concatenate the values in several portal rows into a single row and export the single row. Not only that, I need to place a particular delimiter (a colon) between the various rows' values when they go into the single row. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg FM Professional Solutions, Inc. Los Angeles FileMaker 8 Certified Developer Member, FileMaker Business Alliance |
![]() |
| Thread Tools | |
| Display Modes | |
| |