Add a Filter for Date Range option in a list - date

Here is a little background on the task:
My client has a sharepoint site that has a list of data. One of the columns or fields is a date field, this date is entered manually using MM/DD/YY Format.
My client has requested me to add an option where they could filter the columns by a range of dates on the webpart view.
I read this guide: https://www.nothingbutsharepoint.com/sites/eusp/pages/sharepoint-list-filtering-by-date-range.aspx and i got it to work, but it seems to be a bit buggy, meaning that sometimes the list will not get filtered by the specified dates..
Another issue with this method is that there is no Submit/Go button.
FROM: [ Text Field ] TO: [ Text Field ] [GO Button]
My client would love to have something like the example above where there are two text fields next to each other and a button that they can click to make the filter activate.
I searched for hours and hours and was not able to find something like this.
Do you guys know of a solution and if so, provide me with a link or guide, on how to achieve this problem? Thanks
EDIT:
It seems that there is a Apply Filters Button Web Part that does what i need. I added it and it seems to work Okay. I have to click Apply Filters TWICE in order for it to work.. weird huh? is there a fix for that?
FYI: i followed the guide linked above and just added the apply filters button.

Okay i fixed it,
It was because i was adding the date filter web parts to the library itself, and i was supposed to create a page for it and add my web-parts in there.

Found a solution that'll load the filters on first click for me.
In SPD, under the web part that displays the list items (XsltListViewWebPart), change these two to "True":
ClientRender="True" and IsClientRender="True"
Similar issues mentioned in this thread gave insights to button load sequences and why it doesn't render results on the first click.

Related

Instantsearch filter by custom function

Due to certain limitations I am not able to index categories and subcategories so I need a way to be able to filter a list of manually created items. It's actually a two part thing:
1: I am filtering the visible results via a toggle switch
2: I now have a submenu (also manually created) with multiple items which need to be sortable as well.
So when I click on any item it filters. The behavior should be the same as in this demo.
This part, to be specific:
The issue I'm facing is that I don't know if this is possible at all. Yes, I looked at the obvious places but could not find anything helpful. Again, the list is created manually so I'd need some custom function to highjack the instantsearch results, I guess.
Any help is much appreciated.

Swift - Problems following & unfollowing users when searched via UISearchController [Parse]

Good Afternoon,
Today I am having some issues with parse.
I have created a UISearchController, loaded my users from parse so I can search for individual ones and I have added a following and unfollowing feature.
My Problem is when I search for a specific user and try to follow him: So I search for a specific user say "test" it shows up as it should, but when I click follow and then go back to parse to see if "I" have followed test I can a different result.
It says I have followed for example "tester" which was the first user created. Its seeming to follow the Cell and now the userId...
After that I manged to get the users in alphabetical order, but same problem here except it follows the first user in alphabetical order for example if I have a username that begins with an "A"!
I'm not sure how to fix this issue, so I'm hoping someone here does..I accept and appreciate all kind of tips and answers!
You need to check if the UISearchController is active inside of didSelectRowAtIndexPath. Right now you are only selecting from the users array instead of from the searchResults array.
I also highly recommend refactoring your code away from using objectIds and use pointers. It is much easier to query against and work with pointers rather than directly accessing their objectIds.
Here's a link to another question that I've previously answered where I give a complete example of using a UISearchController to search by usernames in Parse.. Hope this helps!

How to track checkboxes with Django and endless pagination?

I am a Django noob and have a situation that goes beyond the basic documentation, etc.
I am updating an ordering webpage that has a form structured as follows:
several text boxes, etc to gather general info (name, date, etc)
two separate tables for selecting (via checkbox) catalogs that are generated/managed using endless_pagination. Each table can have thousands of records, hence the endless_pagination. The first column in each table is a checkbox with value = catalog.id.
a textbox where the user can manually enter catalog IDs
a submit button
I am not sure how to keep track of what a user has selected in the two paginated tables since the checked boxes are lost when choosing a different page. Also, when the user flips back and forth between the pages, the previoulsy checked catalogs will need to be re-checked(since the checked state is not maintained). I am also not sure which tool(s) to use to deal with this.
My thought is to use JavaScript (with which I have minimal experience) to update a list of catalog IDs whenever a checkbox is checked/unchecked and:
- and attach that list to the form or
- update a variable in the form or
- send as a variable separate from the form, whichever is possible/makes more sense.
I'm hoping that maintaining a list of catalog IDs is possible because the next iteration of this form will likely include some sort of filtering so I'm trying to devise a solution that will not have to be reworked later.
I have reviewed a lot of posts but I believe the closest solutions are rendered useless because of the endless_pagination.
Let me know if further clarification is required. Thanks in advance for any suggestions.
UPDATE
I tried using JavaScript to store the catalog IDs in an array when a checkbox is checked. This does not work when a user selects another page in the pagination. The array of checked catalog IDs is lost when the page 'reloads'.
I'm running into this problem right now as well. I'm handling this by writing the checked items to localStorage so they carry across to page 2, 3, etc.. as well as show up as already checked when you go back to page 1. Then every time the page loads, either find and check the existing checkbox, or create a hidden input with the appropriate name and value and append it to the main form.
var selected_items = []
function add_item_to_checkbox(item) {
localStorage.setItem('selected_items', JSON.stringify(selected_items));
checkbox.on("click", add_item_to_checkbox);
bahh... Just look at my jsfiddle it's easier to read and yeah. I don't have to type JS into a textarea on stackoverflow.
Here is my javascript minus a few things that are specific to my code. I'm sure it could be improved upon but it works really well for my application.

No rights on page-module level

I encounter a strange error. On page-module level i´m not allowed to create new page elements. If i do the same via the list-module page-elements are created and i can edit them (even in the page-module).
Also, if i created a flexible content element - e.g. columns - (via the list module) i CAN create new elements in the flexible content element, even in page module.
New elements are always on TOP of the page, meaning the first entry, and i can´t drag and drop them. Well, i can, but changes do not come in effect. To sort the elements I have to edit the page properties, and sort content.
The user has every right(!) given by the user settings, and it is TYPO3 4.7.4
Does anyone know where i have to look for a solution? Thanks in advance!
Edit 1
This error appears in the log:
Attempt to insert record on page '[root-level]' (0) where this table, tt_content, is not allowed (msg#1.1.11)
Again: Creating Elements IS working via the List-Module.
This error is causen because the field t3ver_swapmode in the page table was removed since TYPO3 4.7 (Maybe in combination with TemplaVoila).
I dont know whats exactly going on here (didnt had the time to find that out), but the solution is of cource simple. I uploaded my fix to the TYPO repository under the key swapmodefix http://typo3.org/extensions/repository/view/swapmodefix
The extension appears in a couple of hours, good luck!
You need to select a page inside the pagetree first. You may not create content elements on the root page.
It might be that the selection is lost, but still visibel. Just click the page again.

How to display custom fields in QuickSearch results (RequestTracker)?

If I click one of the links in the QuickSearch Box inside the main dashboard it lists all tickets correctly, the problem is that I want all my custom fields to be displayed in the quickSearch results.
I already tried setting $DefaultSearchResultFormat in the config file, but it will show the same custom fields for all searches. I have different custom fields in every queue. Is there a way to set a defaultSearchResultFormat for each queue?
I read everywhere and RT doesn't provide a way to do that for every queue. I solved by saving some searches and adding a new dashboard with those links.