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.

Need help in CDML to run a script!!

Featured Replies

I have a database of two files in FM Pro6.0 on a Mac. The files act as a time card for 200 employees to punch in and punch out for their hours worked. The first file shared has two variables, employee number and password both are global variables and two buttons on the layout, one to run a script to clock in and the other to run a script to clock out. The scripts validate the entry info and pass it to a second file to create a time card record for that day for the employee. I want the 200+ employees to be able to clock in and clock out by accessing the layout through a web page with CDML tags that will pass on the employee number and password and the a click of the first button on the web page would run the first clock in script and a click of the second button would perform the clock out script.

Is this possible with CDML or are there anyother easy ways to do this where the employee can do this with their browser...

Thanks in advance...

  • Author

Thanks Garry. Do you know if there is an easy way to have a button on the screen to initiate a script. The employees may login from different machines and therefore I would like a web page to use for clocking in and out.

Thanks for the help.

You could do something like this:

<body>

<form action="FMPro" method="POST">

<input type="hidden" name="-db" value="db1.fp5">

<input type="hidden" name="-format" value="thisfile.html">

<input type="hidden" name="-op" value="eq">

Emplolyee ID: <input type="text" name="emp_id" value="">

<input type="hidden" name="-script" value="clockin">

<input type="submit" name="-find" value="Clock IN">

</form>

Good Luck.

Garry

Whether CWP or IWP, you should look to do this with calculations and/or JavaScript. If a lot of the 200 folks are going to clock near-simultaneously ScriptMaker will cause you to have problems (which have been widely discussed here).

If you are using IWP, only certain scripts are allowed (which affects whether or not the buttons on the db file layout function on the browser).

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.