Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Omitting Records from a search

Featured Replies

Hi

I want to use a url like this;

http://mydomain/FMPro?-db=mydatabase.fp5&-layout=detail&-format=results.htm&-error=search.htm&materialstatus=searchtermtofind&-sortfield=destinationsort&-sortorder=ascend&-find

to find a set of records but to omit a specific value in searchtermtofind - in this case I want to find every record other than ones with "Completed" in the JobStatus field. I thought I might be able to use something like -LOP=neq etc, but according to the CDML reference this only works AND & OR. I can do it by creating another calculation field to search on but would rather do it this way - any ideas?!

Hello,

Since "Completed" is the only value you wish to avoid, could you find all your records with "Completed" values then omit them.... then return those results?

I don't think that CDML has an "-omit" tag, so it would have to be scripted (trigger using "-script=omitThem").

... an idea.

Bradley

Bradley, using ScriptMaker is not advised in web solutions because of the issues involving ScriptMaker events. If you will spend a bit of time looking on these Internet forums searching for ScriptMaker, you will find the issues have been widely discussed.

The way to handle an "-omit" without an available "-omit" tag is to use the tools which are available. Refer to the CDMLRD. Study the options which are offered for use on the results.htm, specifically the use of [FMP-If:] conditional tags to control what is displayed. laugh.gif

Unable,

Indeed using any script to iteriate through records doing anything would be a performance drain to the DB, but a simple omit wouldn't be too costly, I would think.

On the other hand, if you could remove any amount of data sent to the WC then that could also be a network savings, particulary since the WC is a single-thread process... does that sound right?

Do you recommend a good discussion thread regarding the ScriptMaker / Internet usage events issue?

Thank you ,

Bradley

What about "-op" and "neq". E.G. "&-op=neq&jobstatus=Completed&-find"

Good Luck.

Garry

RE: "Completed" in the JobStatus field

And/or you can use simple calculation field in FM which will have IF JobStatus <> Completed = YES

Then you just search for YES

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.