{"id":86,"date":"2009-12-24T15:13:32","date_gmt":"2009-12-24T15:13:32","guid":{"rendered":"http:\/\/mahenderpal.wordpress.com\/?p=86"},"modified":"2009-12-24T15:13:32","modified_gmt":"2009-12-24T15:13:32","slug":"send-parameter-from-navbaritem","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=86","title":{"rendered":"Send Parameter From NavBarItem"},"content":{"rendered":"<p>Sometime we need to send parameter to our custom page from NavBarItem, but as NavBarItem does not support JavaScript property so we can pass parameter to our custom page\u00a0using openIsvWin function (<strong>Unsupported<\/strong>)<\/p>\n<p>Code to create NavBarItem<\/p>\n<p>&lt;NavBarItem Icon=&#8221;\/_imgs\/ico_18_debug.gif&#8221; PassParams=&#8221;1&#8243; URL=&#8221;<a href=\"http:\/\/mypage.aspx\/\">http:\/\/MyPage.aspx<\/a>&#8221; Id=&#8221;<strong>MyItem&#8221;<\/strong>&gt;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;Titles&gt;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;Title LCID=&#8221;1033&#8243; Text=&#8221;ISV Default&#8221; \/&gt;<br \/>\n\u00a0\u00a0\u00a0\u00a0 &lt;\/Titles&gt;<br \/>\n\u00a0&lt;\/NavBarItem&gt;<\/p>\n<p>Paste this code on formload event<\/p>\n<p>navBarItem=document.getElementById(&#8216;<strong>MyItem<\/strong>&#8216;);<br \/>\nif(navBarItem!=null)<br \/>\n{<br \/>\nnavBarItem .onclick = function() {<\/p>\n<p>openIsvWin(&#8216;http:\/\/MyPage.aspx?ParameterName=&#8217;+crmForm.all.ParameterFieldName.DataValue, false, -1, &#8221;);<\/p>\n<p>}}<\/p>\n<p>Hope it will help somebody at right time \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometime we need to send parameter to our custom page from NavBarItem, but as NavBarItem does not support JavaScript property so we can pass parameter to our custom page\u00a0using openIsvWin function (Unsupported) Code to create NavBarItem &lt;NavBarItem Icon=&#8221;\/_imgs\/ico_18_debug.gif&#8221; PassParams=&#8221;1&#8243; URL=&#8221;http:\/\/MyPage.aspx&#8221; Id=&#8221;MyItem&#8221;&gt; \u00a0\u00a0\u00a0\u00a0\u00a0 &lt;Titles&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;Title LCID=&#8221;1033&#8243; Text=&#8221;ISV Default&#8221; \/&gt; \u00a0\u00a0\u00a0\u00a0 &lt;\/Titles&gt; \u00a0&lt;\/NavBarItem&gt; Paste this code on formload event navBarItem=document.getElementById(&#8216;MyItem&#8216;); if(navBarItem!=null)&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=86\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23,10],"tags":[],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/86"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":0,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}