January 16, 200223 yr 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]
January 16, 200223 yr Try this: <A HREF="[FMP-linkrecid: layout=detail, Format=unique_detail.htm]&-Script.PreFind=myscript">[FMP-field: Name_Last]</A> All the best. Garry
January 16, 200223 yr 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