Jump to content

This topic is 7905 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

This topic is 7905 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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