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.

FMPXMLLAYOUT - Help on usage

Featured Replies

  • Newbies

I'm not new to FMPro, but new to XSLT. I've used the FM Site Assistant to get me started on just showing the information. I understand how to go in and edit the information a bit and how to change how it's displayed. But then I wanted to pull the formatting from FM like the IWP does. I read a bit and found this in fmsa7_custom_web_guide.pdf

"You can incorporate a FileMaker database

The "document()" gets the result XML for the layout information. It's pulled into the variable "layout" and stored for later usage in the XSLT.

Check your created XSLT and see if you can find the variable used elsewhere, something like: select="$layout/fml:FMPXMLLAYOUT/fml:LAYOUT/fml:FIELD[@NAME = 'Category']/fml:STYLE/@VALUELIST". This is accessing the XML from the variable and using it for things like valueLists.

The "document()" is a pretty *powerful* way to bring in 'other xml sources'!!

HTH

  • Author
  • Newbies

Let me start out by saying thank you for your reply. I see you are on here helping a lot of people smile.gif. I've been sitting here for awhile not trying to make an honest attempt at understanding how this works. Yet it continues to stump me.

So, I ask for more help in an example.

Setup: A FMPRO 7 database named "my_database" with a table named "table1" and a field named "field1" that changes text color based on a calculation of a value in

  • 2 weeks later...

Have you looked at the "GetAsCSS()" function? If you have a field with particular color text, it will give you the 'style' that the browser can read.

Look at the CWP user guide for more information on what is extracted from the LAYOUT.

=== blatent copy ===

"Description of elements in the FMPXMLLAYOUT grammar

In the FMPXMLLAYOUT grammar, the <LAYOUT> element contains the name of the layout, the name of the database, and <FIELD> elements for each field found in the corresponding layout in the database. Each <FIELD> element describes the style type of the field, and contains the VALUELIST attribute for any associated value list of the field.The <VALUELISTS> element contains one....

  • Author
  • Newbies

Thanx again for your time... I will look into this.

I found a solution to what I was looking for in the IWP pages. Although this doesn't allow for customization like xml does. It displays the information the way I want it... just like the layout.

http://<webaddress.com>/fmi/iwp/cgi?-db=<DATABASE>&-lay=2&-gotolayout=

This was a reply by seanc under Instant Web Publishing Forum - How to set the start layout page? (Posted By Brad Neal)

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.