Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 8743 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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?

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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

This topic is 8743 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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