{"id":1062,"date":"2012-11-28T11:26:14","date_gmt":"2012-11-28T09:26:14","guid":{"rendered":"http:\/\/hasselba.ch\/blog\/?p=1062"},"modified":"2012-11-28T22:24:44","modified_gmt":"2012-11-28T20:24:44","slug":"xsnippets-viewpanelhelper","status":"publish","type":"post","link":"https:\/\/hasselba.ch\/blog\/?p=1062","title":{"rendered":"XSnippets: viewPanelHelper"},"content":{"rendered":"<p>I have added a new XSnippet, the <a title=\"openntf.org - viewPanelHelper - To keep selection of documents in a view\" href=\"http:\/\/openntf.org\/XSnippets.nsf\/snippet.xsp?id=viewpanelhelper-to-keep-selection-of-documents-in-a-view\" target=\"_blank\">viewPanelHelper<\/a>. The code helps to keep the selection of the selected documents in a view panel even if pager is used or categories are expand or collapsed.<\/p>\n<p>It is not required to modify the view: Only the script and the hidden field must be added to the facets section of the panel and the CSJS class &#8222;viewPanelHelper&#8220; must be added to the XPage (the class is loaded only once and can be stored in a separate CSJS resource file).<\/p>\n<p>The selected documents are stored in the hidden field &#8222;viewPanelSelectedIds&#8220;.<br \/>\nTested in IE 9 and FF 15 &#8211; 17.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have added a new XSnippet, the viewPanelHelper. The code helps to keep the selection of the selected documents in a view panel even if pager is used or categories are expand or collapsed. It is not required to modify &hellip; <a href=\"https:\/\/hasselba.ch\/blog\/?p=1062\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,75,9,76,74,40],"tags":[33,8,7,4,25,5,12,3,92],"class_list":["post-1062","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-dojo","category-javascript","category-ssjs","category-xpages","category-xsnippet","tag-8-5-3","tag-dojo","tag-domino","tag-js","tag-partial-refresh","tag-ssjs","tag-web","tag-xpages","tag-xsnippet"],"_links":{"self":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1062"}],"version-history":[{"count":5,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1062\/revisions"}],"predecessor-version":[{"id":1065,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1062\/revisions\/1065"}],"wp:attachment":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}