<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JSL to add event handler in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/336101#M58341</link>
    <description>&lt;P&gt;Nevermind,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After locating Add Hyperlinks to Columns in the online help, I was able to locate the code to add hyperlinks as expected.&amp;nbsp; Should have known that the help manual would have had the solution.&amp;nbsp; If only I looked a little harder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Create hyperlink for URL column
:Current Firmware URLX &amp;lt;&amp;lt; Set Property(
    "Event Handler",
    Event Handler(
        Click(JSL Quote(Function( {thisTable, thisColumn, iRow}, Open( Char( thisTable:thisColumn[ iRow ] ) ); );)
        ),
        Tip(JSL Quote(Function( {thisTable, thisColumn, iRow}, "Open " || Char(thisTable:thisColumn[ iRow ] ) || " in a web browser."; );)
        ),
        Color( JSL Quote(Function( {thisTable, thisColumn, iRow}, 5; );) )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 21 Nov 2020 14:30:14 GMT</pubDate>
    <dc:creator>terapin</dc:creator>
    <dc:date>2020-11-21T14:30:14Z</dc:date>
    <item>
      <title>JSL to add event handler</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/336081#M58340</link>
      <description>&lt;P&gt;I'm trying to add an event handler column property using the following code but it isn't working.&amp;nbsp; I can manually apply the property, but can't figure out a script based method.&amp;nbsp; Can this be done by JSL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Create hyperlink for URL column
:Current Firmware URL &amp;lt;&amp;lt; Add Column Properties(
    Event Handler,
    Function( {thisTable, thisColumn, iRow},
        Web( Char( thisTable:thisColumn[iRow] ) ); // open a web page
    )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:22:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/336081#M58340</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2023-06-10T23:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to add event handler</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/336101#M58341</link>
      <description>&lt;P&gt;Nevermind,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After locating Add Hyperlinks to Columns in the online help, I was able to locate the code to add hyperlinks as expected.&amp;nbsp; Should have known that the help manual would have had the solution.&amp;nbsp; If only I looked a little harder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Create hyperlink for URL column
:Current Firmware URLX &amp;lt;&amp;lt; Set Property(
    "Event Handler",
    Event Handler(
        Click(JSL Quote(Function( {thisTable, thisColumn, iRow}, Open( Char( thisTable:thisColumn[ iRow ] ) ); );)
        ),
        Tip(JSL Quote(Function( {thisTable, thisColumn, iRow}, "Open " || Char(thisTable:thisColumn[ iRow ] ) || " in a web browser."; );)
        ),
        Color( JSL Quote(Function( {thisTable, thisColumn, iRow}, 5; );) )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Nov 2020 14:30:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/336101#M58341</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2020-11-21T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to add event handler</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/336254#M58362</link>
      <description>&lt;P&gt;just a hint:&lt;/P&gt;&lt;P&gt;to solve this type of scripting tasks (add formula, add properties, add event handler),&lt;/P&gt;&lt;P&gt;it may always be a good way to have a working table with that properties and look into the table script&lt;/P&gt;&lt;P&gt;(red triangle --&amp;gt; copy table script), there is the code to replicate the table functionality!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2020 15:26:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/336254#M58362</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-11-22T15:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to add event handler</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/337109#M58451</link>
      <description>Didn't know that feature existed. Thanks for pointing it out. That would have made the scripting process a whole lot easier.</description>
      <pubDate>Tue, 24 Nov 2020 17:05:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-add-event-handler/m-p/337109#M58451</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2020-11-24T17:05:49Z</dc:date>
    </item>
  </channel>
</rss>

