fmp7_user_fmp7fmp7 Posted May 17, 2006 Posted May 17, 2006 I need to take a certain field(upc) from every three records and be able to export each block of three upcs as one record so the export would look like: line 1: 9999902244951, 987741000523, 982693000010 line 2: 724354004124, 724354004025, 724354003929 line 3: 606949007324, 606949007126, 606949006525 I know this may be done via a portal but how do you export portal data? Any help would be great!
John Mark Osborne Posted May 17, 2006 Posted May 17, 2006 Create a conditional value list that displays all the values from the portal on each parent record. Then, create the following calculation field: ValueListItems(Get(FileName); "ValueListName") This will return the values displayed in the conditional value list as a return-separated list so you can export it.
fmp7_user_fmp7fmp7 Posted May 17, 2006 Author Posted May 17, 2006 How do I get only 3 records to be displayed in the field? I get every value of every record for the field and all i need is the first 3 then the next 3 and so on untill the records end.
John Mark Osborne Posted May 17, 2006 Posted May 17, 2006 I was just showing you how to export portal data as you requested. If you just want all of your records to be exported in pairs of threes, you can start by changing your conditional value list to just a value list that displays all values. I have attached an example that demonstrates the technique. I have not included the last step of exporting so you'll need to add it yourself. The basic idea behind the script is to move all the values into a new table, placing three record values on each record in the new table. Then, you can easily use the power of export records to handle the rest. exportbythree.fp7.zip
fmp7_user_fmp7fmp7 Posted May 17, 2006 Author Posted May 17, 2006 Perfect! I was so trapped with potal/conditional value lists that I could not see how it could be done any other way. Thanks
Recommended Posts
This topic is 6827 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