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.

[FMP-IF: FMP-Field:Id .neq. {CurrentToken:1}] ??

Featured Replies

I have tried numerous combinations, apparantly haven't found the key.

Please help me to get this FMP-If statement to work.

(* myself been playing around with the {}, "{}" and FMP- pairs. *)

[FMP-IF: FMP-Field:Id .neq. {CurrentToken:1}]

What is the secret ?

Thanks JItse

Try this:

[FMP-if: id.neq.{currenttoken.1}]

do something

[/FMP-if]

[fmp-if:currenttoken:1.neq.field:Id]

i think....

  • Author

Thanks for all the tips, but still not working.

I wish i could let you see all the combinations i have tried.

This is the very simple code, no other code is interfering:

So my syntax is given problems, but what is the correct syntax then ?

var namelist = new Array()

var Idlist = new Array()

var teller = 0

[FMP-InlineAction: -db=medewerkers.fp5,-FindAll]

[FMP-Record]

[FMP-IF: Field:Id .neq. {CurrentToken:1}]

namelist[teller]="[FMP-Field:VolNaam]"

Idlist[teller++]="[FMP-Field:Id]"

[/FMP-If]

[/FMP-Record]

[/FMP-InlineAction]

Help !

Jitse

I am assuming that you've included all your javascripts within the appropriate <script> tags? Also, I've discovered that the only way to include an Inline Action statement within a <script> tag is to use the document.write call. Can you post the actual code?

Cheers!

weecc

  • Author

Sory for the delay on my side.

I have include this code between script tags.

This is the sample of the code (the actual if statement is changed to get it to work in a different way).

Please explain the document.write call ??? i haven not used it so far, but then again i have only tested the server app on just two browser. Is the document.write() used for compliancy? For what function calls should it me used then ?

Thanks Jitse

I thought that the Field does not need to be declared as such but rather by its name????

[FMP-IF: Id .neq. {CurrentToken:1}]

vs.

[FMP-IF: Field:Id .neq. {CurrentToken:1}]

....or maybe I am still asleep.

smile.gif

I've just tried this and it works for me:

[fmp-if:currenttoken:1.neq.field:id]

if that doesn't work, perhaps you could post your code so that we can better help.

-Carrie

  • Author

Well that is good news that the syntax is correct.

I have not been able to reproduce, but in the mean time i came up with some other problems:

1] Mozilla the whole web servers hangs : had to install a new web companion (upgrade)

2] i have found some minor errors in the code (useless " etc) where safari had no problems with bu IE made a mess

3] The moment i have time i will try the syntax again because now i know it should work

Thanks for all te comfort !

Jitse

Keep you posted on my errors

Jitse

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.