Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

Has anyone figured out a way to get numeric formatting with CDML.

For example, a numeric field for currency in FileMaker is formatted to display as "$1,234.50". CDML displays it as "1234.5".

I know I can simply put the "$" in HTML, but I haven't found a simple way to get the two decimal places to display correctly.

[This message has been edited by REdSta (edited May 30, 2000).]

Posted

Yes. "Database publishing with FileMaker Pro on the Web" by Maria Langer (Peachpit Press) discusses preparing one's db to allow display of the decimal rounded and the $-sign inserted, though there is an error in her calculation algorithm. Following "...If(Round(Unit Price, 2)..." she uses ">", which will keep the "1" from appearing if the amount is "1,000". To fix this use "*" (Macintosh). I'm not sure, but I think with Windows you would use ">=" or "=>", but if you are a Windows user, you will know.

Hope you find this useful.

Peace

Keith M. Davie

Posted

I forgot to mention that (in addition to the error already mentioned) this book has perhaps the most inadequate index I've ever encountered. So with that in mind, you will want to look on page 317.

Peace

Keith M. Davie

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