- The IMS - Meatball solution deploys through the site collection's master page. Thus all pages natively run the solution.
- The runtime enviornment requires jQuery, specifically Ajax, to function. Most DoD SharePoint environments load jQuery to support other solutions. Please edit the master page to confirm its reference.
-
-
All select list values, by default, will be replaced with circles of
different colors.
-
A popover appears when you mouse over the circle.
-
The popover displays the column and row name, all available choices
for the cell, the currently selected value, the last history change
made, and a show more button. Clicking on any choice will update the
list and page in real time.
-
Clicking on show more, will open a history panel.
-
It displays all historical changes, and comments made for that
particular cell. An input area at the bottom of the history panel
allows for custom comments to be made.
- The history feature allows users to track changes over time, and attach reasons for said change. For example, why the production status shifted from green to yellow. Thus reduces time needed for decisions to be made.
-
All select list values, by default, will be replaced with circles of
different colors.
-
-
<script> var ims_meatball_hide = false; var meatball_debug = false; var meatball_ignore = ["Meatball Ignore"]; var meatball_text = ["Meatball Text"]; var meatball_override = [ {value: "50", color: "#FF69B4"}, {value: "40", color: "#900C3F"}, {value: "30", color: "#581845"}, {value: "20", color: "#FFC300"} ] </script> -
To add custom values:
- Add a script editor to the page, or use one on the page.
-
Write the following inside the script editor:
<script> var meatball_override = [ { value: "", color: "" }, { value: "", color: "" }, ]; </script> - The values must line up with the custom values. The colors can be words or # code. Color Code can be helpful here.
-
Example:
<script> var meatball_override = [ { value: "Hi", color: "orange" }, { value: "Editor", color: "brown" }, { value: "You", color: "black" }, { value: "Got", color: "gray" }, { value: "This", color: "#ee00ee" }, ]; </script>
-
To set columns to be ignored:
- Add a script editor to the page or use one on the page.
-
Write the following into the script editor
<script> var meatball_ignore = []; </script> - Inside of the array, add in the name of the column to be ignored.
-
Example:
Column name: "Test Column"
<script> var meatball_ignore = ["Test Column"]; </script>
-
To set columns to display text instead of a meatball:
- Add a script editor to the page or use one on the page.
-
Write the following into the script editor
<script> var meatball_text = []; </script> - Inside of the array, add in the name of the column to be ignored.
-
Example:
Column name: "Test Column"<script> var meatball_text = ["Test Column"]; </script>
-
The following should help fix most issues with the script.
- Check the page's lists. Ensure the proper lists are all select lists.
- Verify internal and external names for each column. The solution uses the internal column names for information transfer, and the external column name for visual changes.
- Verify column names haven't been changed. If the external names change, then the values in the customization script will not run correctly.
- Verify the values in each select column and ensure they match with defaults or overrides. If the colors and values script lacks or contains incorrect values, then the meatballs will revert to inheriting the color from the page. For example, a black page will cause black meatballs.
- If error persists, then contact the developers.
-
For Developers
- Add a script editor to the page or use one on the page.
-
Write the following into the script editor
Now, any error will appear on a notification design to remain on the page no matter what.
<script> var meatball_debug = true; </script> - To turn off debug mode, either delete { var meatball_debug = true; } or change it to { var meatball_debug = false }
-
To deploy a new version of the meatball solution
- Download a copy of current meatball
- Unless changes were made to the start function, copy and paste the start function over the new version's start function (Environmental differences apply)
- In the meatball init function, this.$popoverBody's padding needs to be adjusted to .5rem (Environmental differences apply)
- If new idiosyncrasies emerge, please update the documents
mathgrad/Sharepoint-Easy
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|