Record display

Version 2

     

    Web Viewer

     

    Compatibility
    Creator
    Mac OS X, Windows
    Russell Wilkinson
    FMP 8.5, 9, 10, 11
    Alastair Sawday Publishing
    Web: Yes
    File Type: FP7
    Server: Yes
    FileSize: ~ .05 megabytes
    http://www.sawdays.co.uk

    Description

    Shows information normally visible in top application menu bar.

     


    Code

    // web viewer nav info: start by declaring that this web viewer isn’t calling an external URL

     

    "data:text/html," &

     

    /* now fill in your opening HTML (you could stick to plain text if you prefer - and for this to be used in the context of IWP, you need to - in which case you can skip this bit). For a more ‘portable’ solution, you could store this code within a global field in your solution and include its contents instead, granting the ability to manage styles across the solution from a central point. */

     

    "

     

     

     

     

     

    "

     

    &

     

    // build the content of the page from our FileMaker data - in this case we're showing the user information about the found set.

     

    // if we're in Find Mode, show the number of requests

     

    If ( Get ( WindowMode ) = 1 ; Get ( RequestCount ) & " find request" & If ( Get ( RequestCount ) > 1 ; "s." ; "." ) ;

     

    // else show number of records, including found, current and total

     

    If ( Get ( FoundCount ) = Get ( TotalRecordCount ) ; "All records shown." ;

     

    "Found " & Get ( FoundCount ) & " of " & Get ( TotalRecordCount ) & " records." ) &

     

    " Showing record number " & Get ( RecordNumber ) & “.”

     

    )

     

    &

     

    // close up all the HTML (again, skip this if you're just using plain text)

     

    "

     

     

    "

     

    Sample Input

    Sample Output
    [current record set]

    Found 2 of 45 records. Showing record number 1.

    Developer's Notes

    When using this method for layouts that are to be displayed under IWP, you need to use text rather than HTML.

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.