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.

Featured Replies

I'm currently using FMpro 5 to serve up an Online submission form internally.

I have two DB's

Fsubmit.fp5

logintrack.fp5

I'm using the Web Security DB along with custom web pages.

My issue is as follows;

A user get's to a login screen which creates a new entry in logintracker.fp5. This stamps the following details

DateIn

TimeIN

LoginID (user name)

IP address.

I then use a URL to load up the next webpage which creates the main menu for submisions in the DB Fsubmit.fp5

When they are finished they click Logout on the main menu From here I'm trying to write back to logintracker.fp5 the DateOut and TimeOut stamps.

I have used the -RecID tag but this is only good for single entries, the minute I get several people accessing at the same time this seems to get lost.

Q: How can I store the record ID so that it updates the correct record in logintracker.fp5?

cheers in advance

  • Author

Cheers hadn't thought of the TOKEN tag

My -New url is;

FMPro?-DB=logintracker.fp5&-Format=home.htm&-Token=[FMP-CurrentRecID]&-New

now I having diffculty writing back a 9FMP-CurrentTime:Short into the associated field.

How should I pass this back?

Perhaps I am missing something here. Why are you using a -new action tag to logintracker? I thought you already had a record there. Wouldn't an -edit action be appropriate?

FMPro?-DB=logintracker.fp5&-Format=home.htm&-Token=[FMP-CurrentRecID]&dateout=[fmp-currenttime: short]&-edit

Peace

Keith M. Davie

  • Author

Sorry I missed a line out,

The -NEW tag is used when they click the Login URL, a new entry is made into the tracker.fp5 DB and then I move them to start entering details into the second DB submit.fp5.

If the user clicks the Logout, I want it to append (-EDIT) the initial record in the first DB tracker.fp5 and stamp a field with the current time.

I hope this makes it a bit clearer.

Use Token(s) for transfering values between pages.

  • Author

Ok i See know, it didn't realise you need to carry this across, but for this to work are my URL's from the previous post correct?

as the CDML reference manual is a little low on good descriptions.

  • Author

My login button issues the following commands

<a href="FMPro?-DB=logintracker.fp5&-Format=home.htm&-Token=[FMP-CurrentRecID]&-New">

My Logout button issues the following commands

<a href="FMPro?-DB=logintracker.fp5&-Format=exit.htm&-RecID=[FMP-CurrentToken]&Timeout=[FMP-CurrentTime:short]&-Edit">

in between these two functions the users are editing and managing data in the other database and I do not use the Token command again.

The results I get when logging out is Record not found, so my guess is it's lost or reset the link.

what am I doing wrong?,

thanks for your patience

You must "carry" tokens through all pages. Then it will be OK.

I am using URLs like:

FMPro?-db=prtiskzpr_.fp5&-format=search.htm&-token.1=[FMP-CurrentToken: 1]&-token.2=[FMP-CurrentToken: 2]&-token.3=[FMP-CurrentToken: 3]&-token.4=[FMP-CurrentToken: 4]&-token.5=[FMP-CurrentToken: 5]&-view

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.