Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XSL/XML Header Question

Featured Replies

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...
  • Author

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...
  • Author

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

What's displaying it in every record now?

  • Author

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...
  • Author

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

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:




...









...





...

  • Author

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.