July 27, 200619 yr Hi all, Suppose there is a portal with thumbnail images ... ... is it possible to make it scroll sideways ? (ps This is like grasping at straws and I kinda know the answer, but just in case someone might have a pleasant surprising answer ) Thanks, -Thomas
July 27, 200619 yr TECHNICALLY... yes, The way i might look at doing it (for 5 thumbnails) would be to use 6 fields in total (5 calc result container, 1 number) Assumptions: your thumbs are stored in a related table called "RelatedTable" and the field is called "Thumb". Calcs: 1) GetNthRecord( Thumb::RelatedTable ; number ) 2) GetNthRecord( Thumb::RelatedTable ; number +1) 3) GetNthRecord( Thumb::RelatedTable ; number +2) 4) GetNthRecord( Thumb::RelatedTable ; number +3) 5) GetNthRecord( Thumb::RelatedTable ; number +4) Then, default number to be 1, and for your left and right "scroll arrows" simply subtract or add 1 respectively to the number field. You will also most likely have to use the Refresh (or Refresh Window) script step in order to refresh your container fields. Also line up your calc fields left to right, 1-5. Hope this helped. ~Genx
July 27, 200619 yr Your 5 container calcs could be one repeating field. But GetNthRecord() is not available in version 7. Still, it can be done, using a value list and multiple single-row portals - see attached. HorizontalPortalSimple.fp7.zip
July 27, 200619 yr Author wow ! Thank you all for the great tips ! I see it can only be done as a scripted solution (although it would be nice to see an option "show horizontal scroll bar" in the portal setup). About the scripts: Yes I am still on FM7 (but it seems I need to upgrade ) @comment: Thank you for the sample ... I am looking at it right now. EDIT: "comment", I like your solution for fm7. Very inventive. Thank You ! Edited July 27, 200619 yr by Guest
Create an account or sign in to comment