Prevent external event drop on month view in scheduler - fullcalendar-scheduler

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

Related

Share Outlook task manager custom view with user defined columns

I have created a task manager view in Microsoft Outlook which contains user defined fields as well as other Pre-defined fields in the view. I am trying to share this task manager with the rest of my team however, I cannot get it to show all of the columns as they appear on my screen on their screens. I am able to share the task manager but many of the columns are missing. It seems to be because the custom view I created isn't being shared with the other users. On my computer, the custom view is displayed and selected above "Simple list" under the Current View menu on the left and the others do no seem to have that as an option. Does anyone know how I can share the view? The tasks are already being shared I just need the View to be shared so my team can see all the columns properly. Thanks for any input you may have to offer.
Views are defined and customized using the View object's XML property. The XML property allows you to create and set a customized XML schema that defines the various features of a view.
Use the CurrentView property of the Explorer or Folder classes to customize the View in Outlook. An XML definition of the view can be exported and transferred to another PC.
Ok essentially what I did was I went to view - current view - define views and created a new view selecting Table and This folder, visible to everyone. Then I found pre-definied columns that weren't user defined columns that allowed free text typing like subject, milage, and billing information. Once finished adding all the columns I needed I applied the view. Then I went and changed the name of the columns by right clicking each column header in the task manager and selecting format column. there you chan change the label name to whatever you want the column to be titled. This way you did not have to worry with using user defined columns that can be tricky to share. After that I went back to view - current view - define views, and made a copy of the view I created selecting this folder, visible to everyone. Then you will want to right on the tasks manager name you created under the My Tasks list and select properties. Make sure to give everyone your sharing it with full permissions as owners so that they can all edit the task manager as they finish each task. Then I shared this task manager by right clicking on the name of my newly created tasks manager (listed under the My Tasks menu) and selecting "share". I checked the box in the email stating recipient can add, edit, and delete items in this tasks folder. Now everyone can see all information displayed in each column and edit it as well hope this helps.

Transfer values multiple text inputs to table view, add table view items as NSManaged Objects

I am just getting started with obj-c programming and cocoa.
Here is what I am trying to accomplish and have gotten stumped on.
I have a single table view of managed objects in Window1. I have a "Add Items" button that calls Window2 that has another blank table view (AddItemsTableView) and a series of form fields a user could fill in.
When a user fills in these fields and clicks an add button in Window2, the string values of said fields are input into AddItemsTableView to show a running list of items they are preparing to add. When the finally commit the add, I would like that running list to instantiate as NSManagedObjects
Do I need to do this as a seperate entity within coredata created just for objects to be added, then transfer the objects to the new entity upon the add action? Do I need to save them in a mutable dictionary and convert the dictionary to managed objects?
It's important that the addItemsTableView only contains data for the time period the window is open. When Add is commmited, the window closes and the table bound to the core data entity in Window1 updates with new results. If Add Items in Window 1 is pressed again, Window2 is called with an empty tableview again.
I've been searching through SO and other forums for days trying to find someone attempting to do the same thing. Can anyone point me in the right direction?
Thank you so much!
Connect your add table view to the original table view via a delegate #protocol so it can inform the other on its state and enable it to react accordingly.
Of course you use the same type of managed object throughout, no interim objects such as dictionaries. When the added data is saved, you could send the object back to the original table to be processed.
(Alternatively you can save and rely on e.g. the fetched results controller delegate - but maybe that is too advanced at this stage.)

Calendar app Flipview controls

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.

Need to set Tapku Calendar to only have certain dates selectable?

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.

Display due dates of not standard task list in Google Calendar

Google released a new, easy to use Task API that lets you add tasks to separate lists and set due dates on the tasks. There is also an integration with Google Calendar to show the tasks, as you can see here .
In my usecase, I've created a new task list "foo" and added some tasks with due dates. Is it possible to display the tasks of the "foo" list in Google Calendar as well? There, only the ones of the default task list are shown/listed.
What I'd like to have is a new calendar showing on the left in Google Calendar below the already existing "Task" calendar - something like "Tasks 'foo'", that holds all the tasks with due dates from the "foo" task list.
You can switch the current tasks list using the righmost button in the tasks interface in google calendar.
It should update the tasks shown on your calendar.
This doesn't seems currently possible to show more than 1 tasks list at a time on the calendar interface.
Thanks! I found the button to switch the current tasks list. It turned out, that this button is not really visible on Firefox >= 3.6 - the buttons are rendered on the next line.