Tags

    Advanced Finds

    How do you search for blank fields, or fields whose value isn't "X"? It's not really very intuitive, especially if you are used to languages like PHP or JavaScript.

    Blank Field Searching

    To find all records where the field 'Person::First Name' is blank, we could use this reactor function call:


    // Find all people who have a BLANK first name
    FRTB_FMFind(
    'FM.link', // FM.link
    '"Person"', // Table Occurrence
    '"First Name"', // Fields to Find
    '"First Name" IS NULL', // What to Find
    getPersonRecord // Completion Function
    );

    // Or using an FRTB Object style find:
    FRTB.Find( 'Person::First Name' ).filter( 'Person::First Name=' ).send( getPersonRecord )

    Is Not Equal Searching

    To find all records where the field 'Person::First Name' is not equal to "Sam" we could use this reactor function call:


    // Find all people whos first name is NOT Sam
    FRTB_FMFind(
    'FM.link', // FM.link
    '"Person"', // Table Occurrence
    '"First Name"', // Fields to Find
    '"First Name" <> \'Sam\'', // What to Find
    getPersonRecord // Completion Function
    );

    // Or using an FRTB Object style find:
    FRTB.Find( 'Person::First Name' ).filter( 'Person::First Name<>Sam' ).send( getPersonRecord )


    Wild Card Searching

    To find all records where the field 'Person::First Name' begins with "Sam" we could use this reactor function call:


    // Find all people who's name starts with Sam.
    // Will match 'Sam Kindle', 'Samantha', 'Samuel' etc..
    FRTB_FMFind(
    'FM.link', // FM.link
    '"Person"', // Table Occurrence
    '"First Name"', // Fields to Find
    '"First Name" LIKE \'Sam%\'', // What to Find (The wild card is a percent symbol here)
    getPersonRecord // Completion Function
    );

    // Or using an FRTB Object style find: ( here the wildcard is a more familiar star symbol )
    FRTB.Find( 'Person::First Name' ).filter( 'Person::First Name~Sam' ).send( getPersonRecord )

    Comments

    /groups/bbdocs/search/index.rss?tag=hotlist/groups/bbdocs/search/?tag=hotWhat’s HotHotListHot!?tag=hot1/groups/bbdocs/sidebar/HotListcraigCraig Saunders2010-02-05 09:25:07+00:002010-02-05 09:25:07updated12wendyWendy Wethey2009-10-29 20:58:53+00:002009-10-29 20:58:53updated11samSam Sehnert2009-08-24 00:09:09+00:002009-08-24 00:09:09updated10Added tag - hotsamSam Sehnert2009-08-24 00:09:07+00:002009-08-24 00:09:07addTag9Added tag - parameterssamSam Sehnert2009-08-24 00:08:52+00:002009-08-24 00:08:52addTag8Added tag - functionssamSam Sehnert2009-08-24 00:08:52+00:002009-08-24 00:08:52addTag7Added tag - buildersamSam Sehnert2009-08-24 00:08:52+00:002009-08-24 00:08:52addTag6Added tag - blackboxsamSam Sehnert2009-08-24 00:08:52+00:002009-08-24 00:08:52addTag5samSam Sehnert2009-08-24 00:07:52+00:002009-08-24 00:07:52updated4Added link to 'Parameter Data Types' docsamSam Sehnert2009-08-24 00:06:52+00:002009-08-24 00:06:52updated3robertRobert Sinton2009-08-14 05:19:30+00:002009-08-14 05:19:30updated2First additionrobertRobert Sinton2009-08-14 05:18:57+00:002009-08-14 05:18:57created1wiki2010-02-05T09:25:07+00:00groups/bbdocs/wiki/6d11cFalseBuilding your own BlackBoxes/groups/bbdocs/wiki/6d11c/Building_your_own_BlackBoxes.htmlCraig Saunders12 updatesBuilding your own BlackBoxes The BlackBox Builder is a special database that you can use to build your own BlackBoxes. You can then use these B...Falsecraig2010-02-05T09:25:07+00:00hot/groups/bbdocs/search/index.rss?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomelist/groups/bbdocs/search/?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomeRecent ChangesRecentChangesListUpdates?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcome0/groups/bbdocs/sidebar/RecentChangesListmodifiedDateallRecent ChangesRecentChangesListUpdateswiki/welcomeNo recent changes.reverse5search