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.

confused about -token and where to assign it

Featured Replies

Hi, I have 3 db's. On main page is a list (overview, organization, etc).

From here user clicks on one (we'll use organization - each link is the same format). All is links, no forms:

<a href="FMPro?-DB=OPD_OrgMain.fp5&-Format=OrgList.html&-SortField=Organization&-FindAll">Organizational Listings</a></td>

clicking on this displays all the organizations which has a similar link which displays all departments within each organization.

On the departments page I want them to click on a department and see all the people associated with that deparment.

<a href="FMPro?-DB=OPD_OrgInst.fp5&-lay=List&-Format=Org_Inst.html&SortField=calc_fullname_abbrev&-Max=10000&-Find">[FMP-FIELD:

calc_org_abbrev]</a></td>

But here I need a search field, "&searchfield=[FMP-currenttoken]", the token would be the department.

How would I set a token like this? I'm just not understanding where this would be set and I've tried several things but, clearly, they ain't workin!

thanks,

ricardito

You would set (define) the token(s) in the link "Organization Listings" (your first example).

It could read in part something like "...&-token.0=giraffs&-token.1=elephants&-token.2=moose&-token.3=janitorial..."

You are allowed up to ten tokens, so if there are more than ten departments, you will have some design problems to overcome.

You would then use the appropriate token in the next link. I believe that the proper syntax might look like "...&searchfield=currenttoken:2&-find">".

Belief is one thing, and

IMHO the -Max=10000 should be shortened to 1000 max. 10000 will probably time out in WC.

Maybe I do not understand the problem, but isn't the [FMP-LinkRecID] better for the job?

Could you use something like this:

<a href="FMPro?-DB=OPD_OrgInst.fp5&-lay=List&-Format=Org_Inst.html&SortField=calc_fullname_abbrev&calc_org_abbrev=[FMP-Field:calc_org_abbrev]&-Max=all&-Find">[FMP-FIELD:

calc_org_abbrev]</a>

Good Luck.

Garry

  • Author

Thanks for all the advice. Garry, you da man! No tokens necessary. I had tried this before but had made a small error. On revisiting it I saw my mistake and voila!

Much obliged.

r

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.