Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

XSL/XML Header Question


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

Recommended Posts

Posted (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 by Guest
  • 3 weeks later...
Posted

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!

  • 3 weeks later...
Posted

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

Posted

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

  • 6 months later...
Posted

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

Posted

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:




...









...





...

Posted

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

This topic is 5312 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.