Skip 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.

A Very Basic Token ?

Featured Replies

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

Have you read the cdml reference database? The syntax for tokens is covered there.

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

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

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.

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

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.

  • Author

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

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.

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.

  • 4 weeks later...

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 smile.gif

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!

Thank you Anatoli.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.