Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Displaying concatenated portal data or portal on printout


This topic is 5944 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Hi,

I'm trying to get information from a portal into a printout.

Table 1 (T1) - File Information

Table 2 (T2) - Notes (Date & Note field)

T1 has a portal where users can enter data into T2. T1 will NOT always have records in T2. (Hence I cannot print the data from the T2 table)

I need to print out a report from table T1 showing concatenated data from related T2 using a value list of related records then a field

ValueListItems ( Get(FileName) ; "Notes" )

This works fine with the exception that the records in the field do not sort by date order.

I tried using a portal on screen and locking it to the bottom of the screen so it will stretch. The portal will add/delete rows as appropriate, but it won't resize the portal itself.

See attached file as an example as to what I'm trying to explain :

Also, I can get it to sort if I use getasnumber(date), but of course I don't want this displayed.. :S

TIA

test.zip

Edited by Guest
Posted

This works fine with the exception that the records in the field do not sort by date order.

Use List( instead of ValueListItems( and make the sorting required by the relations definition instead. However is there great inspiration to be found in this:

http://fmcollective.com/2007/08/29/pseudoportals-with-alternating-fill/

...When printing is required!

--sd

Posted

Thanks!

I'm not quite sure why I felt I needed to use value list.. I got shown that technique once and ...hmm

So, is there a valid reason as to where you would use the value list technique in favour of the list?

Cheers

Posted

Your report would be much easier to produce from the child table, with parent fields in a sub-summary part.

As for ValueListItems(): there was no List() function until version 8.5. You can still use it when you want to eliminate duplicates, but it will always sort ascending according to the field type.

This topic is 5944 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.