dschaal Posted June 21, 2002 Posted June 21, 2002 I am a novice at CDML and programming. Please forgive me but I have read all the messages that relate to tokens and I think I'm just missing that piece of the puzzle that will make it all click for me. I know what the command should be, but could someone explain where these commands are located at? My solution has a search page, followed by a list (a user might get back 1 item or 20). Then I have an "edit" button which goes to a web page and lets them change the information on all fields for the first entry. For simplicity, I have put each section of questions on a web page with a "next" button that lets them continue to the next section of questions (there are a lot of questions). This all works great. When they finish with their first entry, I would like them to be able to go back to the list and select another entry to edit. I know tokens should work. Here are my questions.... Question 1: Which page should I start the token on? Is it the search page or the list? Question 2: Do I have to put a token command on every page passing the token from page to page until the last page when I want them to go back to the list? (There are approximately 10 pages of questions before the last page) Question 3: On the last page, do I use a <A HREF> command to take them back to the list page? Question 4: Is there any special place in the creation of the web pages that the token command should be placed? (i.e., before the header, after the form command, etc.) Sometimes, I get garbage and I think it's because of the location of the command. If anyone could just answer these basic questions....my life would be so much better! Thanks in advance. Donna
Keith M. Davie Posted June 21, 2002 Posted June 21, 2002 Have you read the cdml reference database? The syntax for tokens is covered there.
cannes Posted June 21, 2002 Posted June 21, 2002 hi there i would: 1. put the token on the list page. (depending if users are entering the page with a password) 2. yes i would. otherwise the token will be lost if it is not passed all the time. 3. you could use a <a href with token>back to list</a> or a <form></form> with back button, to go back 4. in your case i would set the token also in the search <form>...</form> on your first page. then i would pass the token within the 'next page' <form>...</form> you could also work with <fmp-if> statements some code in a form: <form action="fmpro" method="post" name="xxx"> <input type="hidden" name="-db" value="yyy"> <input type="hidden" name="-token.0" value="[fmp-currenttoken:0]"> <input type="hidden" name="-lay" value="zzz"> . . . <input type="hidden" name="-format" value="aaa.html"> <input type="submit" name="-find" value="Next Page"></form> or as a link: <a href="fmpro?-db=yyy&-lay=zzz&-format=aaa.html&-token.0=[fmp-currenttoken:0]&-token.1=bbb&-findall">go somewhere</a> above there where 2 tokens to pass. token.0 and token.1 i hope this helps a bit best mimmo
Garry Claridge Posted June 21, 2002 Posted June 21, 2002 You could look at using a Cookie to do this. It would save having to pass a Token from page-to-page. Check [FMP-Cookie] in the "CDML Reference" database. All the best. Garry
Anatoli Posted June 21, 2002 Posted June 21, 2002 I hate to oppose, but FM Tokens are reliable. FM Cookies in IE are just not reliable enough. Furthermore, duration values above 9999 are inheriting another quirk. Simply put -- whatever I've tried, cookies never worked. I posted several questions here and nobody helped. Cookies generated outside FM WC with JS are much better and more reliable. Still -- Tokens never failed.
Garry Claridge Posted June 21, 2002 Posted June 21, 2002 I've used Cookies for almost exactly the same application and they have worked fine! However, I have used Javascript to retrieve the Cookie on the last page; it contained a RecordID. Thanks for the warning though. Garry
Anatoli Posted June 23, 2002 Posted June 23, 2002 I believe the NN was OK with FM cookies. I am using also JS cookies with FM and it works in NN and IE. Only IE and FM cookies were quite problematic combination. The "autologin" system based on this was working very unreliably. I am now using JS/FM autologin through URL bookmark with login details and it is OK.
dschaal Posted June 24, 2002 Author Posted June 24, 2002 Thanks for the suggestions....I'll try what I can when I can. As for the CDML reference database....it's absolutely worthless if you aren't a programmer. Thanks! Donna
Keith M. Davie Posted June 24, 2002 Posted June 24, 2002 Donna, you wrote, "As for the CDML reference database....it's absolutely worthless if you aren't a programmer." I'm not a programer. I'm a developer of FileMaker/cdml solutions. For a developer of such solutons the cdml reference database is an invaluable tool. Good luck to you.
Vaughan Posted June 24, 2002 Posted June 24, 2002 Donna -- print out the CDML reference database and use it like a book. No, it's not a step-by-step tutorial; it's a concise explanation of what each CDML tag is and does, and how it's used.
Anatoli Posted July 21, 2002 Posted July 21, 2002 Donna -- only few people here are "programmers". We all need reference of some kind -- the CDML is the best because it is the only one. If you need example, you can ask here, someone will have the time to reply. I am not programmer by nature, I am problem solver. On MacExpo I noticed nice T-shirt: I am not unemployed, I am a Consultant If you want to help with Web FM solution, you need CDML Reference or something better. P.S. Keith -- you did quite nice job with your CDML starting kit -- as I remembered!
Recommended Posts
This topic is 8230 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