{"id":140,"date":"2016-12-01T08:19:03","date_gmt":"2016-12-01T06:19:03","guid":{"rendered":"http:\/\/geekinto.com\/?p=140"},"modified":"2016-12-01T08:19:03","modified_gmt":"2016-12-01T06:19:03","slug":"oracle-apex-how-to-add-a-new-row-into-tabular-form-by-using-hot-key-js","status":"publish","type":"post","link":"https:\/\/howoracleapex.com\/?p=140","title":{"rendered":"Oracle APEX | How to add a new row into tabular form by using Hot-Key [JS]"},"content":{"rendered":"<p>Dear,<\/p>\n<blockquote><p>Now i share sample to using Hot-Keys [JS] to add a new row into tabular form when pressing <em><strong>Enter<\/strong> <\/em>key.<\/p><\/blockquote>\n<pre class=\"lang:js decode:true \">\/\/ ############################# START HOT-KEYS ############################# \/\/\r\n\/* To get code of key please..\r\nvisit: \thttp:\/\/keycode.info\/    \r\nOR \t\thttp:\/\/www.cambiaresearch.com\/articles\/15\/javascript-key-codes\r\nLicense: Free\r\nResource: www.geekinto.com , [Facebook Group: How to Oracle APEX]\r\nBy: Amr Abdeen [Egypt] 28-11-2016\r\n*\/\r\n\r\n\r\n\r\n\/\/ 13=enter\r\nvar map = {13: false};\r\n$(document).keydown(function(e) {\r\n    if (e.keyCode in map) {\r\n        map[e.keyCode] = true;\r\n\t\t\r\n\t\t\/\/ Add a new row\r\n        if (map[13]) {\r\n\t\t\t\r\n\t\t\t\/*NOW FIRE YOUR COMMANDS ..*\/\r\n\t\t\tjavascript:apex.widget.tabular.addRow();\r\n        }\r\n    }\r\n\t\r\n\t\r\n}).keyup(function(e) {\r\n    if (e.keyCode in map) {\r\n        map[e.keyCode] = false;\r\n    }\r\n});\r\n\r\n\/\/ ############################# END HOT-KEYS ############################# \/\/<\/pre>\n<p><strong>Now watching &amp; following steps..<\/strong><br \/>\n[embedyt] http:\/\/www.youtube.com\/watch?v=pJ7XhVZTO_k[\/embedyt]<\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>Regards<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dear, Now i share sample to using Hot-Keys [JS] to add a new row into tabular form when pressing Enter key. \/\/ ############################# START HOT-KEYS ############################# \/\/ \/* To get code of key please..&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12,2],"tags":[],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-apex","category-jscript","category-oracle"],"_links":{"self":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=140"}],"version-history":[{"count":1,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/140\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}