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.

Nasty date question

Featured Replies

Hi,

I think this is gonna be a nasty one. Using filemaker 4.1, in a database

I've two date fields, data_start and date_end. I use a website for our users

to access this database to have a look in the planning of radiostation, I

want them to be able to search on items running on a date they enter.

I allready do it in FM itself, by running a simple script, but that's no

solution to the web. Now I figured out I could create a textfield containing

all dates from date_start 'till date_end. So, by searching on that

textfield, FM comes up with all records 'running' on the requested date. The

question is : how.......

If anybody could help ??

Cheers,

Andr

Not a problem. The solution is to do a compound search of both the date_start and date_end fields. You want to take the search date and search for 'date_start...' and '...date_end'. The easiest way to take a single date entered on a form and place it in 2 fields for the search is javascript.

Here's a quick stab at what you'll want in your page:

<head>

<SCRIPT LANGUAGE="JavaScript">

function setDates(){

document.search.date_start.value=document.search.search.value+"...";

document.search.date_end.value="..."+document.search.search.value

}

</script>

</head>

<body>

<form name="search" onSubmit="setDates()">

<input type="hidden" name="date_start" value="">

<input type="hidden" name="date_end" value="">

Search date: <input type="text" name="search" value="" size=10>

</form>

<body>

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.