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 REALLY hard [FMP-ElseIf]

Featured Replies

[FMP-If:([FMP-CurrentFind][FMP-FindValueItem][/FMP-CurrentFind].Eq.[FMP-Field:Login_Match])]

surveyerror.html

[FMP-Else][FMP-field:URLLink][/FMP-If]

Does not quite work. I am sure I just have the format a little wrong. Any suggestions?

Larry

FMP-CurrentFind does not work with FMP-If, at least not with the CDML that comes with FM4-FM6 (I don't know if it works in Lasso).

However, there is a solution with a JavaScript function called GetTerms that I had posted years ago in the fmwebtalk maillist (I think it must have been 2000 or 2001).

The name-value pairs of the current find are passed to this function, which parses them and creates a redirect to another page. The GetTerms function must be on the result page.

Instead of redirect you could also do something different, e.g. write some HTML code to your page.

Feel free to adapt my example to your needs:

<html>

<head>

</head>

<body>

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">

function GetTerms(dummy)

{

for (i=0; i<GetTerms.arguments.length-1; ++i)

{

if (GetTerms.arguments == "issn") var issnval=GetTerms.arguments[i+1];

if (GetTerms.arguments == "year") var yearval=GetTerms.arguments[i+1];

if (GetTerms.arguments == "volume") var volumeval=GetTerms.arguments[i+1];

if (GetTerms.arguments == "issue") var issueval=GetTerms.arguments[i+1];

if (GetTerms.arguments == "firstpage") var firstpageval=GetTerms.arguments[i+1];

}

var basestring="FMPro?-db=Serials%20Bestand&-lay=WWW&-format=chemport_result.html&-error=chemport_error.html&-find=search&Serials::ISSN="+issnval;

if (yearval > 0) basestring=basestring+"&-op=lte&Jahr_Anfang="+yearval+"&-op=gte&Jahr_Ende="+yearval;

if (volumeval > 0) basestring=basestring+"&-op=lte&Volume_Anfang="+volumeval+"&-op=gte&Volume_Ende="+volumeval;

basestring=basestring+"&-token.0=";

if (volumeval > 0) basestring=basestring+volumeval;

if (issueval > 0) basestring=basestring+"("+issueval+")";

if (yearval > 0) basestring=basestring+"("+yearval+")";

if (firstpageval >0) basestring=basestring+",%20"+firstpageval;

window.location.href=basestring;

}

GetTerms([FMP-CurrentFind]"[FMP-FindFieldItem]","[FMP-FindValueItem]",[/FMP-CurrentFind]"last");

</script>

</body>

</html>

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.