Jump to content
Jason Mundok

Display FileMaker Text Field Formatting through PHP API

Recommended Posts

I have a website that is displaying FileMaker data using the PHP API. Is there a way for the web site to display the basic text formatting from a FileMaker field? For example, a few words in the comments field are bold in FileMaker and I would like them to also be bold on the website. Thanks for any ideas.

Share this post


Link to post
Share on other sites
ggt667    6
Posted (edited)

This is true for FileMaker 11, unless FileMaker made some serious upgrades to their php api after this; here is my piece of advice. As a rule of thumb what you export when you export to XML for FileMaker is what you can bring to the web. That said I'd imagine you can make a supporting field that holds the info you are after.

Edited by ggt667

Share this post


Link to post
Share on other sites
Wim Decorte    446

don't know that you can... but perhaps if you have a shadow field that uses GetAsCSS() on your original field, that could give you something to work with?

Share this post


Link to post
Share on other sites

Thanks, Wim. That was suggested elsewhere as well. I'm going to try it a little later and I'll post back with the results.

Share this post


Link to post
Share on other sites
ggt667    6
Posted (edited)

It looks like you should be able to do GetAsCSS( fieldname ) and then use the output of that in its own field. No need for supporting/shadow field: http://www.filemaker.com/help/12/fmp/html/func_ref3.33.54.html Yet you will have to override CSS font or be stuck with whichever font is put inside FileMaker by the looks of it.

Edited by ggt667

Share this post


Link to post
Share on other sites

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


  • Similar Content

    • By Joel Shapiro
      Don't forget!
      Monday July 24, 3:30–5:30 (before the 6pm opening keynote).
      Come see:
      Steve Winter @steveWinterNZ
      Mark DeNyse @mdenyse
      Ken d’Oronzio @kdoronzio
      Gjermund Thorsen ggt667
      Joel Shapiro @jsfmp
      Hope to see you there!
      -Joel
      http://jsfmp.com/cwp-user-group
       
    • By jamescv7
      XML error: No memory at line 1
      Greetings, this error occurred when the Filemaker API cannot generate a bunch of records. (1000+ records and above)
      I've adjusted the time out settings for PHP even the memory limits.
      Is there any possible solution for this?
       
      According to some information, the error turns out that the 10 MB XML scripts is unchangeable.
      thanks.
    • By Ken d'Oronzio
      FREE fmREST.php – Simplifies & manages PHP connections to FileMaker 16’s REST-based Data API.
      The newly released FileMaker Server 16 now offers REST access to your FileMaker databases. There’s more about that how this impacts PHP developers here.
      The bottom line is that to use REST as part of your PHP solution, you would usually need to write a series of cURL functions and you would have to manually manage connecting & disconnecting from your server, and saving your tokens.
      This is a pain!
      We know it’s a pain, because we have spent the last several weeks rolling REST functionality into soSIMPLE Calendar.
      We created this class file to make it easier to manage dynamic REST sessions for soSIMPLE and our custom development. The goal of the class file was to help PHP developers start using the new REST engine as quickly and easily as possible.
      We’ll also be updating it with new features. If you’d like to add something to it, please let us know.
      What fmREST.php does:
      Makes every REST call available as a PHP function. Automatically login into FileMaker Server whenever you call any REST functions Saves your token for 15 minutes to reuse Checks for a broken or disconnected token and automatically reconnects and runs your function again Where do I get it?
      You can download the fmREST class file here.
    • By Joel Shapiro
      Hi all
       
      Come join us at the 11th annual CWP User Group at DevCon: Monday, July 24, 3:30–5:30pm  (before the 6pm opening keynote).
       
      Do you have something you might like to share with the group?  Please let me know.  We're always looking for new people! 
       
      Everyone's welcome.  Hope to see you there!
       
      -Joel
       
      http://jsfmp.com/cwp-user-group
      ~~~~~~~~~~~~~~~~~~~~~
      Joel Shapiro
      FileMaker Pro
      : database design
      : web development
      http://jsfmp.com
      415-269-5055
      ~~~~~~~~~~~~~~~~~~~~~
       
       
    • By GisMo
      I have a php script that takes two PDF files and merges them into one file. I am using this in conjunction with the insert from URL script step. 
      The way the script works is it takes two PDFs in container fields and base64encode each files. Then, those two base 64 strings are POSTed via insert from URL.
      I've tested the script forwards and backwards and it does combine the PDF files reliably. The issue is when posting from FileMaker. What typically happens is the first page is combined twice and that's my resultant PDF. 
      My php script checks that both inputs are different and throws an error is they are identical. I don't get any errors there.
      Is there a way to POST a file from insert from URL?
×

Important Information

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