Newbies hawkgx Posted May 11, 2001 Newbies Posted May 11, 2001 Trying to develop simple (supposedly) web/FM Pro solution that would allow clients to search for & display all their scheduled jobs currently in our job DB. Client enters Password into Search form page, it returns Search Results page that shows all their jobs sorted by date (Find returns only Records that have matching Password field data). At this point, client is viewing all their current records, but has not created a new record. I want to pass the client's Password that they entered in a form field on the Search page to the "Schedule a New Job" page that they get to from the Search Results page. My intention is to reduce the amount of times the client has to enter their password in order to add new records, edit records or view all their current records. Basic Question: how do I get the data from an HTML form field on the Search page passed on as a -Token to the Search Results page and then on to a Schedule New Job (i.e. record) page and so on. I have other issues with this web/FMPro solution, but this token passing dilemma is my main concern right now. Anyone have suggestions or other resources to look at that explain Token Passing clearly & concisely?
Anatoli Posted May 11, 2001 Posted May 11, 2001 My syntax for links is: FMPro?-db=detobj.fp5&-lay=CGI&-format=hledani1.htm&sleva=[FMP-field: sleva]&-Token.1=[FMP-field: kategorie_det]&-Token.2=0&-Token.3=[FMP-field: klic]&-Token.4=0&-Token.5=[FMP-field: heslo]&-New
Partha Posted June 8, 2001 Posted June 8, 2001 Hi, If you're using the FMPro Web Security (and not Lasso, or some other middleware) then all you need to do is use the [FMP-ClientPassword] tag that automatically passes the client password from page to page. If you are using FileMaker's built-in web security database, the FileMaker passes the users name, password, access rights and other information on its own in the session.
Simon Posted June 10, 2001 Posted June 10, 2001 If you are not using the above methods and your password is a field in the database, which I presume it is as that way they can have multiple jobs against them you do the following. Once they have entered their password and found their jobs you would add a link that has this (using your database name and fields) [fmp-linkrecid: format=addnewjob] The think of the above is that the page created has the new job form on it but is populated with the first record found in the search the guy just did. This means that you only have to put on the form on the next page hidden tag line <type="hidden" name="password" value="[fmp-field: password"> This will add the users password to the database. If you do wish to go to another page that isn't using this guys details as a find then you would add either &-token.1=[fmp-field: password] to the url or <type="hidden" name="-token.1" value="[fmp-field: password]"> On the following page if you wished to use this token you would add either &password=[fmp-currenttoken:1] to the url or <type="hidden" name="password" value="[fmp-currenttoken:1]"> and if you then wish to take the token on to the next page as well you would add &-token.1=[fmp-currenttoken:1] to the url or <type="hidden" name="-token.1" value="[fmp-currenttoken:1]"> I hope this helps Simon In the next page you would have
Recommended Posts
This topic is 8636 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 accountSign in
Already have an account? Sign in here.
Sign In Now