Search Project Mgmt
Search FileMaker Blogs
FileMaker Blog

Thank you for visiting the FileMaker Calculations Explored blog. I recently moved this content over from my blogger account. Hope you like it! When you get a chance, check out the centralized search feature for all the FileMaker blogs found along the right side panel. It is quite handy!

Friday
Jan182008

FILEMAKER: Exporting TextStyleAdd Changes

From Dwayne Wright
www.dwaynewright.com
info@dwaynewright.com

A READER ASKS ...
While searching on the web, I came across your Blog, FILEMAKER: The TextStyleAdd Function. It was exactly what I was looking for except for one item. I want to export the information in the FileMaker Database to comma delineated text format. When I exported the data, I did not get all lowercase for the one field. I have over 90,000 student usernames, etc. to convert. The only problem is this one field which must be all lowercase for the state department.

----------------------
DWAYNE RESPONDS
Well, there are a number of things you can do. So I’ll just run the gamut of options and let you see if one works out for you. Now, none of these use the TextStyleAdd function but instead use the Lower function.

EXPORT A CALC FIELD INSTEAD
The lowest impact would be to create a calculation field that uses the lower function and then export that field instead. For example, Lower ( Blog Title ) for this record in the FileMaker database I use to create my blog would return, exporting textstyleadd changes. In your scripted export, substitute the calculation field for the calculated one.

REPLACE COMMAND
Replace the contents of the field with the lower version of itself. So if I wanted to make my blog title field lower case for all records in the found set, I would use the replace command and use the calculated value of Lower ( Blog Title ).

INTERACTIVELY CHANGING THE TEXT OF THE FIELD
Going forward, you may want to have the field interactively change case as the user exits the field. This can be done via the auto enter calculated value with the “do not replace” option unchecked.

© 2010 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. FileMaker Pro is the registered trademark of FileMaker Inc.

Friday
Jan182008

FILEMAKER: The Get(ScreenHeight) Function

From Dwayne Wright
www.dwaynewright.com
info@dwaynewright.com

Get(ScreenHeight)
FMP Version: FileMaker 7 and higher
Returns A Number Result

This will return a numeric result that will match the number of pixels in the current monitor height. This function can even take into account multiple monitors, which is always a possibility in today's computing environment. The results of this function are linked to the monitor that contains the foreground window.

It is unlikely but it is possible to have the foreground window covering multiple monitors. In a case like this, FileMaker tries to give you the most accurate information it can by selecting the monitor that has the largest percentage of the window and give you its screen height information.

=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.

Thursday
Jan172008

FILEMAKER: The Get(ScreenDepth) Function

From Dwayne Wright
www.dwaynewright.com
info@dwaynewright.com

Get(ScreenDepth)
FMP Version: FileMaker 7
Returns A Number Result

The Get(ScreenDepth) function will return a numeric result of the number of data bits in the screen depth of a users monitor. Most computers run on millions of colors these days but you might run into situations where you have to branch a script depending upon the users monitor setting.

Black & White would return a 2
256 colors would return an 8
Thousands of colors would return 16
Millions of colors would return 32

=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.

Wednesday
Jan162008

FILEMAKER: The Get(RequestOmitState) Function

From Dwayne Wright
www.dwaynewright.com
info@dwaynewright.com

Get(RequestOmitState)
FMP Version: FileMaker 8 and higher
Returns A Number Result

Returns a 1 or 0 (a Boolean value) depending on if the omit checkbox is checked for the current request in Find mode.

I imagine this function could be used in scripted searches that allow user input. This function could be used to help capture the search criteria performed by a user and write it to a log file. The log file could be used for reference or perhaps to rebuild those search settings via a scripted operation.

© 2010 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. FileMaker Pro is the registered trademark of FileMaker Inc.

Tuesday
Jan152008

FILEMAKER: The Get(RequestCount) Function

From Dwayne Wright
www.dwaynewright.com
info@dwaynewright.com

Get(RequestCount)
FMP Version: FileMaker 7 and higher
Returns A Number Result

You can stack find requests in a find operation to best filter your results. The Get(RequestCount) function will return the number of find requests within an impending find operation. The practical use for this function is a little different and I’m not sure how often it is used.

Obviously, it will only be useful in scripted search routines, likely only in HIGHLY scripted search routines. I’ve chatted with some developers that provide solutions for the legal practice markets. Many times, those solutions have a highly scripted search environment because the search results often are used to build critical areas of legal contracts.

So I imagine this function could be used to record how many search levels a user had performed, then loop through those requests, capture the search criteria and write it to a log file. The log file could be used for reference or perhaps to rebuild those search settings via a scripted operation.

© 2010 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. FileMaker Pro is the registered trademark of FileMaker Inc.

Page 1 ... 6 7 8 9 10 ... 50 Next 5 Entries »