My.ADVISOR.com Sign-In
ID
Password

Member Center / Sign-Up
   
SUBSCRIPTION STATUS
If you are a subscriber to this publication, sign-in to access locked articles. To subscribe or renew go to www.AdvisorStore.com.
Go to Article
Advanced Search 

ADVISOR TIPS

Hide Developer Notes in Your FileMaker Pro Application

Here's a simple trick to make notes appear in layout mode, but not in browse, find, or preview mode

By John Mark Osborne, Database Pros president and owner, and FileMaker Advisor technical editor


I've always wanted to put notes on a layout that only the developer can see. I've thought of many solutions including a combination of scripts and calculations that make the notes visible when the full-access password is used, but this isn't simple or elegant. Of course, we all have developer layouts that users can't navigate to that contain information about the solution we've created. But, wouldn't it be nice to have notes right on the specific layout you want to describe?

Here's a simple trick to make notes appear in layout mode, but not in browse, find, or preview modes. In other words, users can't get to layout mode so they can't see your notes. Just type your notes wherever you want them to appear on the layout. Next, set the conditional formatting for the text block with the following formula:

Get(WindowMode) > -1

When the above condition is true, have conditional formatting change the text color to match the background so it disappears. The Get(WindowMode) function returns the following values:

Browse mode = 0
Find mode = 1
Preview mode = 2
Printing in progress = 3

Interestingly enough, when placing the Get(WindowMode) function in the Data Viewer, a value of "4" is returned while in layout mode. This is not referenced in the online help and really isn't helpful except in this scenario. If you run a script while in layout mode, it first changes to browse mode, so it is not possible to capture or test for a value of "4". So why does the conditional formatting formula return a false value if it is true that "4" is greater than "-1"? It's quite simple. When you enter layout mode, calculations do not formulate. In other words, the conditional formatting works in find, browse, and preview, but not layout mode. Otherwise, you would have to test for values ranging from 0 through 3, excluding 4.

-- Rob Poelking, Cleveland, Ohio

Hide Developer Notes

No reader comments ... yet.

    What do YOU think about this topic? Share your advice and thoughts using this form.

    Your Name

    REQUIRED : PUBLIC

    Your E-Mail

    REQUIRED : PRIVATE

    Job, Company

    OPTIONAL : PUBLIC

    City, State, Country

    OPTIONAL : PUBLIC

    Your Web Site

    OPTIONAL : PUBLIC

    Your Comment

    Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


    Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

    John OsborneTechnical editor John Mark Osborne is president and owner of Database Pros, offering FileMaker resources on the Internet. He is author of Scriptology, a speaker at FileMaker Developer Conferences and Macworld conferences, and a trainer for the Professional Training series created by FileMaker, Inc. http://www.databasepros.com jmo@filemakerpros.com

    Printer-friendly
    page layout

    Keyword Tags: FileMaker, FileMaker Development, FileMaker FileMaker Pro, User interface

    ADVISORAMA
    If you're not confused, you haven't heard all the facts.

    ARTICLE INFO

    FileMaker.Advisor.com

    Web Edition: 2008 Week 51, Doc #19553

    Print Edition: Print Edition 69, Page 38

    FREE ACCESS FREE ACCESS

    Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
    Portions copyright ©1983-2008 Advisor Media, Inc. All Rights Reserved.
    Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
    ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, Inc. in the United States and/or other countries.
    Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
    Hosted by Prominic.NET Website powered by
    LOTUS SOFTWARE
    osboj042-01 posted 12/15/2008 modified 06/29/2009 03:11:44 AM ztfmfd/ztfmfd
    domino-144.advisor.com my.advisor.com 07/02/2009 09:52:43 PM