{"id":1500,"date":"2015-10-31T21:14:13","date_gmt":"2015-10-31T21:14:13","guid":{"rendered":"http:\/\/psws.glenbard.org\/index.php\/2015\/10\/31\/powerschool-grid-widget\/"},"modified":"2016-04-13T13:49:56","modified_gmt":"2016-04-13T19:49:56","slug":"powerschool-grid-widget","status":"publish","type":"post","link":"https:\/\/docs.glenbard.org\/index.php\/ps-2\/powerschool-grid-widget\/","title":{"rendered":"PowerSchool Grid Widget"},"content":{"rendered":"<div class=\"nolwrap\"><p>PowerSchool has create a grid widget that allows filtering and sorting based on an angular created table.\u00a0 This widget is a quick, easy way to add a lot of additional functionatlity.<\/p>\n<p>This article is only useful for those using PowerSchool and have the angular basics.\u00a0 If the following does not make senses to you, please learn the basics here <a href=\"https:\/\/angularjs.org\/\">https:\/\/angularjs.org\/<\/a><\/p>\n<ul>\n<li>ng-repeat=&#8221;row in table.rows&#8221;<\/li>\n<li>{{row.school}}<\/li>\n<li>app=angular.module(&#8220;someModule&#8221;,[])<\/li>\n<li>$scope.rows=[{&#8220;col1&#8243;:&#8221;data&#8221;,&#8221;col2&#8243;:123},{&#8220;col1&#8243;:&#8221;data&#8221;,&#8221;col2&#8243;:123}];<\/li>\n<li>ui_examples page<\/li>\n<\/ul>\n<p>Now that the requirements are set forth, this article is meant to suppliment the information already available in the examples page in PowerSchool.\u00a0 This is a collections of gotchas\u00a0 that have been discovered.<\/p>\n<table style=\"width: 653px; height: 781px;\" border=\"0\">\n<tbody>\n<tr>\n<th>Symptom<\/th>\n<th>\u00a0Fix<\/th>\n<\/tr>\n<tr>\n<td>\u00a0The filters appear, but the add button does not work<\/td>\n<td>\u00a0This is usually acause by having and incorrect\u00a0 pss-sort-fields attribute. Check the spell and that alll the columns you want filter on have this attribute<\/td>\n<\/tr>\n<tr>\n<td>\u00a0Sorting a column does not work or sorts the wrong column<\/td>\n<td>\u00a0Make sure you pss-sort-fields match correctly to your columns when creating the rows of data<\/td>\n<\/tr>\n<tr>\n<td>\u00a0The table does not appear but the total does<\/td>\n<td>\u00a0This can be cause by missing the ID for the div that contains data-pss-grid-widget<\/td>\n<\/tr>\n<tr>\n<td>\u00a0The table does not appear and the total does not appear total.<\/td>\n<td>\u00a0This can be cause by several missing pieces.<\/p>\n<ul>\n<li>Check to make sure the data-data is correct<\/li>\n<li>Check you data-filtered-data is set a variable that is not being used in the controller<\/li>\n<li>Make sure to use the $scope variable<br \/>\nIf you do not then you will have to prepend the controller name (not the alias) alias to this attribute<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>PowerSchool has create a grid widget that allows filtering and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[74],"tags":[],"class_list":["post-1500","post","type-post","status-publish","format-standard","hentry","category-ps-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/posts\/1500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/comments?post=1500"}],"version-history":[{"count":1,"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/posts\/1500\/revisions"}],"predecessor-version":[{"id":2992,"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/posts\/1500\/revisions\/2992"}],"wp:attachment":[{"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/media?parent=1500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/categories?post=1500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.glenbard.org\/index.php\/wp-json\/wp\/v2\/tags?post=1500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}