I'm using the Tapku Library (http://developinginthedark.com/posts/iphone-tapku-calendar-markers) to implement a Monthly Calendar View for my application, but the thing is that I only want certain days in the Calendar View to be selectable, based on an array of NSDates that I have.
I suppose I could handle this in didSelectDate, but I'm hoping that there is a easier way to go about this. Any advice?
Actually, if what you want is for only certain days to be selectable, then using didSelectDate is at first kind of pointless, because that day was already selected.
What you actually need, according to your description of the problem, is for only certain "day squares" respond to touch input , AND, somehow convey to the user that a certain "day square" is disabled or unselectable, by giving the square a disabled look.
The problem is that Tapku Calendar doesn't allow you to do that, unless you go about and adapt the source code to your liking.
So, going back to didSelectDate, as it seems it's your only choice of handling user selection/interaction right now... the user is going to be able to select dates that you ideally didn't want to be selectable, so you should manage that appropriately to your situation.
Related
I have a database where I don't want some fields showing depending on data in other fields. I'm still new to VBA, having learnt how to do things I need via the internet (there's not much call for it in my job so like to try it out on side projects) for the things I need and have managed to create some code that hides certain fields that aren't needed, depending on what's been entered in another field and that works okay, if not perfectly (I'd like it to only work on the current record and not all of them at once but will worry about that later). My problem is, if I'm entering information onto a record and any of those fields become invisible exactly as I would want them to, then if I have more records to complete and load a new record, those hidden fields are also hidden on the blank record before any data has been entered and I want each new record to show all fields from the outset.
Another thing I've noticed is that if I close the database, next time I go into it the hidden fields have unhidden themselves again so I know I'm missing something important.
Here's a screenshot of a bit of the code where I want 2 other fields (What_reason and Date_sent_to_new_owning_School) to be visible depending on whether the answer in the current field after update is "Standard" or "Non-standard":
I'm sorry if this is really entry-level stuff but I AM entry level and trying to learn. This bit does work, albeit not perfectly as I'd like it to only work on the record I'm in at the time, and not go through and hide that field in all the other records at once (which it's doing).
I've searched everywhere but can't find the answer and although I've tried, I'm nowhere near good enough at VBA to try and use common sense to work it out. Is this something that can be done? I'm okay with computers generally and with Access too but I'm aware there's an awful lot I don't know and this is why I'm trying to do new things and learn stuff that I've not used before. I have tried all day to get this to work but am admitting defeat and am hoping somebody here will be able to help me. I'll probably need 'idiot level' advice if that's possible, I know my limitations. :)
Do you know how to use the Event tab in the Property Sheet? You can set all of your fields to [field].Visible = True on either: On Current, On Load, or On Open
Screenshot of the Property Sheet and for the field that determines the visibility of all of the other fields; you can use the Event: After Update so that way when you click/tab away from that field, it'll make those changes for you!
Property setting affects ALL instances of control. Control will be visible/not visible for all records depending on conditions of current record. Therefore, dynamically hiding controls on form set in Continuous or Datasheet will NOT give the desired result of
only work on the current record and not all of them at once
Db is not going to 'remember' dynamic setting - code needs to be executed when form opens and/or navigating records - so it is needed in OnCurrent event as well as control's AfterUpdate.
Conditional Formatting can dynamically enable/disable textbox/combobox by record although control is still visible.
Here's a problem that's easy to see in the standard demo for fullcalendar-scheduler showing external event drag-n-drop here:
https://fullcalendar.io/js/fullcalendar-scheduler-1.6.2/demos/external-dragging.html
Placing an event properly onto the calendar requires grabbing an event from the far left and dropping it onto the correct room and time. However, the rooms are not displayed in either the week or month views.
The problem is that you can still drag an event onto the calendar in week and month view, but there's no way to select the room in those views so you're just creating errors. Try this. Go into Month view, drag an event over to the calendar and it appears where you dropped it. Now go back to the Day or 3 Day views and the event you just dropped is not visible since it's not associated with a valid room.
So, the question is, how can I disable drag/drop based on the view?
I tried using dropAccept with a function (something like if view=month return false), but dropAccept doesn't seem to know the current view.
I'm not positive, but I think both drop and eventReceive are called after it's too late and the event is already on the calendar.
By doing it on those views, you're not creating an error as such, you're just adding an event which doesn't have a resource associated with it. Therefore it won't show up in a resource-aware view. Remember that scheduler is just an add-on to the main fullCalendar product, so there are views in existence (including month and week) which are part of the main product, and thus are not resource-aware, because the resource concept doesn't exist in that product.
You can make the week view resource-aware by following these instructions: https://fullcalendar.io/docs/vertical_resource_view/getting_started/, but there's nothing you can do about the month view (simply not enough space in the view to make the GUI workable).
Having said that, you can use the getView https://fullcalendar.io/docs/views/getView/ method anytime to ask the calendar what the current view is, and use that info to decide whether to prevent them from dragging onto that view, or you could even pop up some extra UI of your own to ask them to choose a resource, and then add the resource manually to the event data before adding it to the calendar.
Use custom view config options in fullcalendar settings:
I.e. views.week.droppable = false
I have used this tutorial to color the events in the calendar based on two scenarios (internal & external): Color-Code Events on a SharePoint Calendar
The problem occured in the calendar webpart whereas I cant see all the events that are filled in the events.
Any idea to fix the webpart view..
I've used this same tutorial with much success.
You don't provide too much detail in your question, but as a starting point I would double check this first:
Make sure you have "Yes" selected under "Require that this column contains information"
Double check that any existing items in the calendar list have the "Category" column filled in - you can do this easily from the data sheet view (as they show in the tutorial) or from Excel or Access. If you had a lot of old entries it would be an easy thing to miss.
If the above doesn't help. Perhaps you can share some more detail of the setup or screen shots so we can figure out what you're missing :-)
I have a table that has a series of filters across the top of it (as per usual.) This table feeds a massive graph that has multiple series of data in it. In order to hide different series of data I have grouped the information in the tables. I can then click on the minus button to remove a series of data from the graph by collapsing the group, or click the plus button to add it back in the same way. Yes, I know, not the best solution. It was an early effort, what can I say? My default is for all data to be hidden (all groups collapsed).
I have a user (a very important user) who wants to be able to use the filters across the top to find the specific series they are looking for. The filter will find the collapsed series just fine, but the series will not display because it is collapsed.
So, What I'm trying to do is get all groups to auto-expand when the filter is activated. This should work as a stop gap measure until I can simply redesign the chart.
The Problem: I can't figure out how to make Excel notice when the filter has been clicked on (or otherwise used). I've tried using Worksheet_Change and Worksheet_SelectionChange, but neither of them activate the code I have set up in the listener. That code, FYI, checks to make sure the filter is in use and adjusts the groupings accordingly. It should work fine if I can just get Excel to notice it's existence.
I've looked into making my own listener, but there's nowhere in the code I can insert it to make it activate. I just need a listener that will notice when the filter has been changed.
Any thoughts? After an hour of searching I'm stumped...
Okay, after some research I figured out a work around. The big problem here is that changing a filter does not raise any events that can be heard by VBA. Big problem.
Simple Solution: Create something that will activate a listener.
What I ended up doing was finding a cell somewhere outside of my table that wasn't going to be affected by the collapses, then I added a very simple formula (=Count(H:H)). Now whenever the table is collapsed the count is affected which activates the Worksheet_Calculate listener. And voila! I can dynamically change the groupings all I want :-).
So there you have it. If you need to detect a filter being activated via a Worksheet listener, you just need to set up a formula to activate the calculate listener.
Reference: [MSDN Article on the same thing].1 There is apparently a much more robust way to fix this problem as well which is detailed in the article.
You mentioned table, so assuming it's PivotTable you may try,
Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
If it's simply a Targe Range change then,
If Intersect(Target, Range("A2"))
I'm building a Windows 8 app and have come to a point where I don't understand how to solve my problem. (I'm new to C# development in general, so some things are more foreign to me not counting the new WIN-RT paradigms)
I've created a XAML file that displays 1 week (Sunday - Saturday) and populates each day column with the date of the month for that day (20-27 for ex.) for right now, it just makes a new Calendar object and uses the current date.
Here's my problem:
I'd like to implement a flipview to change from week to week, forward and backwards in time (this is very similar to the functionality in the Windows 8 Calendar app)
I do not know how to move from one week to another, because most demos online use image file resources. I want to move to the same XAML file I have, with just differently populated number fields, etc.
Thank you for your time!
Since FlipView is an ItemsControl - you can use the same method you would use when populating lists - use an ItemsSource to bind to a collection of weeks and specify an ItemTemplate/DataTemplate that will display the week view.
Ultimately you might hit some issues with the fact that a calendar should not really be a list with a beginning and an end. Perhaps you could implement some pseudo-virtualization hack, but ultimately it would probably be better for you to implement your own interaction logic.