macdocmike Posted September 29, 2009 Share Posted September 29, 2009 (edited) Help! I have a layout in FMP that shows a date field in the header. It performs a find before showing the layout so that the value is the same for each record. I want the layout in XSL to also show the date in the header section, but I can't get it to show a record value in the header. I've used the Filemaker XSLT Assistant (In FMP 10 Server) to create the original pages, but I still can't get the info from a field (that's in each record I'm going to show) to show up in the header of the page. Any ideas? Thanks! Mike Edited September 29, 2009 by Guest Link to comment Share on other sites More sharing options...
macdocmike Posted October 19, 2009 Author Share Posted October 19, 2009 OK, so maybe I wasn't clear. I just need to show a field's value in the header area of my XSL file. It's a listing and every record should have the same value, I just want to display it once at the top instead of next to every row. (As if it was in the header section of a Filemaker layout) Thanks for any help! Link to comment Share on other sites More sharing options...
beverly Posted November 5, 2009 Share Posted November 5, 2009 Are you using CWP with XSLT? Link to comment Share on other sites More sharing options...
macdocmike Posted November 5, 2009 Author Share Posted November 5, 2009 Yes, I'm using the site-assistant built XSL sheets as a starting point and customizing them for layout using CSS. BTW, this is on a Mac Server using FMP Server 10. Thanks, Mike Link to comment Share on other sites More sharing options...
beverly Posted November 5, 2009 Share Posted November 5, 2009 What's displaying it in every record now? Link to comment Share on other sites More sharing options...
macdocmike Posted November 5, 2009 Author Share Posted November 5, 2009 Well, I just mean that all the found records have the same value in this field (date) and I can easily display it along with each record in the recordlist.xsl layout, but I'd prefer to display it just once in the header. Here's the code I'm using to display the field in each record. Obviously this is within the 'for-each' section of the XSL. I'm just wondering how to get a field value to show up in the header of the form. Thanks for any help! Mike Link to comment Share on other sites More sharing options...
macdocmike Posted May 20, 2010 Author Share Posted May 20, 2010 I just got back to this project and am wondering if anyone can point me in the right direction. To explain again, I want to place a few fields in the "header" section of my page. Similar to placing a global field in the header part of a Filemaker Pro layout. Any suggestions would be greatly appreciated. Thanks, Mike Link to comment Share on other sites More sharing options...
comment Posted May 20, 2010 Share Posted May 20, 2010 I am not really familiar with CWP/XSLT, so I am largely guessing - but obviously, if you want the date only once, don't call for it inside the element. Try perhaps something like: ... ... ... Link to comment Share on other sites More sharing options...
macdocmike Posted May 20, 2010 Author Share Posted May 20, 2010 Thank you so much! That worked perfectly. I wish I understood this better. I can do all kinds of advanced things within Filemaker, but the XML/XSL stuff still mystifies me sometimes. Thanks again, Mike Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5092 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