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.

running script from [FMP-linkrecid] before going to format page

Featured Replies

I have the following CDML, and I want to be able to run ascript when someone clicks on the [FMP-linkrecid] link.

I need the script to "pre-run" as it populates a field in the link record, as I need the field value to show up in the output file - unique_detail.htm.

So, when I click on the following link, the script runs and then in unique_detail.htm I can display the value of a record that was populated by the script.

Any ideas?

Thanks,

Tony

-------

Here is my CDML.....

[FMP-record]

<TR>

<TD ALIGN=LEFT VALIGN=TOP>

<A HREF="[FMP-linkrecid: layout=detail, Format=unique_detail.htm]">[FMP-field: Name_Last]</A>

 </td>

</TR>

[/FMP-record]

Try this:

<A HREF="[FMP-linkrecid: layout=detail, Format=unique_detail.htm]&-Script.PreFind=myscript">[FMP-field: Name_Last]</A>

All the best.

Garry

  • Author

Thanks! That worked.... smile.gif" border="0

Well, at least it appeared to work.

Do you know what will occur if two clients make a near-simultaneous request on your script? Can you afford to not know? Do you realize that ScriptMaker is single-threaded whereas the web is multi-threaded?

Perhaps you would be advised to test the possibility.

The script tag is fraught with problems. The scriptprefind and scriptpresort tags are even more laden with problems.

This problem has been widely discussed on this forum. Research may be useful.

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.