Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Displaying multiple events from datasource #20

Closed
Corliosity opened this issue Dec 11, 2012 · 12 comments
Closed

Issue with Displaying multiple events from datasource #20

Corliosity opened this issue Dec 11, 2012 · 12 comments
Assignees
Milestone

Comments

@Corliosity
Copy link

Hello,

I am trying to use the calendar and display multiple events from a JSON file but these become duplicated in coredata and do not show in eventkit. I have tried using the temp fix to no avail. is there a solution on the way? I am willing to pay if that will help.

Thank you,

@Corliosity
Copy link
Author

I think I may have found the problem. This error seems to exists because of the identifier duplication. If while using coredata you have the identifier set to offer an info statement will print "An event with the same identifier already exists." Could it be possible to use this method to keep multiple events from showing?

Screen Shot 2012-12-11 at 9 52 04 AM

@ChrisRM
Copy link
Member

ChrisRM commented Dec 13, 2012

Please gist or send me the file that uses the calendar, and I'll see what I can do.

@Corliosity
Copy link
Author

OK, I am attaching the code with the events call and the calendar display.

Thank you for your help,

-Andrew

On Dec 13, 2012, at 4:32 AM, Chris Magnussen notifications@github.com wrote:

Please gist or send me the file that uses the calendar, and I'll see what I can do.


Reply to this email directly or view it on GitHub.

@ghost ghost assigned ChrisRM Dec 13, 2012
@ChrisRM
Copy link
Member

ChrisRM commented Dec 15, 2012

Waiting for the code...

@Corliosity
Copy link
Author

Sorry for the delay and forgetting to include code.

The gist file is located here:

https://gist.github.com/db4dbb8c79536da5500f

@ChrisRM
Copy link
Member

ChrisRM commented Dec 15, 2012

@Corliosity
Copy link
Author

Hey Chris,

Thanks for the fix.

However I have noticed that since 1.2.5 and 1.2.6 came out I can no longer display my data from an external source. I have my code on a gist account here: https://gist.github.com/cf429a90f3622e327c59

Do you know the reason?

@Corliosity Corliosity reopened this Jan 9, 2013
@clseva
Copy link

clseva commented Jan 9, 2013

It's a bug. Chris is working on it.
See: #23

@Corliosity
Copy link
Author

Thanks

@Corliosity
Copy link
Author

Hey Chris when using Coredata as the data source we still get event duplication even when passing a timeout function. Can you take a quick look for me please? Thanks!

https://gist.github.com/8deee7d1a7e6af371676

Or could it be a problem with how I am calling and adding data?

Sorry for taking up time but thank you for all of your help.

@Corliosity
Copy link
Author

This is what i got from one of our other developers working on the issue:

The only problem I see in here is that events are being added every time the app runs.
The identifier we get from Ti.Calendar.identifier generates a new hash at each request, that makes me think this could be the source of the problem.

@Corliosity Corliosity reopened this Jan 12, 2013
@Corliosity
Copy link
Author

Sorry for opening and re-opening my group has figured out a way to solve this problem through the API:

What do you guys think if we create our on fix?
Is it easy to send another parameter with the JSON?
Let's say we send a udid along each event. When we events: If they have a different UDID, we add it, otherwise the module verifies on its own that the event already exists and don't add it :)

The unique identifier keeps it so that the events will not appear more than once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants