tag:blogger.com,1999:blog-12214002.post5344095907027577058..comments2024-03-09T06:56:57.099-05:00Comments on Let's Wreck This Together...with Oracle Application Express!: Counting clicksJoel R. Kallmanhttp://www.blogger.com/profile/01915290758512999160noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-12214002.post-23394739312858105192011-01-14T11:59:44.291-05:002011-01-14T11:59:44.291-05:00Here you go, Stew.
http://joelkallman.blogspot.co...Here you go, Stew.<br /><br />http://joelkallman.blogspot.com/2011/01/counting-clicks-via-dynamic-actions.htmlJoel R. Kallmanhttps://www.blogger.com/profile/01915290758512999160noreply@blogger.comtag:blogger.com,1999:blog-12214002.post-51124187946209319752011-01-14T10:31:18.268-05:002011-01-14T10:31:18.268-05:00For those of us who haven't used Dynamic Actio...For those of us who haven't used Dynamic Actions yet and aren't as smart as Dimitri, could someone please post the implement using that method?<br /><br />Thanks,<br /><br />StewStewhttps://www.blogger.com/profile/05177922393895344852noreply@blogger.comtag:blogger.com,1999:blog-12214002.post-64155211815802647362011-01-13T07:55:47.223-05:002011-01-13T07:55:47.223-05:00Hi Dimitri,
I love it! Your suggested method, wh...Hi Dimitri,<br /><br />I love it! Your suggested method, while it's specific to APEX 4.0, is much simpler. As a matter of fact, it took me all of 3 minutes to extend my sample application to use your suggested implementation via a jQuery selector (id="link") and a dynamic action.<br /><br />It's at:<br /><br />http://apex.oracle.com/pls/apex/f?p=46009:4<br /><br />Thanks again - I welcome your comments/suggestions/improvements at any time.<br /><br />JoelJoel R. Kallmanhttps://www.blogger.com/profile/01915290758512999160noreply@blogger.comtag:blogger.com,1999:blog-12214002.post-62782614888993059012011-01-13T05:45:43.843-05:002011-01-13T05:45:43.843-05:00Hi Joel,
Nice post and this approach works both i...Hi Joel,<br /><br />Nice post and this approach works both in APEX 3 as 4.0. <br /><br />If I'm allowed to give my view on it, with 4.0 I would have preferred to use a Dynamic Action.<br /><br />It would mean you don't need to define the onclick event on every link you want to track. Instead you could use a JQuery selector like "a" or if you don't want to track all links, you first assign a class to the link and do something like a.link (if link was the class assigned).<br /><br />The nice thing with APEX 4.0 is that these Dynamic Actions give you less moving parts (no custom javascript code, no app process, no onclick code). <br /><br />I would create a dynamic action like: <br /><br />When: <br /> Event: Click<br /> Selection Type: JQuery Selector<br /> JQuery Selector: a.link (if you defined link as the class)<br /><br />True Actions:<br /> Execute PL/SQL Code which has the logic of your Application Process.<br /><br />That is it. Especially with APEX 4.0 my motto is to use as much build in features of APEX as possible and limit as much as possible custom code.<br /><br /><br />This is definitely not to criticise your approach, but to give another solution to the people reading this and who are on APEX 4.0. Hope that is ok with you.<br /><br />DimitriDimitri Gielishttps://www.blogger.com/profile/16295721159626839167noreply@blogger.com